Question: Consider the program below The initial value of the stack pointer ESP = 1000 5000. What is the value of the STACK POINTER (ESP) after

Consider the program below The initial value of the stack pointer ESP = 1000 5000. What is the value of the STACK POINTER (ESP) after the each CALL instruction and each RET instruction.

INCLUDE Irvine32.inc

.DATA

.CODE

Main PROC

mov ax,val1

call proc1 (1) ESP=____________(AFTER the CALL)

exit

main ENDP

proc1 PROC ;Begin Procedure

nop

call proc2 (2) ESP=___________(AFTER the CALL)

nop

ret (3) ESP=____________(AFTER the RET)

proc1 ENDP

proc2 PROC ;Begin Procedure

nop

call proc3 (4) ESP=___________(AFTER the CALL)

nop

ret (5) ESP=___________(AFTER the RET)

proc2 ENDP

proc3 PROC ;Begin Procedure

nop

nop

ret (6) ESP=____________(AFTER the RET)

proc3 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 Databases Questions!