Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to do no.2? MDR[[MAR] MAR [MDR] 2. (40 pts) For the simple computer developed in class, assume it is now word-addressable (NOT byte addressable).

How to do no.2? image text in transcribed
MDR[[MAR] MAR [MDR] 2. (40 pts) For the simple computer developed in class, assume it is now word-addressable (NOT byte addressable). Consider the following program starting in memory location 0. 0000000000001010 0010000000000100 0000000000001010 0010000000000101 0010000000000011 0001000000000000 Assume the contents of locations 10, 12, 14 are 4, 6, 8, respectively. The content of AC is zero before the program is executed I) Translate each memory line in the above program into an assembly instruction (e.g., with opcode ADD or JMP). For example, the first instruction can be written as ADD 0b1010" or "ADD 10". (10 pts) 2) Write down the execution sequence of those instructions. Note that JMP can change the execution sequence. (10 pts). 3) What will be the content of AC in two cases: (a) before the first execution of the last instruction (i.e., the last line in the above program: 0001000000000000) and (b) after the execution of the entire program? Show how you get your answers for partial credit. (10 pts each) (40 pts) For the simple computer developed in class, the register transfers for 3 basic MDR[[MAR] MAR [MDR] 2. (40 pts) For the simple computer developed in class, assume it is now word-addressable (NOT byte addressable). Consider the following program starting in memory location 0. 0000000000001010 0010000000000100 0000000000001010 0010000000000101 0010000000000011 0001000000000000 Assume the contents of locations 10, 12, 14 are 4, 6, 8, respectively. The content of AC is zero before the program is executed I) Translate each memory line in the above program into an assembly instruction (e.g., with opcode ADD or JMP). For example, the first instruction can be written as ADD 0b1010" or "ADD 10". (10 pts) 2) Write down the execution sequence of those instructions. Note that JMP can change the execution sequence. (10 pts). 3) What will be the content of AC in two cases: (a) before the first execution of the last instruction (i.e., the last line in the above program: 0001000000000000) and (b) after the execution of the entire program? Show how you get your answers for partial credit. (10 pts each) (40 pts) For the simple computer developed in class, the register transfers for 3 basic

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions