Falsche Antwort von DIV Assembly
Ich habe einen Teil meines Codes
mov di,3
mov cx,16
looop:
xor dx,dx
shl bx,1
adc dx,dx
cmp cx,16
je cx16 (it's will dec cx and jump loop)
push dx
dec cx
cmp cx,0
je cx0
mov ax,cx
div di
cmp dx,0
jne looop
when cx = 3
ich bekomme ax = 3
Aberdiv di
ax wird zu H = 55 L = 56
und dx = 1
Bitte kannst du mir sagen, was ich hier falsch gemacht habe?