Question: Consider the program below The initial value of the Stack Pointer ESP = 2 0 0 0 A 1 0 0 . What is the
Consider the program below The initial value of the Stack Pointer ESP A What is the value of the STACK POINTER ESP after each CALL instruction and each RET instruction below.
INCLUDE Irvineinc
DATA
CODE
main PROC
mov axval
call abcd ESPAfter the CALL
exit
main ENDP
abcd PROC NEAR ;Begin Procedure
nop
call FAR PTR efg ESPAfter the CALL
nop
ret ESPAfter the RET
abcd ENDP
efg PROC FAR ;Begin Procedure
nop
call FAR PTR xyz ESPAfter the CALL
nop
ret ESPAfter the RET
efg ENDP
xyz PROC FAR ;Begin Procedure
nop
nop
ret ESPAfter the RET
xyz ENDP
END
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
