Ad Code

Write Code of Divide in Assembly

Consider the function “int divide (int divided, int divisor)” declared in C, write the code to call
this function from assembly language?

To call this function from assembly we have to write.
push dword [mydivisor]
push dword [mydividend]
call _divide
add esp, 8
; EAX holds the answer
Reactions

Post a Comment

0 Comments