Lab Assignment 4
Lab Assignment 4
Given the current status of memory and PC as in Figure 1, explain how the instructions in
memory will be executed.
Note: All acronyms employed here are well-known acronyms. Again, all the instructions are
written following 1-address format and none of them are of immediate addressing mode.
[10 marks]
Decode/ Execution
7. The true value will be transferred and executed and he true value in LOAD 11 in IR will be
transferred to MAR
8. The content (memory = 3 ) will be stored in MDR and IC accumulator (address instruction :
AC=3)
Second cycle
9. Program counter (PC) will increase 1, so the address 100+1=101.
10. PC locate address 101, hold the address until next instruction.
11. Instruction LOAD11, look at address=11, the content in memory=3
12. Put the content in MAR (will put in AC accumulator) - 1-address instruction : AC=3
13. Next, ADD12, at address 12, content=2.
14.The control unit requests a memory read, and the result is placed on the data bus and copied
into MDR and then place data in instruction register (IR).
Decode/ Execution
15. Add 12 to accumulator, the value will be overwrite : AC=3+2=5
16. Next, STORE14, content of AC will be put in address 14.