Consider the function “int divide (int divided, int divisor)” declared in C, write the code to call
this function from assembly language?
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
push dword [mydivisor]
push dword [mydividend]
call _divide
add esp, 8
; EAX holds the answer
What will be the call of this function write
Reviewed by MCH
on
December 26, 2012
Rating:
No comments: