I'm so new to assembly and I had this example in the book i'm learning from
%include "io.inc"
section .text
global CMAIN
CMAIN:
mov ebp, esp;
;write your code here
mov eax, 444444447h
mov ebx, 22222222h
mov edx, 44h
div ebx
ret
And those are the results I'm getting run_results
EAX: 0x200
EBX: 0x22222222
EDX: 0x47
*can anyone explain to me why the final value in the EDX is 0x47 ?
*And when I put 0h in the EDX why the final value in the EAX is becoming 0x2 ?
*how is the EDX effecting the division results, if basically the division is just between EAX and EBX.
*Isn't the EDX just for storing the devision rest?
Thanks in advance :)