Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Consider the program below The initial value of the stack pointer ESP = 1018 FF8C. What is the value of the STACK POINTER (ESP)
1) Consider the program below The initial value of the stack pointer ESP = 1018 FF8C. What is the value of the STACK POINTER (ESP) after the each CALL instruction and each RET instruction. INCLUDE Irvine32.inc .DATA val1 DW 78h val2 DW 40h val3 DW 5Fh .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 (Points : 10) |
(1) 0018 FF88 (2) 0018 FF86 (3) 0018 FFF4 (4) 0018 1200 (5) 0018 FF8C (6) 0018 FF88 (1) 0018 FFFC (2) 0018 FFF8 (3) 0018 FF84 (4) 0018 FFF4 (5) 0018 FF8C (6) 0018 FF88 (1) 0018 FF88 (2) 0018 FF84 (3) 0018 FF80 (4) 0018 FF84 (5) 0018 FF88 (6) 0018 FF8C (1) 0018 FFFC (2) 0018 FFF4 (3) 0018 FF84 (4) 0018 FF88 (5) 0018 FFF8 (6) 0018 FFFC (1) 0018 FFF8 (2) 0018 FFFC (3) 0018 FFF4 (4) 0018 1200 (5) 0018 FFF8 (6) 0018 FFFC
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started