Multiple choiceQuestion 1 · Recall
Loading…
By the end you can say what a register is, tell general purpose from special purpose registers, and explain the jobs of the accumulator (ACC), the index register (IX) and the status register.
Main memory is where the program lives, but it is slow to reach from inside the CPU. The instructions currently being worked on need somewhere faster.
A register is a tiny storage location inside the CPU, holding a fixed number of bits (usually one word — 32 or 64 bits on a modern machine).
Registers are the fastest storage in the computer, and there are only a handful of them. That is why they are used for the one thing happening right now.
Register
A small, very fast storage location inside the processor, typically holding one word of data or one address, used during the fetch–execute cycle.
The syllabus splits registers into two groups:
| Kind | Who decides what it holds | Examples |
|---|---|---|
| General purpose registers (GPR) | The programmer or compiler — whatever is convenient: a value, a total, an address | Often named R1, R2 … |
| Special purpose registers | The CPU itself, for one fixed job | PC, MAR, MDR, CIR, ACC, IX, status register |
The difference to write down in an exam: a general-purpose register has no fixed job, while a special-purpose register always does one specific job.
Worked example: Using ACC and IX
A program adds up the 4 values in an array starting at address 500.