GCSE · Computer Science · AQA · Spec 8525

Assembly language

Put ADD above a row of 0s and 1s and you can see assembly language's whole idea at a glance.

Computer Science · Programming languages

Machine code, assembly or high-level?

Pick a fragment, then pick the level you think it belongs to. The reason appears once you commit.

Still to sort

Machine code (0)

Instructions made only of 0s and 1s, which the processor can run directly.

Where the line is: No names, no words: only binary. It's the one level the processor can run without anything translating it first.

Assembly language (0)

Short mnemonics, each standing for one machine code instruction.

Where the line is: More readable than binary because of the mnemonics, but still short abbreviations rather than English-like statements.

High-level language (0)

English-like statements that are easy for people to read.

Where the line is: Looks like words or maths, not abbreviations of single instructions. Much further from the hardware than assembly.

8 of 8 still to sort.

Same kind of job, three different levels of writing it down. Sort each fragment, then read why it belongs there.

Exam line: If you can see short mnemonics like ADD or SUB, it's assembly. Only 0s and 1s means machine code. English-like statements mean high-level.
Watch out: Capital letters don't make something assembly. ADD is a short mnemonic. IF score > 50 THEN PRINT "Pass" is a statement made of words, so it's high-level. The 0s and 1s below are invented to show the idea; a real processor type has its own patterns.

Computer Science · Programming languages

What does assembly share with each neighbour?

Tick every property that is true for each level, then check your grid. Look down each column for the pattern.

Machine code
Assembly language
High-level language

Exam line: Assembly is processor-specific and low-level like machine code, but readable like a high-level language. It can't be run by the processor until it has been translated.

From assembly program to running program

Step through it. Notice where the one-to-one match happens.

Computer Science · Programming languages

Which idea is closest to yours?

A friend has just written ADD 7 in an assembly program and is about to run it.

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

Exam line: The processor runs only machine code. An assembler translates each assembly instruction into one machine code instruction.

Computer Science · Programming languages

Should this be written in assembly?

The claim

A device driver should be written in assembly language.

Place each piece of evidence to load the balance. Mark the strong ones — they count double.

  1. Assembly gives direct control of the hardware.

    Evidence 1: does it support or challenge the claim?
  2. Assembly code can run fast.

    Evidence 2: does it support or challenge the claim?
  3. Assembly programs can use very little memory.

    Evidence 3: does it support or challenge the claim?
  4. Assembly is harder and slower to write than a high-level language.

    Evidence 4: does it support or challenge the claim?
  5. Assembly is harder to read and debug.

    Evidence 5: does it support or challenge the claim?
  6. Assembly is not portable: it is specific to one type of processor.

    Evidence 6: does it support or challenge the claim?

Exam line: Assembly can give direct hardware control, fast code and small memory use, but it is harder and slower to write, read and debug, and it isn't portable.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

What you need to know

  • Machine code is the processor's own language: instructions made of 0s and 1s, which it can run directly.
  • Assembly language swaps those patterns for short mnemonics like ADD and SUB, so people can read it.
  • It's one-to-one: each assembly instruction stands for exactly one machine code instruction.
  • Have a goYour classmate swears that ADD turns into about five machine code instructions. They sound very sure. How many is it really?

    One.

    Assembly is one-to-one, so each instruction stands for exactly one machine code instruction.

  • Both machine code and assembly are low-level languages, because they work close to the processor's hardware.
  • Each type of processor has its own machine code, so assembly is specific to one type of processor.
  • Have a goYou write an assembly program for one type of processor. Will it usually work, as it stands, on a different type? Predict before you look.

    No, not as it stands.

    Assembly is specific to one type of processor, so it isn't simply moved to another type.

  • The processor can't run assembly directly. An assembler translates it into machine code first.
  • Have a goProgrammer, assembler, processor: which one actually reads the mnemonics and produces machine code?

    The assembler.

    The processor only runs machine code, so a translator has to produce it from the mnemonics first.

  • High-level languages use English-like statements, and one statement usually does far more than one assembly instruction.
  • Assembly gives direct hardware control and can be fast and compact, which suits embedded systems and device drivers.
  • The price: it's harder and slower to write, read and debug, and it isn't portable between processor types.

The big picture

Assembly language is a low-level language written in mnemonics, with each mnemonic standing for one machine code instruction. It is specific to one type of processor, and an assembler must translate it into machine code before the processor can run it. It gives direct hardware control and can be fast and compact, but it is harder to write and not portable.

Key points

1Machine code is binary that the processor runs directly. Assembly language uses mnemonics that stand for one machine code instruction each.
2Machine code and assembly are both low-level and specific to one type of processor.
3An assembler translates assembly into machine code before the processor can run it.
4Assembly gives hardware control and can be fast and compact, but it is harder to write, read and debug, and isn't portable.

Worked example

Problem

You're handed a new fragment: MUL 6. Decide whether it's machine code, assembly or high-level, and what has to happen before a processor could use it.

⚠ Watch out

Thinking the processor runs assembly directly, or that assembly and machine code are the same thing. The processor only runs machine code, and assembly has to be translated into it.

🧠

Memory hook

Assembly is machine code with names: one name, one instruction, one type of processor. Say it as 'name, one, one'.

✓

Check yourself

Cover the page. What gives a fragment away as assembly, and what has to happen to it before the processor can run it?

Flashcards

(13)
What is machine code?
Instructions made of 0s and 1s that the processor can run directly.
What is assembly language?
A low-level language written in mnemonics, each standing for one machine code instruction.
What is a mnemonic?
A short name, such as ADD or SUB, that stands for one instruction.
What does one-to-one mean for assembly?
Each assembly instruction is translated into exactly one machine code instruction.
What makes a language low-level?
It works close to the processor's hardware. Machine code and assembly are both low-level.
Why is assembly specific to one type of processor?
Each type of processor has its own machine code, and assembly maps onto it.
What is an assembler?
A translator that turns assembly language into machine code.
Can the processor run assembly directly?
No. It only runs machine code, so assembly must be translated first.
What is a high-level language?
A language with English-like statements that are easy for people to read.
Which usually does more: one high-level statement or one assembly instruction?
One high-level statement usually does far more.
Name two advantages of assembly language.
Direct control of hardware, and code that can be fast and use little memory.
Name two drawbacks of assembly language.
It is harder and slower to write, read and debug, and it isn't portable.
Where is assembly language often used?
Embedded systems and device drivers.

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 8 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.