GCSE · Computer Science · OCR · Spec J277

MDR (Memory Data Register)

The MAR asks 'where?'. Somebody has to catch the answer. Follow one instruction and one piece of data as they come back from memory, and see where they land.

Computer Science · The CPU

What lands in the MDR?

Step through a fetch stage, then a LOAD. Every value is invented for this lesson and the page does not run a CPU. A dash means that store is not being shown at that step, not that it is empty.

First follow an instruction in the fetch stage, then follow some data in a LOAD. What does the MDR hold each time, and where does it go next?

Phase: Fetch: address sent from the MAR

Memory

5: LOAD

Data bus

—

MAR

5

MDR

—

CIR

—

Accumulator (Acc)

—

Output

 

Step 1: Fetch stage. The address 5 has been sent from the MAR, and memory finds the instruction stored there. In this example it is LOAD.

1 / 8

Press Next and watch the MDR box: it lights up with an instruction first, then with data.

Step 1 of 8: Fetch stage. The address 5 has been sent from the MAR, and memory finds the instruction stored there. In this example it is LOAD..

MAR or MDR?

MARvsMDR

Pick a side, then tap each row to see why it matters.

Focus

What it deals with

MAR

The address memory should look at

MDR

What memory sends back from that address

The insight

Address versus contents. The MAR asks 'where?' and the MDR answers 'what'.

In the fetch stage

MAR

Its address is sent to memory, which finds the instruction there

MDR

The instruction that memory sends back is temporarily held here, then copied to the CIR

In the execute stage of a LOAD

MAR

Memory finds the data at the address in it

MDR

The data that memory sends back updates it, and the data is stored in the accumulator

What kind of thing it is

MAR

A register in the CPU

MDR

A register in the CPU

Computer Science · The CPU

Which idea about the MDR is right?

Two friends are revising the fetch stage and arguing about what the MDR does.

Which of these is closest to what you think right now?
How sure are you?

Computer Science · The CPU

Say it like an exam answer

Describe the purpose of the MDR. [3 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.

The CPU's arrivals desk: what memory sends back lands here.

What you need to know

  • A register is a very small, fast memory location inside the CPU.
  • The CPU registers you need to know are MAR, MDR, CIR, PC and the accumulator.
  • The MDR (memory data register) is one of them, so it sits inside the CPU.
  • Have a goYour mate says the MDR must be part of main memory, because 'memory' is right there in its name. Where is it really?

    Inside the CPU.

    It is one of the CPU registers, and registers are very small, fast memory locations inside the CPU, so the name does not put it in main memory.

  • The MDR stores the data when it is fetched from memory.
  • The data bus transfers the actual data or instructions between the CPU, memory and input/output devices.
  • In the fetch stage, memory finds the instruction at the address sent from the MAR and sends it back along the data bus.
  • The instruction is temporarily held in the MDR, then copied to the CIR.
  • Have a goA classmate announces, very confidently: 'The MDR only ever holds data. Instructions never go near it.' Are they right?

    No. In the fetch stage the instruction is held in the MDR before it is copied to the CIR.

    The name says 'data', but memory sends the instruction back too, so the MDR holds it temporarily on its way to the CIR.

  • Now a LOAD. In the execute stage, memory finds the data at the address in the MAR and sends it back along the data bus.
  • The data received updates the MDR, and it is stored in the accumulator.
  • Have a goIn a LOAD, memory sends back the number 4. Put these in the order the 4 meets them: accumulator, data bus, MDR.

    Data bus, then MDR, then accumulator.

    The data travels back along the data bus, updates the MDR and is then stored in the accumulator, so it does not skip the MDR.

The big picture

The MDR (memory data register) is one of the CPU's registers: very small, fast memory locations inside the CPU. It stores the data when it is fetched from memory. In the fetch stage, the instruction that memory sends back along the data bus is temporarily held in the MDR before being copied to the CIR. In the execute stage of a LOAD, the data sent back along the data bus updates the MDR and is stored in the accumulator.

Key points

1The MDR (memory data register) is one of the CPU registers (MAR, MDR, CIR, PC and the accumulator). A register is a very small, fast memory location inside the CPU.
2The MDR stores the data when it is fetched from memory.
3In the fetch stage, the instruction that memory sends back along the data bus is temporarily held in the MDR before it is copied to the CIR.
4In the execute stage, when the decoded instruction is LOAD, the data memory sends back along the data bus updates the MDR and is stored in the accumulator.
5The data bus transfers the actual data or instructions between the CPU, memory and input/output devices.

Worked example

Problem

A LOAD has been decoded. The MAR holds the address 30, and memory location 30 holds the number 9. Which register does the 9 reach first, and what does the accumulator hold at the end?

⚠ Watch out

Treating the MDR as a data-only register because of its name. The instruction passes through it too, in the fetch stage, before it is copied to the CIR.

🧠

Memory hook

MAR asks 'where?'. MDR answers 'what'.

✓

Check yourself

Cover the page. In the fetch stage, what lands in the MDR and where does it go next? Then the same question for a LOAD.

Flashcards

(10)
What is a register?
A very small, fast memory location inside the CPU.
Name the five CPU registers you need to know.
MAR, MDR, CIR, PC and the accumulator.
What do the letters MDR stand for?
Memory data register.
What does the MDR store?
The data when it is fetched from memory.
What does the data bus transfer?
The actual data or instructions between the CPU, memory and input/output devices.
In the fetch stage, which register temporarily holds the instruction that memory sends back?
The MDR.
After the MDR holds the fetched instruction, where is it copied to?
The current instruction register (CIR).
In the fetch stage, which register provides the address that memory looks up?
The MAR.
In a LOAD, what happens to the data that comes back along the data bus?
It updates the MDR and is stored in the accumulator.
MAR or MDR: which one answers 'what'?
The MDR. The MAR asks 'where?' with the address. The MDR receives what memory sends back.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 14 November 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.