GCSE · Computer Science · Edexcel · Spec 1CP2

Registers

Your CPU has a handful of tiny, lightning-fast stores tucked inside it. They're called registers. Follow one instruction through them and you've basically got the whole fetch-decode-execute cycle.

Computer Science · Inside the CPU

Follow one instruction through the registers

The PC holds 20. Memory address 20 holds the instruction LOAD 51 (‘copy the value stored at address 51 into the accumulator’), and address 51 holds the value 9. Step through one whole fetch-decode-execute cycle.

Press Next › one step at a time. Before each step, guess which box is about to change — and whether its new value is an address, an instruction or data.

Phase: Fetch

PC

20

MAR

—

Address bus

—

Data bus

—

MDR

—

CIR

—

Accumulator

—

Output

Start: PC = 20 (an address)

Step 1: It all starts at the program counter. It holds 20. That isn't an instruction — it's the ADDRESS in memory where the next instruction is waiting.

1 / 10

A dash (—) means empty so far — or, on a bus, that nothing is travelling at this step. Addresses are shown in denary and the instruction in words so you can read them; the CPU itself holds them as binary. The log builds up every move you've seen.

Step 1 of 10: It all starts at the program counter. It holds 20. That isn't an instruction — it's the ADDRESS in memory where the next instruction is waiting..

Computer Science · Structure

Zoom out: where the registers live

Tap each box to see its job. The registers sit inside the CPU with the control unit, the ALU and the clock. Main memory is outside, joined on by the address bus and the data bus.

CPUaddress busdata bus

Tap any part of the diagram to see what it does.

Name that register

Tap a description, then tap the register that holds it. Quick tip: ask yourself first — is it an address, an instruction or data?

Still to sort

PC — program counter (0)

Holds an address.

Where the line is: PC: the address of the NEXT instruction. MAR: the address being accessed right now, whether that's an instruction's or some data's.

MAR — memory address register (0)

Holds an address.

Where the line is: MAR: where to look. MDR: what was found there.

MDR — memory data register (0)

Holds whatever has just been fetched.

Where the line is: MDR: whatever has just arrived, instruction or data. CIR: the instruction to be executed — data is never copied in.

CIR — current instruction register (0)

Holds an instruction.

Where the line is: CIR: the instruction itself. PC: just the address of the next one.

Accumulator (0)

Holds data.

Where the line is: Accumulator: data for a calculation, or its result. MDR: data that has only just arrived.

8 of 8 still to sort.

Five registers, eight descriptions. Commit to an answer before you read why.

What does the PC actually hold?

A CPU is about to start a new cycle. Its PC holds 42, and the instruction LOAD 88 is stored at memory address 42.

Pick the idea closest to what you honestly think right now, say how sure you are, then check.
How sure are you?

Now tell the story yourself

Describe how the registers are used during one fetch-decode-execute cycle for an instruction that loads a value from memory into the accumulator. [6 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Five little stores. Ask each one: is this an address, an instruction or data?

What you need to know

  • Registers are very small, very fast memory locations inside the CPU — and each type of register has its own job.
  • They share the CPU with its other key components: the control unit, the arithmetic logic unit (ALU), the buses and the clock.
  • The program counter (PC) holds the memory address of the next instruction to fetch — an address, not the instruction itself.
  • Have a goThe PC holds 58. Your mate leans over: “Easy — the next instruction is 58.” What has your mate got muddled?

    58 is where the next instruction is stored, not the instruction itself.

    The PC holds an address. The instruction only shows up once that address has been sent off to memory and the reply comes back.

  • The memory address register (MAR) holds the address about to be accessed in main memory, and sends it out on the address bus.
  • The memory data register (MDR) briefly holds whatever was just fetched back along the data bus: an instruction or data.
  • Have a goOdd one out: PC, MAR, MDR. Which one doesn't belong — and what kind of value gives it away?

    The MDR — the PC and the MAR both hold addresses.

    The MDR holds what was fetched (an instruction or data), not where it came from. Two address-holders, one contents-holder.

  • The current instruction register (CIR) holds the binary instruction to be executed; the control unit takes it from there to decode it.
  • The accumulator holds data being used in calculations, plus their results — and data loaded from memory is stored there.
  • Fetch runs PC → MAR → memory → MDR → CIR, and the PC goes up by one so it points to the next instruction.
  • Have a goHalfway through a fetch, the MAR holds 125. Which register did that 125 come from, and which bus does it travel on next?

    It came from the PC, and it goes out on the address bus.

    In a fetch, the address in the MAR is copied from the PC, and an address travels on the address bus, not the data bus. (During execute the MAR can be given a different address, such as where data is stored, but this question is about a fetch.)

  • For a load, execute puts the data's address in the MAR; the data returns into the MDR, then moves on to the accumulator.

The big picture

Registers are very small, very fast memory locations inside the CPU, and each type has its own job. The program counter (PC) holds the address of the next instruction to fetch. The memory address register (MAR) holds the address about to be accessed in main memory. The memory data register (MDR) briefly holds whatever has just been fetched, instruction or data. The current instruction register (CIR) holds the instruction being decoded and executed. The accumulator holds data used in calculations and their results. Every fetch-decode-execute cycle moves values between these registers and main memory along the address bus and the data bus.

Key points

1PC (program counter): holds the memory address of the next instruction to fetch, and is increased by one after each fetch.
2MAR (memory address register): holds the address to be accessed in main memory (RAM), and sends it along the address bus.
3MDR (memory data register): temporarily holds the instruction or data just fetched from memory along the data bus.
4CIR (current instruction register): holds the binary instruction to be executed; only instructions, not data, are copied into it from the MDR.
5Accumulator: holds data being used in calculations and their results, including data loaded from memory.
6For a load, the execute stage updates the MAR with the data's address, and the data that arrives in the MDR is stored in the accumulator.

Worked example

Problem

A CPU's program counter holds 34. Memory address 34 holds the instruction LOAD 70, and memory address 70 holds the value 15. When this instruction has been fetched, decoded and executed, what will the PC, CIR, MAR, MDR and accumulator hold?

⚠ Watch out

Mixing up the MAR and the MDR. The MAR holds an ADDRESS — where in memory to look. The MDR holds what was FOUND there — the instruction or data that came back. A for Address; D for the data (or instruction) that comes back.

🧠

Memory hook

Ask every register one question: ‘Address, instruction or data?’ The PC and MAR shout ADDRESS. The CIR says INSTRUCTION. The accumulator says DATA. And the MDR? It's the front door — it takes whatever comes through.

✓

Check yourself

Mid-fetch, the MDR has just received LOAD 63 and the PC still holds 17. What happens next to each? (Answer: LOAD 63 is copied into the CIR, and the PC becomes 18.)

Flashcards

(12)
What is a register?
A very small, very fast memory location inside the CPU. There are different types, each with its own job.
Registers are one key component inside the CPU. Name the others.
The control unit, the arithmetic logic unit (ALU), the buses and the clock.
What does the PC hold — and what happens to it after each fetch?
The memory address of the next instruction to fetch. After each fetch it goes up by one, so it points to the next instruction in sequence.
What does the MAR hold, and which bus does it use?
The memory address to be accessed in main memory (RAM). That address is sent to memory along the address bus.
What does the MDR hold?
Temporarily, the instruction or data that has just been fetched from memory and sent back along the data bus.
What does the CIR hold, and what happens to it?
The binary representation of the instruction to be executed. The control unit takes the instruction from the CIR to decode it.
What does the accumulator hold?
Data being used in calculations and the results of calculations. Data loaded from memory is stored here.
Which bus carries an address to memory, and which brings things back?
The address bus carries the MAR's address to memory. The data bus brings the instruction or data back to the MDR.
An instruction arrives from memory. Which register does it enter first, and where does it go next?
It enters the MDR first, then it is copied into the CIR.
During the execute stage of a load, what happens to the MAR, the MDR and the accumulator?
The MAR is updated with the address of the data; the data returns along the data bus into the MDR; then it is stored in the accumulator.
Two registers hold addresses. Which two, and what's the difference?
The PC holds the address of the NEXT instruction. The MAR holds the address being accessed right now — for an instruction or for data.
Is data loaded from memory ever copied into the CIR?
No. Only a fetched instruction is copied from the MDR into the CIR; loaded data goes on to the accumulator.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 26 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.