Essentials of Computer Organization and Architecture
Essentials of Computer Organization and Architecture
5th Edition
ISBN: 9781284123036
Author: Linda Null
Publisher: Jones & Bartlett Learning
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 4, Problem 42E

Explanation of Solution

Trace out for given “Example 4.4”:

Tracing the program is the process of documenting the state of the various aspects of the execution of the program over assembly instruction. Every instruction has the process like fetch, store, and decode which are used to determine the desired outcome to execute the program.

This tracing has address, label, instruction, RTN, and values of each registers. The following table has the final status of each instruction execution.

The trace out for given code “example 4.4” is as follows:

AddressLabelStepRTNPCIRMARMBRAC
100GetchLoadI Chptr

MARßPC

IRß M[MAR]

PCßPC+1

MARßIR[11-0]

MBRßM[MAR]

MARßMBR

MBRßM[MAR]

ACßMBR

101D10A

100

10A

10B

010B

0048

0048
101 Skipcond 400

MARßPC

IRß M[MAR]

PCßPC+1

If IR[11-0]==00 then

If AC<0 then PCßPC+1

Else if IR[11-0]=01 then

If AC=0 then PCßPC+1

Else if IR[11-0]=10 then

If AC>0 then  PCßPC+1

1028400101  
102 Jump Outp

MARßPC

IRß M[MAR]

PCßIR[11-0]

1049104102  
103 Halt      
104OutpOutput

MARßPC

IRß M[MAR]

PCßPC+1

OutRegßAC

1056000104  
105 Load chptr

MARßPC

IRß M[MAR]

PCßPC+1

MARßIR[11-0]

MBRßM[MAR]

ACßMBR

10611A

105

10A

010B010B
106 Add One

MARßPC

IRß M[MAR]

PCßPC+1

MARßIR[11-0]

MBRßM[MAR]

ACßAC+MBR

1073109

106

109

0001

Blurred answer

Chapter 4 Solutions

Essentials of Computer Organization and Architecture

Ch. 4 - Prob. 11RETCCh. 4 - Prob. 12RETCCh. 4 - Prob. 13RETCCh. 4 - Prob. 14RETCCh. 4 - Prob. 15RETCCh. 4 - Prob. 16RETCCh. 4 - Prob. 17RETCCh. 4 - Prob. 18RETCCh. 4 - Prob. 19RETCCh. 4 - Prob. 20RETCCh. 4 - Prob. 21RETCCh. 4 - Prob. 22RETCCh. 4 - Prob. 23RETCCh. 4 - Prob. 24RETCCh. 4 - Prob. 25RETCCh. 4 - Prob. 26RETCCh. 4 - Prob. 27RETCCh. 4 - Prob. 28RETCCh. 4 - Prob. 29RETCCh. 4 - Prob. 30RETCCh. 4 - Prob. 31RETCCh. 4 - Prob. 32RETCCh. 4 - Prob. 33RETCCh. 4 - Prob. 34RETCCh. 4 - Prob. 35RETCCh. 4 - Prob. 37RETCCh. 4 - Prob. 38RETCCh. 4 - Prob. 39RETCCh. 4 - Prob. 40RETCCh. 4 - Prob. 41RETCCh. 4 - Prob. 1ECh. 4 - Prob. 2ECh. 4 - Prob. 3ECh. 4 - Prob. 4ECh. 4 - Prob. 5ECh. 4 - Prob. 6ECh. 4 - Prob. 7ECh. 4 - Prob. 8ECh. 4 - Prob. 9ECh. 4 - Prob. 10ECh. 4 - Prob. 11ECh. 4 - Prob. 12ECh. 4 - Prob. 13ECh. 4 - Prob. 14ECh. 4 - Prob. 15ECh. 4 - Prob. 16ECh. 4 - Prob. 17ECh. 4 - Prob. 18ECh. 4 - Prob. 19ECh. 4 - Prob. 20ECh. 4 - Prob. 21ECh. 4 - Prob. 22ECh. 4 - Prob. 23ECh. 4 - Prob. 24ECh. 4 - Prob. 25ECh. 4 - Prob. 26ECh. 4 - Prob. 27ECh. 4 - Prob. 28ECh. 4 - Prob. 29ECh. 4 - Prob. 30ECh. 4 - Prob. 31ECh. 4 - Prob. 32ECh. 4 - Prob. 33ECh. 4 - Prob. 34ECh. 4 - Prob. 35ECh. 4 - Prob. 36ECh. 4 - Prob. 37ECh. 4 - Prob. 38ECh. 4 - Prob. 39ECh. 4 - Prob. 41ECh. 4 - Prob. 42ECh. 4 - Prob. 43ECh. 4 - Prob. 44ECh. 4 - Prob. 45ECh. 4 - Prob. 46ECh. 4 - Prob. 47ECh. 4 - Prob. 48ECh. 4 - Prob. 49ECh. 4 - Prob. 50ECh. 4 - Prob. 51ECh. 4 - Prob. 52ECh. 4 - Prob. 53ECh. 4 - Prob. 54ECh. 4 - Prob. 55ECh. 4 - Prob. 56ECh. 4 - Prob. 57ECh. 4 - Prob. 58ECh. 4 - Prob. 59ECh. 4 - Prob. 60ECh. 4 - Prob. 61ECh. 4 - Prob. 62ECh. 4 - Prob. 63ECh. 4 - Prob. 64ECh. 4 - Prob. 67ECh. 4 - Prob. 1TFCh. 4 - Prob. 2TFCh. 4 - Prob. 3TFCh. 4 - Prob. 4TFCh. 4 - Prob. 5TFCh. 4 - Prob. 6TFCh. 4 - Prob. 7TFCh. 4 - Prob. 8TFCh. 4 - Prob. 9TFCh. 4 - Prob. 10TF
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education