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 =2000 A100. What is the value of the STACK POINTER (ESP) after each CALL instruction and each RET instruction below.
INCLUDE Irvine32.inc
.DATA
.CODE
main PROC
mov ax,val1
call abcd(1) ESP=____________(After the CALL)
exit
main ENDP
abcd PROC NEAR ;Begin Procedure
nop
call FAR PTR efg(2) ESP=____________(After the CALL)
nop
ret(3) ESP=____________(After the RET)
abcd ENDP
efg PROC FAR ;Begin Procedure
nop
call FAR PTR xyz(4) ESP=___________(After the CALL)
nop
ret(5) ESP=____________(After the RET)
efg ENDP
xyz PROC FAR ;Begin Procedure
nop
nop
ret(6) ESP=____________(After the RET)
xyz ENDP
END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!