Registers And The F-E Cycle Flashcards

1
Q

What does the Program Counter do?

A
  • A register that tracks the RAM address of the next instruction to be executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the Memory Address Register do?

A
  • A register that tracks the RAM address of the instruction that is to be fetched.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the Memory Data Register do?

A
  • Stores the instruction that has been transferred from RAM to the CPU.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the Current Instruction Register do?

A
  • A register that stores the instruction that has been fetched from RAM, and is about to be decoded or executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the accumulator do?

A
  • Stores the result of mathematical or logical calculations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe each stage of the Fetch-Execute Cycle (7/8 marks)

A
    1. The PC displays the address in RAM of the next instruction to be executed. This value is copied into the MAR.
    1. The PC is increased by 1. This prepares the CPU for the next instruction to be fetched.
    1. The CPU checks the address in RAM which matches the address held in the MAR.
    1. The instruction in RAM is transferred to the MDR.
    1. The instruction in the MDR is copied into the CIR.
    1. The instruction in the CIR is decoded and executed. Any result of an execution is stored in the ACC.
    1. The cycle repeats by returning to the first step and checking the program counter for the address of the next instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly