Professional Documents
Culture Documents
1 System architecture
Homework
The Fetch–Execute cycle
Time: 15 mins
Step 2a Copy data from the RAM addressed by the MAR into the MDR
Control
CPU Bus
Bus
FE 2
PC MAR
FF 0
Address
00
Bus
2 On the attached sheet complete the table to show the steps of the program
shown above. For each instruction you will need to show the steps needed to
complete first the fetch, then the execute phases. The first one has been
completed for you.
The steps for the fetch phase are shown for you and the execute phase for the
first two operations. You need to work out what the steps for the execute phase
will be for the final two instructions.
Fetch 2b 01 ---
Fetch 3 LDA FF
Operand to
FE
MAR
RAM to MDR 2
Fetch 1 01 ---
ADD 7
Fetch 1 02 ---
SUB 4
5 ---
Fetch 1 03 ---
Fetch 2a STA FF ---
STA FF
Fetch 2b 04 ---
Fetch 3 STA FF
FF
--- 5