Given the following procedures, with code segment instruction addresses given on each line in 4 byte hex. 00000000 main PROC .. : Execution Point A 0000001A CALL someProc1 0000001F CALL WriteDec exit 00000030 00000031 main ENDP Ø0000031 someProc1 PROC 00000031 PUSH EAX 00000035 CALL someProc2 0000003A POP EAX ; Execution Point B ... 0000016F RET 0000016F someProcl ENDP someProc2 PROC PUSH EBX 0000016F 0000016F ;... 00000205 POP RET EBX 00000209 0000020A someProc2 ENDP Assume ESP = 000004DAH, EAX = 00000040h, EBX = 00000120h at Execution Point A, there are no stack operations other than those visible, and EAX and EBX are only changed by the visible instructions. At Execution Point B: What is the current value of the stack pointer (in 4 byte hex)? What is the value at the top of the stack (in 4 byte hex)?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Given the following procedures, with code segment instruction addresses given on each line in 4 byte hex..
00000000
main PROC
.... Execution Point A
doSomething
result, EAX
0000011C
CALL
00000120
MOV
0000023E
0000023F
; ...
exit
main
ENDP
0000023F
checkThings PROC
BX, ØA00H
; Execution Point B
00000243
XOR
00000274
RET
00000275
checkThings ENDP
00000275
doSomething PROC
000002A0
CALL checkThings
00000ZA5
MOV EAX, EDX
...
000002F3
RET
০00002F4
doSomething ENDP
Assume there are no stack operations other than the shown CALL and RET instructions, and ESP = 00000900h at Execution Point A. At Execution Point B:
What is the current value of the stack pointer (in 4 byte hex)?
What is the value at the top of the stack (in 4 byte hex)?
Transcribed Image Text:Given the following procedures, with code segment instruction addresses given on each line in 4 byte hex.. 00000000 main PROC .... Execution Point A doSomething result, EAX 0000011C CALL 00000120 MOV 0000023E 0000023F ; ... exit main ENDP 0000023F checkThings PROC BX, ØA00H ; Execution Point B 00000243 XOR 00000274 RET 00000275 checkThings ENDP 00000275 doSomething PROC 000002A0 CALL checkThings 00000ZA5 MOV EAX, EDX ... 000002F3 RET ০00002F4 doSomething ENDP Assume there are no stack operations other than the shown CALL and RET instructions, and ESP = 00000900h at Execution Point A. At Execution Point B: What is the current value of the stack pointer (in 4 byte hex)? What is the value at the top of the stack (in 4 byte hex)?
Question 17
Given the following procedures, with code segment instruction addresses given on each line in 4 byte hex.
00000000 main PROC
:...
: Execution Point A
CALL someProc1
0000001A
0000001F
CALL WriteDec
...
00000030
exit
main ENDP
00000031
00000031
someProcl PROC
00000031
PUSH EAX
00000035
CALL someProc2
0000003A
РOP
EAX
: Execution Point B
RET
0000016F
0000016F
someProc1 ENDP
0000016F
someProcz PROC
০000016F
PUSH EBX
i...
০0000205
POP
EBX
00000209
0000020A
RET
someProc2 ENDP
Assume ESP = 000004DAH, EAX = 00000040h, EBX = 00000120h at Execution Point A, there are no stack operations other than those visible, and EAX and EBX
are only changed by the visible instructions. At Execution Point B:
What is the current value of the stack pointer (in 4 byte hex)?
What is the value at the top of the stack (in 4 byte hex)?
Transcribed Image Text:Question 17 Given the following procedures, with code segment instruction addresses given on each line in 4 byte hex. 00000000 main PROC :... : Execution Point A CALL someProc1 0000001A 0000001F CALL WriteDec ... 00000030 exit main ENDP 00000031 00000031 someProcl PROC 00000031 PUSH EAX 00000035 CALL someProc2 0000003A РOP EAX : Execution Point B RET 0000016F 0000016F someProc1 ENDP 0000016F someProcz PROC ০000016F PUSH EBX i... ০0000205 POP EBX 00000209 0000020A RET someProc2 ENDP Assume ESP = 000004DAH, EAX = 00000040h, EBX = 00000120h at Execution Point A, there are no stack operations other than those visible, and EAX and EBX are only changed by the visible instructions. At Execution Point B: What is the current value of the stack pointer (in 4 byte hex)? What is the value at the top of the stack (in 4 byte hex)?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education