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
assembly emu8086 x86-16


source to share


No one has answered this question yet

Check out similar questions:

3
Printing decimal value in 8086 language
1
find the min value in a given array in assembly 8086
1
I am getting wrong answers when multiplying word by byte in assembly 8086
0
how to split double word number by word number?
0
segment: offset in x86 Assembly
0
Error while changing line in 8086
0
adding two 8-bit numbers in 8086 giving the wrong answer
0
Print the maximum number from the following vector in build 8086
0
8086: array does not receive values ​​from register
-2
build 8086 double word subtraction



All Articles
Loading...
X
Show
Funny
Dev
Pics