The Fetch–Decode–Execute Cycle and CPU Registers
Each register holds one thing for one reason, so what the CPU does next depends on what was copied where. One address in the wrong place sends the whole program somewhere else.
↺
What reaches the MDR when memory is read?
Case 1 of 2 · Set Address in MAR so Requested word reaches MDR; press Read.
CPU
Next fetch
CUControl unit
ALUArithmetic logic unit
RAM24 locations
Address00
Word0000
Read / WriteClock0 pulsesStopped
Result
RAM cell
This CPU's instruction set
| Opcode | Command | Operand |
|---|
CPU contacts
Transfers
Earlier hand fetch
Registers
Device interrupt
No request
Stack
Register contents
Earlier operations
On AS Level, this is also called the fetch–execute (F-E) cycle.
A small teaching CPU: 24 addresses; signed words from −9999 to 9999; copies slowed down. A clock pulse coordinates one operation or a compatible group of copies.