
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

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)?

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

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 nowThis is a popular solution!
Step by stepSolved in 2 steps

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.Similar questions
- Write the MIPS instructions for the following problems using arithmetic and shift instructions. Using a shift operation, write the MIPS code that divides the number in $t0=256 by 8.arrow_forwardvarue 40A, and AR has the value 4E5. Sterting with the FETCH, describe what happens untar the next FETCH. Make sure to indicate any updated register values as they happen. Memory (in are 0123 for 000 to 002, then 1002, 1801, 7800, F400 for 40A through 40D. AC starts with value 0F24, PC has thearrow_forwardTrue or falsearrow_forward
- Given the instruction: LD RO, X005 If the instruction is stored in memory at x3000, how will data be moved? Data at address x3005 will be loaded into RO Data in RO will be stored into memory at x3006 Data at address x3006 will be loaded into RO Data in RO will be stored into memory at x0005arrow_forwardDetermine the value of memory location 3001H. Given that initial value of register B = 3, C = 10 and E = 15. MOV A, B ANA C ANA E STA 3000H MOV A, B ORA C ORA E STA 3001H MOV A, B XRA C XRA E STA 3001H 02H OFH 06H 03Harrow_forward20 LDA 50 21 SUB 51 50 100 51 200 Choose the contents of the registers: PC, MAR, MDR, IR, A at the end of fetch-execute cycle for instruction 20: PC MAR MDR IR Aarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education