GCSE · Computer Science · AQA · Spec 8525
Machine code
Four lines of 1s and 0s. One processor runs them as a tiny program. A different type of processor gets the exact same lines, and something else happens.
Computer Science · Machine code
Same four lines. Two processors.
Both processors here, and their instruction sets, are invented for illustration. In each, the left four bits pick the action and the right four give a number when one is needed. Both start with a running value of 0.
Step through processor A first. When processor B takes over, stop and predict: same four lines, same result?
1 0001 01012 0010 00113 0011 00004 0000 0000
Variables
Output
Step 1: Processor A reads 0001 0101. In A's instruction set that pattern means 'load 5', so the running value becomes 5.
Press Next to step. The listing on the left never changes. Only the processor reading it does.
Why machine code belongs to one family
Reason it through
Why can a machine code program written for one type of processor fail on another?
First link · your turn
To start: what is a processor able to carry out?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- Machine code is a language written entirely in binary: every instruction is a pattern of 1s and 0s.
- A processor executes machine code. Binary instructions are the form it carries out directly.
Have a goSam says: 'Machine code is just English commands, but in capital letters.' One thing Sam has wrong?
Machine code is written in binary, not in words.
Every machine code instruction is a pattern of 1s and 0s, and the processor executes those patterns.
- That makes machine code a low-level language: it sits close to the processor, in the processor's own instructions.
- Every type of processor has its own machine code instruction set: the instructions it can carry out.
- Each instruction in that set is a particular binary pattern that this type of processor is built to recognise.
Have a goProcessor X is built to recognise the pattern 1010. Processor Y is a different type. Does that tell you Y recognises 1010 too?
No. It tells you nothing certain about Y.
Each type of processor has its own instruction set, so what X recognises says nothing certain about what Y recognises.
- A different type of processor has a different instruction set, so the same pattern may mean something else, or nothing.
- So machine code is specific to a processor or family of processors, and a program is written for one family.
Have a goMia says: 'It's all just 1s and 0s, so any computer can run it.' Is that safe to rely on?
No. On a different type of processor it may not run.
Binary is only how the instructions are written. What a pattern means depends on the processor's instruction set, so a program for one family may not run on another type.
- 'Low-level' is about closeness to the processor. It is not a measure of how easy or how old a language is.
The big picture
Machine code is the language a processor executes: every instruction is a pattern of binary. It is called a low-level language because it sits close to the processor. But each type of processor has its own machine code instruction set, so the same pattern can mean something different, or nothing, on another type. That makes machine code specific to a processor or family of processors.
Key points
Worked example
Problem
In two made-up processor families, C and D, the left four bits of an instruction pick the action and the right four give a number. C's instruction set says 0110 means 'add the number'. D's says 0110 means 'stop'. Both are given the instruction 0110 0010. What does each family do, and what does this show?
⚠ Watch out
'It's all 1s and 0s, so any computer can run it.' Binary is only how machine code is written. Each pattern's meaning comes from the processor's instruction set, and a different type has a different one. And an instruction is a code, not a number to total.
Memory hook
One processor, one dictionary. The 1s and 0s only mean something inside that processor's instruction set, and a different type of processor brings a different dictionary. (The analogy has one crack: a processor doesn't look anything up. It is simply built to recognise its own patterns.)
Check yourself
Replay the hero in your head: the same four binary lines went to processor A, then to processor B. Say out loud what stayed the same, what changed, and what caused the change.
Flashcards
(7)What is machine code written in?
What does a processor do with machine code?
What is a machine code instruction set?
What is a single instruction in an instruction set?
Why is machine code called a low-level language?
The same binary pattern goes to two different types of processor. What might happen?
What is machine code specific to?
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 AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)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 9 October 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.