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 0101
2 0010 0011
3 0011 0000
4 0000 0000

Variables

stored=—processor=Arunning value=5this line means=load 5

Output

 

Step 1: Processor A reads 0001 0101. In A's instruction set that pattern means 'load 5', so the running value becomes 5.

1 / 8

Press Next to step. The listing on the left never changes. Only the processor reading it does.

Step 1 of 8: Processor A reads 0001 0101. In A's instruction set that pattern means 'load 5', so the running value becomes 5..

Exam line: Machine code is instructions in binary from ONE processor's instruction set, so it is specific to that processor or family of processors.
Watch out: Don't read 0001 0101 as a number to add up. It is a code for an action, and which action it means depends on whose instruction set is reading it.

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?

Link 1 of 4

First link · your turn

To start: what is a processor able to carry out?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Computer Science · Language levels

What does 'low-level' really mean?

A friend says: 'Machine code is a low-level language.' Three of you argue about what that means.

Which of these is closest to what you think?
How sure are you?

Exam line: Say what low-level describes: how close the language is to the processor, not how easy or old it is.

Computer Science · Your turn

Write it, then mark it

(a) State two characteristics of machine code. [2 marks] (b) Explain why a machine code program written for one type of processor may not run on a different type of processor. [2 marks] [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Give the fact, then give the reason it matters: 'each type of processor has its own instruction set, so the same pattern may mean something different.'

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

1Machine code is written in binary, and a processor executes it.
2Low-level means close to the processor. It does not mean easy or old.
3Every type of processor has its own machine code instruction set.
4So machine code is specific to a processor or family of processors.

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?
Binary. Every instruction is a pattern of 1s and 0s.
What does a processor do with machine code?
It executes it. Binary instructions are the form the processor carries out directly.
What is a machine code instruction set?
The set of instructions that one type of processor is built to recognise and carry out.
What is a single instruction in an instruction set?
A particular binary pattern that this type of processor is built to recognise.
Why is machine code called a low-level language?
It sits close to the processor, written as the processor's own binary instructions. It says nothing about being easy or old.
The same binary pattern goes to two different types of processor. What might happen?
Each reads it with its own instruction set, so it may mean something different on one, or nothing at all.
What is machine code specific to?
A processor or family of processors. A machine code program is written for one family.

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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.