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.
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.
3
Q
What does the Memory Data Register do?
A
- Stores the instruction that has been transferred from RAM to the CPU.
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.
5
Q
What does the accumulator do?
A
- Stores the result of mathematical or logical calculations.
6
Q
Describe each stage of the Fetch-Execute Cycle (7/8 marks)
A
- The PC displays the address in RAM of the next instruction to be executed. This value is copied into the MAR.
- The PC is increased by 1. This prepares the CPU for the next instruction to be fetched.
- The CPU checks the address in RAM which matches the address held in the MAR.
- The instruction in RAM is transferred to the MDR.
- The instruction in the MDR is copied into the CIR.
- The instruction in the CIR is decoded and executed. Any result of an execution is stored in the ACC.
- The cycle repeats by returning to the first step and checking the program counter for the address of the next instruction.