Use assembly language and an assembler
Explain how assembly mnemonics represent low-level operations and how an assembler creates machine code.
This sequence follows Cambridge IGCSE Computer Science 0478, 2026–2028 syllabus Version 6. It covers subject content sections 4.1–4.2 only. The separately published 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers and human subject-teacher review remain outstanding.
Before you begin
- No programming language is required. Be comfortable with place value and multiplication; each lesson introduces the computer-science notation it uses.
Work on paper. Try each question before revealing help, and explain why your method works.
Quick readiness check
What is a mnemonic?
What you will learn
- Identify assembly as a low-level language
- Explain what mnemonics do
- Describe the assembler's translation role
Mnemonics make low-level commands readable
Assembly language is a low-level language that represents processor operations with mnemonic codes such as LOAD or ADD. These names are easier for a programmer to remember than raw binary, but they remain closely related to a particular processor's instruction set.
Apply and check the rule
An assembler translates an assembly-language program into machine code for the target CPU. The machine code can then be executed by a compatible processor.
Pause and explain
Which tool translates assembly into machine code?
Worked example
What must happen before a CPU can execute an assembly program?
Show the worked solution
- The assembly uses mnemonics rather than the CPU's bit patterns.
- An assembler translates those mnemonics into machine code.
- The machine code must match the target instruction set.
Answer An assembler must translate the assembly program into machine code for the target processor.
Try a topic test
Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.
Test this topic →From guided practice to a new situation
Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.
Define assembly language and name the tool that translates it.
Give me a hint
Include language level and mnemonics.
Compare my reasoning
- Assembly is a low-level language using mnemonics.
- An assembler translates it into machine code.
Assembly is a low-level mnemonic language; an assembler converts it to machine code.
Look for these in your work
- Low-level
- Mnemonics
- Assembler role
An assembly instruction uses the mnemonic ADD. Why can't the CPU necessarily execute the letters directly?
Give me a hint
The CPU processes machine code in its instruction set.
Compare my reasoning
- ADD is a human-readable mnemonic.
- The assembler converts it into the target CPU's machine-code command.
- The CPU executes that machine-code representation.
The letters are assembly notation; an assembler translates them into machine code the CPU can execute.
Look for these in your work
- Mnemonic role
- Translation
- CPU machine code
An assembly program for one processor is sent to a computer with a different architecture. Why might it need to be assembled again?
Give me a hint
Consider the target instruction set.
Compare my reasoning
- Assembly mnemonics correspond to processor operations.
- The target CPU may use a different instruction set.
- An assembler for the target must produce compatible machine code.
The source may use commands for another instruction set. It must be translated for the target architecture so the CPU can execute compatible machine code.
Look for these in your work
- Instruction-set dependency
- Target compatibility
- Assembler use
Common mistakes
- Calling an assembler an interpreter
- Assuming assembly mnemonics are identical across processor architectures
What can you explain now?
What does an assembler produce?
Compare with the explanation
Machine code
An assembler translates assembly-language mnemonics into machine instructions.
After trying it yourself, choose your next review. This is your self-assessment.
Your review choice appears on Today. Sign in to sync it across devices.
Make it stick
What are the two forms involved when an assembler translates code?
If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.