Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ex. Suppose that the following instructions are found at memory locations 31 and 32. Suppose that the following data are found at memory 45 and

Ex. Suppose that the following instructions are found at memory locations 31 and 32. Suppose that the following data are found at memory 45 and 46.

Address Instruction

--------------------------------

16 LDA 32

17 SUB 33 Addresses 16-17 represent the program area

--------------------------------

--------------------------------

Data

32 25 Addresses 32-33 represent the data area

33 18

Show the contents of the PC, MAR, MDR, IR, and A registers as each step of the fetch-execute cycle is performed for instructions at addresses 16 and 17. Note that you have a sequence of two instructions. The 5 steps in the second instruction SUB 33 will gradually replace the contents of the registers set by the first instruction.

image text in transcribed

Instruction: 16 LDA 32 PC MAR MDR IR A 16 16 LDA 32 ? ? Steps in the machine cycle 1. PC MAR 2. MDR IR 3. IR[addr) MAR 4. MDRA 5. PC + 1 PC Instruction: 17 SUB 33 PC MAR MDR IR A . Steps in the machine cycle 1. PC MAR 2. MDR IR 3. IR[addr] MAR 4. A-MDR A 5. PC +1 PC Instruction: 16 LDA 32 PC MAR MDR IR A 16 16 LDA 32 ? ? Steps in the machine cycle 1. PC MAR 2. MDR IR 3. IR[addr) MAR 4. MDRA 5. PC + 1 PC Instruction: 17 SUB 33 PC MAR MDR IR A . Steps in the machine cycle 1. PC MAR 2. MDR IR 3. IR[addr] MAR 4. A-MDR A 5. PC +1 PC

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

Students also viewed these Databases questions

Question

So what disadvantages have you witnessed? (specific)

Answered: 1 week ago