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.
Press Next and watch the MDR box: it lights up with an instruction first, then with data.
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
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?
Name the five CPU registers you need to know.
What do the letters MDR stand for?
What does the MDR store?
What does the data bus transfer?
In the fetch stage, which register temporarily holds the instruction that memory sends back?
After the MDR holds the fetched instruction, where is it copied to?
In the fetch stage, which register provides the address that memory looks up?
In a LOAD, what happens to the data that comes back along the data bus?
MAR or MDR: which one answers 'what'?
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 postedMore OCR GCSE Computer Science topics
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.