Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/01 Computer systems/Types of Programming Language/Assembly language and the Little Man Computer…

Assembly language and the Little Man Computer instruction set

Assembly language (including following and writing simple programs with the Little Man Computer instruction set). See appendix 5d

1.2.4 Types of Programming Language

Practise exam questions

Types of Programming Language — Note 3 of 5

Candidates need to have an understanding of the purpose and need for assembly language. They need to be familiar with the instructions given in Appendix 5d. They should be able to read, write, trace and amend programs written in the Little Man Computer language.

What you need to know

Assembly language uses short mnemonics to represent machine code instructions. The Little Man Computer (LMC) is a simplified model used to learn assembly language. You need to be able to read, trace, write and amend simple LMC programs.

What to know

  • Assembly is used when direct control of hardware, small code size or maximum speed is needed, e.g. device drivers and embedded systems.
  • LMC instructions: ADD (add the value at an address to the accumulator), SUB (subtract), STA (store the accumulator in an address), LDA (load from an address into the accumulator).
  • LMC branches: BRA (branch always), BRZ (branch if the accumulator is zero), BRP (branch if the accumulator is zero or positive).
  • LMC I/O and data: INP (input into the accumulator), OUT (output the accumulator), HLT (stop), DAT (label a memory location for data, with an optional starting value).
  • Labels name memory locations or lines so branches can refer to them, e.g. loop or count.
  • Instructions that change the accumulator: INP, LDA, ADD, SUB. Instructions that can change the program counter: BRA, BRZ, BRP (a branch that is taken puts the label's address in the PC).
  • To compare two values, LDA the first, SUB the second, then branch on the result: BRP if the first is greater than or equal to the second, BRZ if they are equal.

Code examples

LMC: input two numbers and output their sum
text
        INP
        STA first
        INP
        ADD first
        OUT
        HLT
first   DAT
LMC: count down from an input number to zero
text
        INP
        STA count
loop    LDA count
        OUT
        BRZ end
        SUB one
        STA count
        BRA loop
end     HLT
count   DAT
one     DAT 1

Key terms

Assembly language

A low-level language that uses mnemonics (e.g. ADD, LDA) to represent machine code instructions. Each instruction usually translates to one machine code instruction.

Exam technique

  • Tip:Alternative mnemonics such as STO, LOAD, BR, BZ, BP, IN, INPUT, COB and END are accepted, in any case. Label names must match the case used in the question.
  • Tip:Answer in LMC when LMC is asked for (pseudocode earns nothing), and keep the program short. Make every path end with HLT or branch back: a program that outputs the right value but runs on and outputs another loses the mark.
  • Mistake:Forgetting that BRP branches when the accumulator is ZERO as well as positive.
  • Mistake:Using ADD to update a running total or counter and then moving on. ADD changes only the accumulator. Follow it with STA to save the new value, or the next INP or LDA overwrites it.
  • Mistake:Putting DAT lines before HLT. Data lines go after the program, otherwise they will be executed as instructions. Every label you use for data needs its own DAT line.
  • Mistake:Saying assembly is chosen because it is easier to read. It is harder to read; it is chosen for efficiency, direct control of hardware and MEMORY ('storage' is not accepted in place of memory), a particular processor, or when no compiler exists. It is translated by an ASSEMBLER, not a compiler or interpreter.

Past exam questions

  • June 2026Paper 1Q1(d)(i)3marks
  • June 2026Paper 1Q1(d)(ii)2marks
  • June 2026Paper 1Q1(d)(iii)7marks
  • June 2025Paper 1Q4(a)3marks
  • June 2025Paper 1Q4(b)4marks
  • June 2024Paper 1Q1(d)(i)3marks
  • June 2024Paper 1Q1(d)(ii)4marks
  • June 2024Paper 1Q1(f)2marks
  • June 2023Paper 1Q4(a)4marks
  • June 2022Paper 1Q1(c)(i)3marks
  • June 2022Paper 1Q1(c)(ii)4marks
  • November 2021Paper 1Q6(a)(ii)2marks
  • November 2021Paper 1Q6(b)4marks
  • November 2020Paper 1Q7(a)5marks
  • November 2020Paper 1Q7(b)6marks
  • June 2019Paper 1Q3(a)3marks
  • June 2019Paper 1Q3(b)1mark
  • June 2018Paper 1Q1(b)(i)2marks
  • June 2017Paper 1Q5(a)(i)3marks
  • June 2017Paper 1Q5(a)(ii)3marks
  • June 2017Paper 1Q5(b)(i)1mark
  • June 2017Paper 1Q5(b)(ii)1mark
  • June 2017Paper 1Q5(b)(iii)1mark
  • June 2017Paper 1Q5(b)(iv)1mark
  • June 2017Paper 1Q5(b)(v)2marks

Ready to test yourself?

Practise 1.2.4 questions
← Previous noteProcedural languages1.2.4 Types of Programming LanguageNext note →Modes of addressing memory: immediate, direct, indirect and indexed1.2.4 Types of Programming Language

Back to Types of Programming Language

Types of Programming Language

Note 3 of 5

  1. 1The need for and characteristics of a variety of programming paradigms
  2. 2Procedural languages
  3. 3Assembly language and the Little Man Computer instruction set
  4. 4Modes of addressing memory: immediate, direct, indirect and indexed
  5. 5Object-oriented languages: classes, objects, methods, attributes, inheritance, encapsulation, polymorphism
Topic overview