I'm learning assembly language programming in my college course (80386 programming). Currently, I'm learning the ins and outs of 32 bit division using the EDX and EAX registers to store the remainder and quotient respectively. I want to know, why do I not get the correct output when I don't include
mov edx, 00000000h
in my program. The program either doesn't run or gives the wrong output.
Relevant source code:
mov edx, 00000000h
mov eax, 1234567Ah
div 11111111h ; now EDX=remainder, EAX=quotient
I will post the full code if needed.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…