Question: plz no handwriting 5 Question 3 [5 marks]: Given the Operation Codes (OPCODE) for a simple hypothetical processor as follows: OPCODE 1: Load data from

 plz no handwriting 5 Question 3 [5 marks]: Given the Operation

plz no handwriting

5 Question 3 [5 marks]: Given the Operation Codes (OPCODE) for a simple hypothetical processor as follows: OPCODE 1: Load data from memory to accumulator, OPCODE 2: Store data from accumulator to memory and OPCODE 5: Add data in accumulator and memory, store result in accumulator. Figure 1 shows the program at memory address 200 data at address 300 and 301. Write down the contents of the memory locations 300 and 301 as well as the accumulator (A), the PC and IR registers during the three fetch execute cycles in executing the program. Use figure 2 to give the values ONLY for the indicated (c), (e), (h), (i), (j), (m), (o), (u), (v), (x). (Note: * You may want to prepare the answer on paper and then use the values) Address Content 200 1300 201 5301 202 2301 Fetch 300 03 301 04 A = ?? PC = ?? IR = ?? Execute 300 (a) 301 (6) A = (c) PC = (d) IR = (e) 300 301 03 04 Figure 1 Fetch 300 (1) 301 (9) A = (h) PC = (0) IR = (i) Execute 300 (k) 301 (1) A = (m) PC = (n) IR = (0) Fetch 300 (p) 301 (9) A = (0) PC = (s) IR = (t) Execute 300 (u) 301 (v) A = (w) PC = (x) IR = (y) Figure 2 Fetch execute cycle for the three instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!