Step-by-Step Lesson

Learn: Data vs Address in Registers

OCR GCSE J277 Computer Science specification

Ready to start this lesson?

Sign in to track your progress. 12 steps including 6 interactive questions.

Sign In to Start Learning
12 Steps6 Questions

Students also studied

Browse all

Steps in this lesson (12)

1
Text

Welcome!You've already explored how registers like MAR and MDR work in the CPU. Now, let's build on that by learning how to tell apart data and addresses in registers.

2
Text

What are Data and Addresses?Registers in the CPU store information needed for processing. This information can be data (the actual value being processed) or an address (location in memory where data is stored).Understanding the difference is essential for knowing how instructions move through the fetch–execute cycle.

3
Multiple ChoiceInteractive

Quick check: What does an address represent in a register?

Start the lesson to answer this multiple choice question

4
Text

Memory Address Register (MAR)The MAR stores the address of the memory location the CPU wants to access. This could be to fetch data or an instruction.For example, if the CPU needs data stored at memory location 5, the MAR will hold the value 5.

5
Text

Memory Data Register (MDR)The MDR holds the data fetched from memory or data that is to be written to memory. It works closely with the MAR to ensure the right data is accessed.For instance, if the CPU fetches the value 42 from memory location 5, the MAR holds 5 (the address) while the MDR holds 42 (the data).

6
Fill in the BlankInteractive

The {{blank0}} register holds the {{blank1}} of the memory location being accessed, while the {{blank2}} register holds the actual {{blank3}}.

Start the lesson to answer this fill in the blank question

7
Text

How Data and Addresses Work TogetherDuring the fetch–execute cycle, the CPU uses the MAR and MDR together. The MAR identifies where to look in memory, and the MDR retrieves or stores the data at that location.This ensures instructions and data move efficiently through the CPU.

8
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

9
Text

Review Time!Great work! You've learned about how the CPU distinguishes between data and addresses in registers. Let's test your understanding!

10
Multi-SelectInteractive

Which of the following are correct about the MAR and MDR? (Select all that apply)

Start the lesson to answer this multi-select question

11
Multiple ChoiceInteractive

Which register stores the address of the next instruction?

Start the lesson to answer this multiple choice question

12
Fill in the BlankInteractive

The MDR holds the {{blank0}} fetched from memory, while the MAR holds the {{blank1}} of the memory location.

Start the lesson to answer this fill in the blank question

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics