GCSE · Computer Science · Eduqas · Spec C500QS

Memory data register (MDR)

Every time the CPU fetches an instruction or saves a value, the item stops in one tiny box on the way. What is in that box, and what isn't?

Computer Science · The CPU

Watch one register: the MDR

Two reads and one write. Keep your eye on the MDR box and ignore the rest.

Phase: Read 1 · find the instruction

MAR (the address)

100

MDR

(earlier item)

Main memory at that address

ADD 5

Output

 

Step 1: The CPU wants an instruction. The address 100 only says where to look. Nothing has come back yet, so the MDR still holds an earlier item.

1 / 6

Step through the trace — every value is the lesson’s, not run by the page.

Step 1 of 6: The CPU wants an instruction. The address 100 only says where to look. Nothing has come back yet, so the MDR still holds an earlier item..

Exam line: The MDR holds the thing being moved (an instruction or data), in both directions.
Watch out: The address only says where to look. What arrives in the MDR is what was found there.

Computer Science · The CPU

What does the MDR actually hold?

Your friend is explaining the memory data register to you. Three people in your class give three different answers to the question below.

What does the memory data register hold? Which answer is closest to what you would say?
How sure are you?

Exam line: Contents, not an address. A register inside the CPU, not part of main memory.

Computer Science · The CPU

What is the MDR holding right now?

Each scenario freezes the CPU at one moment. Pick a scenario, then pick what the MDR is holding at that moment.

Still to sort

An instruction just fetched (0)

Read from main memory, and it is something for the CPU to carry out.

Where the line is: It is an instruction, not data, even though it came from the same main memory as data does.

Data just read (0)

Read from main memory, and it is a value the program is working with.

Where the line is: It is coming in from main memory. If it is on its way out to be stored, it belongs in the next box.

Data waiting to be written (0)

A value the CPU wants to store, not yet in main memory.

Where the line is: It is going out to main memory. If it was just read in, it belongs in the box above.

6 of 6 still to sort.

Exam line: Instruction or data, going in or going out: the MDR holds them all, one at a time.

Predict, then check

Three transfers happen one after another. Commit to an answer before you look.

The CPU reads the number 17 from main memory. Then it writes the number 63 to main memory. Then it reads the number 5 from main memory. When that last read has arrived, what does the MDR hold?

Computer Science · The CPU

Say it in your own words

Describe the purpose of the memory data register (MDR). [3 marks]

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

Exam line: Cover three ideas: items read in, data waiting to be written, and the MDR as a buffer.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

The tiny box inside the CPU where whatever is travelling to or from main memory waits its turn.

What you need to know

  • The memory data register, or MDR, is a register: a small, very fast storage location inside the CPU.
  • When the CPU reads from main memory, the item it fetches is held in the MDR.
  • Going the other way, data waiting to be written to main memory is held in the MDR too.
  • Have a goThe CPU has a result and wants it saved to main memory. Before it is stored, where does it wait inside the CPU?

    In the MDR.

    The MDR is not only for reads. It also holds data waiting to be written to main memory.

  • The MDR holds the actual contents being transferred, never a memory address.
  • Have a goSam says confidently: "The MDR is where the CPU keeps the address 4096 so it knows where to look." Fix Sam's sentence with one change.

    Swap the address for the contents: it holds the item found there, not 4096.

    Sam is describing where to look. The MDR holds what was found, the data or instruction itself.

  • A Von Neumann processor keeps data and instructions in the same main memory, so the MDR can hold either one.
  • Have a goA Von Neumann processor fetches the instruction ADD 5, then loads the data value 42. Can the same MDR hold both, one after the other?

    Yes, because both come from the same main memory.

    The MDR is not tied to one kind of item. It holds whatever is transferred, instruction or data.

  • The MDR is a buffer between the CPU and main memory: anything passing between them is held there on the way.
  • Each new transfer replaces the value the MDR held before, so it shows the most recent item.

The big picture

The memory data register (MDR) is a small, very fast register inside the CPU. It temporarily holds the actual item, an instruction or data, that is travelling between the CPU and main memory, in either direction. It holds contents, not addresses, and each new transfer replaces whatever it held before.

Key points

1The MDR is the CPU's holding point for the item being moved to or from main memory.
2It holds contents (an instruction or data), and the address is held elsewhere.
3It works in both directions: after a read and before a write.
4One item at a time: the next transfer replaces the last.

Worked example

Problem

The CPU needs the number stored at address 600 in main memory. Address 600 holds the value 15. Which of 600 and 15 ends up in the MDR, and why?

⚠ Watch out

Saying the MDR holds a memory address. It holds the contents being transferred, which is the instruction or the data itself. Check every answer for 'address' and ask: is this where it is, or what it is?

🧠

Memory hook

Think of the MDR as a loading bay: whatever is moving in or out stops there for a moment, and the next delivery takes its place.

✓

Check yourself

Without looking back: what are the two directions the MDR works in, and what does it never hold?

Flashcards

(10)
What is the MDR?
The memory data register: a small, very fast storage location (a register) inside the CPU.
What does the MDR hold after a read from main memory?
The data or instruction that has just been fetched, held there temporarily.
What does the MDR hold on the way out to main memory?
Data waiting to be written (stored) to main memory.
Does the MDR hold an address or the contents?
The contents: the actual data or instruction being transferred, not a memory address.
Why can the MDR hold an instruction one moment and data the next?
A Von Neumann processor keeps data and instructions in the same main memory.
In what sense is the MDR a buffer?
Data and instructions passing between the CPU and main memory are held in the MDR on the way.
What happens to the MDR's value when a new transfer happens?
It is replaced by the new item read or written.
Is the MDR inside the CPU or part of main memory?
Inside the CPU. It is a register, not part of main memory.
Which register is the contrast: the one that holds an address?
The memory address register (MAR). The MDR holds contents instead.
Name three things the MDR might hold at different moments.
An instruction just fetched, data just read, and data waiting to be written.

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

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)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 16 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.