Getting the wrong remainder value when dividing a double word by a word 8086
Hi guys I am doing a project which I am using doubleword (DX: AX) / word (operand). So I have to get Quo on AX and Remainder on DX as I know. I won't post all the code, but when I do:
MOV DX,0A8D2h
MOV AX,08310h
MOV BX,0F8FCh
DIV BX
I have to get AD94 on AX and 4560 on DX. AX have the correct meaning, but for some reason DX is zero. I don't know if I am missing something or if this is an exception for 8086, but thanks everyone if you can help. (I'm using emu8086 by the way)
+3
source to share
No one has answered this question yet
Check out similar questions: