GCSE · Computer Science · Eduqas · Spec C500QS
Program counter (PC)
Every instruction in a program sits at its own address in memory. So how does the CPU always know which one to fetch next?
Computer Science · Program counter
Call the PC before the CPU does
This program sits in main memory, one instruction per address. Step through it, and call each marked value before the table shows it. Nothing is run: every value is set by the lesson.
0: LOAD the typed-in number1: ADD 2 to it2: IF the total is more than 6, JUMP to address 53: OUTPUT "small"4: STOP5: OUTPUT "big"6: STOP
| PC during fetch | Instruction fetched | PC for next fetch |
|---|---|---|
| 0 | LOAD the typed-in number | 1 |
Step 1. The PC holds 0, so the CPU fetches the instruction stored at address 0. This first row is worked for you: after the fetch the PC is incremented to 1.
Why the PC exists
Reason it through
Why does the CPU need a program counter at all?
First link · your turn
Where does a Von Neumann processor keep the instructions of a program, and how are they laid out?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
The CPU's bookmark: one small value that says where the next instruction is.
What you need to know
- The program counter (PC) is a register: a small, very fast storage location inside the CPU.
- In a Von Neumann processor, a program's instructions are stored in main memory, each at its own memory address.
Have a goYour mate swears the program counter lives in main memory, right next to the instructions. Is your mate right?
No. The PC is a register inside the CPU.
Main memory is where the instructions are stored. The PC is a small, very fast storage location in the CPU itself.
- So the CPU has to keep track of where the next instruction is.
- That's the PC's job: it holds the memory address of the next instruction to be fetched.
- It holds an address (the location of the instruction in memory), not the instruction itself.
- When an instruction is fetched, the PC is incremented, so it holds the address of the next instruction in sequence.
Have a goThe PC holds 20, and the instruction at address 20 is not a jump. Each instruction sits at the next address up. What does the PC hold once that instruction has been fetched?
21
The fetch increments the PC, so it holds the address of the next instruction in sequence.
- That update is what makes the CPU carry out instructions one after another, in order.
- On a jump (branch), the PC is changed to the address jumped to, so that instruction is fetched next.
Have a goA classmate says: "On a jump the PC still goes up by one, and the CPU just ignores it." What actually happens to the PC?
It is changed to the address being jumped to.
The fetch increments the PC, but carrying out the jump then changes it to the target address, so the instruction at that address is fetched next.
The big picture
The program counter (PC) is a register inside the CPU that holds the memory address of the next instruction to be fetched. It is incremented after each fetch, which carries the CPU through the program in order, and changed to the target address on a jump.
Key points
Worked example
Problem
A program is stored in main memory like this: address 20 LOAD 4, address 21 ADD 1, address 22 JUMP to 25, address 23 STORE, address 24 STORE, address 25 OUTPUT. The PC starts at 20. Write down the address the PC holds at each fetch.
⚠ Watch out
Writing that the PC contains the next instruction, or a count of the instructions run. It holds the memory address of the next instruction to be fetched.
Memory hook
The PC is a bookmark, not the page: it tells the CPU where to look, never what is written there.
Check yourself
The instruction at address 14 is a jump to address 30. After it, what does the PC hold: an instruction or an address, and which one?
Flashcards
(11)What is the program counter (PC)?
Is the PC part of main memory?
Where are a program's instructions stored in a Von Neumann processor?
Why must the CPU keep track of where the next instruction is?
What is the purpose of the PC?
Does the PC hold the instruction itself?
What happens to the PC when an instruction is fetched?
Why is the PC incremented on a fetch?
What does updating the PC make the CPU do?
What happens to the PC when an instruction jumps (branches)?
After a jump, which instruction is fetched next?
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 Eduqas GCSE Computer Science topics
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.