3) Given the following program: Address 100 101 102 103 104 105 106 107 108 109 10A 10B 10C 10D 10E 10F 110 111 Load X Store Temp JnS Subr Load Temp Add Temp Halt X, Y, Z, JnS Store X Load Y Store JnS Store Y Halt Hex 10 Hex 20 Hex 30 Temp, Hex 0 Subr, Hex 0 Load Temp 101 102 10E Instruction Load Store 10F 110 X Temp Subr / Store return address, jump to procedure 109 Provide a trace and give the contents (in Hexadecimal number) of PC after execution of each instruction. What are the values of X, Y, Temp, Subr after running of this program? Instruction PC Temp Subr /Store return address, jump to procedure Add Temp Add Z Jumpi Subr END X: Y: /Store return address here Temp: Subr: /Return to calling code (in Hexadecimal number) _(in Hexadecimal number) (in Hexadecimal number) (in Hexadecimal number)

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
Topic Video
Question
3) Given the following program:
Address
100
101
102
103
104
105
106
107
108
109
10A
10B
10C
10D
10E
10F
110
111
Load X
Store Temp
JnS Subr
Load Temp
Add Temp
Halt
X,
Y,
Z,
JnS
Store X
Load Y
Store
JnS
Store Y
Halt
Hex
10
Hex 20
Hex
30
Temp, Hex 0
Subr, Hex 0
Load
101
102
10E
Instruction
Load
X
Store
Temp
Subr / Store return address, jump to procedure
10F
110
Provide a trace and give the contents (in Hexadecimal number) of PC after execution of each
instruction. What are the values of X, Y, Temp, Subr after running of this program?
Instruction
PC
109
Temp
Subr / Store return address, jump to procedure
Temp
Temp
Add
Add Z
Jumpi Subr /Return to calling code
END
X:
/Store return address here
Y:
Temp:
Subr:
(in Hexadecimal number)
(in Hexadecimal number)
(in Hexadecimal number)
(in Hexadecimal number)
Transcribed Image Text:3) Given the following program: Address 100 101 102 103 104 105 106 107 108 109 10A 10B 10C 10D 10E 10F 110 111 Load X Store Temp JnS Subr Load Temp Add Temp Halt X, Y, Z, JnS Store X Load Y Store JnS Store Y Halt Hex 10 Hex 20 Hex 30 Temp, Hex 0 Subr, Hex 0 Load 101 102 10E Instruction Load X Store Temp Subr / Store return address, jump to procedure 10F 110 Provide a trace and give the contents (in Hexadecimal number) of PC after execution of each instruction. What are the values of X, Y, Temp, Subr after running of this program? Instruction PC 109 Temp Subr / Store return address, jump to procedure Temp Temp Add Add Z Jumpi Subr /Return to calling code END X: /Store return address here Y: Temp: Subr: (in Hexadecimal number) (in Hexadecimal number) (in Hexadecimal number) (in Hexadecimal number)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
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