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)?
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
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)?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa0d7190d-e8a0-4dfc-b039-706c079b492b%2F87421829-5464-41fb-a58a-9606d5060692%2Fjuu9mmh_processed.jpeg&w=3840&q=75)
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)?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa0d7190d-e8a0-4dfc-b039-706c079b492b%2F87421829-5464-41fb-a58a-9606d5060692%2Fj1e1nwb_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education