The Fetch-Decode-Execute Cycle; including its effects on registers Flashcards

(4 cards)

1
Q

What happens during the fetch phase?

A
  • Address from the PC is copied to the MAR
  • Instruction held at that address is copied to MDR by the data bus
  • Simultaneously, the contents of the PC are increased by 1
  • The value held in the MDR is copied to the CIR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens during the decode phase?

A

The contents of CIR are split into operand and opcode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens during the execute phase?

A

The decoded instruction is executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A CPU may need to stop running the fetch-decode-execute cycle in order to handle an interrupt, when would it be handled?

A

After the execute phase, done after all other processes are executed/run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly