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. 18 steps including 9 interactive questions.
Sign In to Start LearningStudents also studied
Browse allSteps in this lesson (18)
Welcome!Great to see you again! You've already learned a lot about how the CPU works, including the fetch-decode-execute cycle and the role of registers like the MAR and MDR. Today, we're diving into the Program Counter, an essential part of the CPU responsible for keeping track of what instruction needs to be executed next. Let's get started!
What is the Program Counter?The Program Counter (PC) is a register in the CPU that holds the memory address of the next instruction to be executed. This helps the CPU keep track of where it is in the sequence of program instructions, making sure it processes commands in the correct order.
How does the Program Counter work?During the fetch-decode-execute cycle, the Program Counter is checked to find the memory address of the next instruction. After the CPU fetches the instruction from memory, the Program Counter automatically updates to point to the address of the next instruction, ensuring a smooth flow of processing.
Quick check: What does the Program Counter store?
Start the lesson to answer this multiple choice question
Why is the Program Counter important?The Program Counter ensures the sequence of instructions is followed correctly during program execution. Without it, the CPU wouldn't know which instruction to process next, leading to errors or inefficient execution.
The {{blank0}} register tracks the {{blank1}} of the next instruction to be executed.
Start the lesson to answer this fill in the blank question
How does the Program Counter interact with other registers?When the CPU starts executing instructions, the Program Counter sends the address of the next instruction to the Memory Address Register (MAR). The MAR uses this address to fetch the instruction from memory. After fetching, the Program Counter is incremented to point to the next instruction, ensuring the process continues seamlessly.
Match the items on the left with their correct pairs on the right
Start the lesson to answer this matching question
Incrementing the Program CounterAfter the CPU fetches an instruction, the Program Counter is incremented. This means its value increases by 1 so that it points to the address of the next instruction in memory. If the program includes a jump instruction, the Program Counter updates to a new address instead of incrementing.
What happens to the Program Counter after the CPU fetches an instruction?
Start the lesson to answer this multiple choice question
Jump Instructions and the Program CounterSometimes, a program needs to jump to a specific instruction instead of following the sequence. This is where jump instructions come in. When a jump instruction is executed, the Program Counter is updated to a new address instead of incrementing, allowing the CPU to 'jump' to another part of the program.
Which of the following describe the Program Counter correctly? (Select all that apply)
Start the lesson to answer this multi-select question
Review Time!Great work so far! You've learned about the role of the Program Counter, its importance, and how it interacts with other registers. Now let's test your understanding with a few questions.
If the Program Counter holds the value 100, what does this mean?
Start the lesson to answer this multiple choice question
The Program Counter is updated by {{blank0}} after fetching an instruction, unless a {{blank1}} instruction is executed.
Start the lesson to answer this fill in the blank question
Match the items on the left with their correct pairs on the right
Start the lesson to answer this matching question
What happens during the fetch phase? (Select all that apply)
Start the lesson to answer this multi-select question
Well done!You've successfully completed the lesson on the Program Counter. Keep practising, and you'll master how the CPU tracks and executes instructions in no time!

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