Registers and Buses
A processor uses small storage locations called registers to hold information it needs immediately. It uses buses to carry addresses, data and control signals between the processor and other parts of the computer.
This page introduces the register roles used in the processor model, distinguishes an address from the contents at that address, and follows a read from memory through the registers and buses.
By the end of this page, you should be able to:
- distinguish general-purpose registers from special-purpose registers;
- describe the roles of ACC, PC, MAR, MDR, CIR, IX and the Status Register;
- explain what the address bus, data bus and control bus carry;
- trace a simple memory read and identify which register and bus carry each item.
1. A register is a small storage location inside the processor
A register is a small, fast storage location inside the CPU. It temporarily holds an address, an instruction, data, a result or status information while the processor works.
The register is the storage location. Its contents are the information stored
there at a particular time. For example, if the MAR contains 384, the MAR is the
register and 384 is its current content.
| Type | Purpose | Registers in this processor model |
|---|---|---|
| General-purpose | Holds working values for different operations. | ACC (Accumulator) |
| Special-purpose | Has a specific role in processing, memory access or status recording. | PC, MAR, MDR, CIR, IX and Status Register |
2. Each named register has a defined role
Learn what each register holds and how that information is used. In particular, keep an address (the location to access) separate from the contents (the information stored at that location).
| Register | What it holds | Why it is used |
|---|---|---|
| PC Program Counter |
The address of the next instruction to be fetched. | Shows where the processor should get the next instruction. |
| MAR Memory Address Register |
The address of the memory location currently being accessed. | Identifies the location involved in a memory read or write. |
| MDR Memory Data Register |
Data or an instruction being transferred to or from memory. | Temporarily holds the contents that move between memory and the processor. |
| ACC Accumulator |
A working value or a result from an operation. | Provides general-purpose storage for processing. |
| CIR Current Instruction Register |
The current instruction. | Keeps the instruction available while the processor works with it. |
| IX Index Register |
An index value used with an address operand. | Helps calculate an effective address when indexed addressing is used. |
| Status Register | Flags that record conditions or results. | Stores status information as individual bits. |
Do not mix up PC, MAR and MDR
The PC holds the address of the next instruction. The MAR holds the address currently being accessed. The MDR holds the data or instruction transferred to or from that memory location.
3. Buses carry different kinds of information
A bus is a group of communication lines between computer components. The address, data and control buses have separate jobs. Their names help you decide what travels along each one.
| Bus | What it carries | Direction in the processor model |
|---|---|---|
| Address bus | An address that identifies a memory location. | Unidirectional: processor → memory |
| Data bus | Data or instructions being transferred. | Bidirectional: processor ↔ memory |
| Control bus | Control signals, such as a read or write signal. | Bidirectional: signals can travel in either direction |
Address is not data
The address bus carries the location number. The data bus carries the contents found at
that location. For example, 384 could be an address, while 29 is
the value stored at that address.
4. Follow a memory read through the registers and buses
Suppose the processor needs to read the value stored at memory address 384.
That location contains 29. Follow the address and value separately:
- The MAR holds the address
384. - The address bus carries
384from the processor to memory. - The CU sends a READ signal on the control bus.
- Memory returns its contents,
29, along the data bus. - The MDR receives and holds
29.
384; MDR contains the value
29 read from that address. The address bus carries the location, while the data
bus carries the contents.
Interactive memory-read walkthrough
Select Next Step to highlight the register or bus used at each stage.
Follow the address 384 to memory and the value 29 back to the MDR.
5. Check these important distinctions
| Keep separate | Difference |
|---|---|
| Register and contents | The register is the storage location; its contents are the value currently held there. |
| Address and data | An address identifies a location; data is the information stored at or transferred from it. |
| MAR and MDR | MAR holds an address; MDR holds the data or instruction being transferred. |
| Address bus and data bus | The address bus carries a location; the data bus carries the contents. |
| General-purpose and special-purpose | ACC is the general-purpose register in this model; the other named registers have defined roles. |
6. Check your understanding
Try each prompt before opening its suggested response.
-
A processor is accessing address
615. The value at that location is42. Which value belongs in the MAR, and which value is returned to the MDR?Suggested response
The MAR holds address
615. The MDR receives the contents,42. -
Which bus carries a memory address? State its direction during a processor read.
Suggested response
The unidirectional address bus carries the address from the processor to memory.
-
Which bus carries the READ signal, and which bus carries the value returned by memory?
Suggested response
The control bus carries the READ signal. The data bus carries the returned value to the processor.
-
In this processor model, which register can hold a general working value? Name one special-purpose register.
Suggested response
The ACC can hold a general working value. For example, MAR is special-purpose because it holds the address currently being accessed.
Final check
When you describe a memory read, name the address register, the control signal, the data transfer and the register that receives the contents. Keep the address and the data distinct.