Explore

Learn: Program Counter - Tracking the Next Instruction
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 LearningStudents also studied
Browse allSteps in this lesson (12)
Welcome!You've already learned about the CPU, its components, and how it processes instructions. Today, we'll focus on the Program Counter (PC), an essential register that helps the CPU keep track of what to do next.
What is the Program Counter (PC)?The Program Counter is a CPU register that stores the address of the next instruction to be executed. After the CPU fetches an instruction, the PC is updated to point to the next one.
Why is the Program Counter Important?The Program Counter ensures instructions are executed in the correct order. Without it, the CPU wouldn't know where to fetch the next instruction, and the computer wouldn't function properly.
Quick check: What does the Program Counter store?
Start the lesson to answer this multiple choice question
How Does the Program Counter Work?During the fetch-decode-execute cycle, the CPU uses the address in the Program Counter to fetch the next instruction from memory. Once the instruction is fetched, the Program Counter increments to the address of the following instruction, ready for the next cycle.
The {{blank0}} register stores the {{blank1}} of the next instruction to execute.
Start the lesson to answer this fill in the blank question
What Happens When the CPU Jumps to a New Instruction?Sometimes, the Program Counter is updated to a completely different address, instead of incrementing by one. For example, this happens when a program includes a branch instruction, such as an IF statement that changes the flow of control.
Match the items on the left with their correct pairs on the right
Start the lesson to answer this matching question
Review Time!Great work! You've learned about the Program Counter, its role in the CPU, and how it interacts with the fetch-decode-execute cycle. Let's test your understanding!
Which of the following are true about the Program Counter? (Select all that apply)
Start the lesson to answer this multi-select question
Match the items on the left with their correct pairs on the right
Start the lesson to answer this math equation question
Match the items on the left with their correct pairs on the right
Start the lesson to answer this code completion question

Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Explore More Topics