Back to Computers

Assembly Language Instruction Set - Pearson Edexcel A-Levels Computers

ARMlite Assembly Language Instruction Set Overview

The Pearson Edexcel International Advanced Level qualification in Computer Science uses ARMlite for low-level code. Students who study A levels learn how CPU chips run machine code.

ARMlite models a 32-bit RISC processor. It has 13 general registers from R0 to R12. It also has three special registers. Mastering this assembly set helps you earn top marks. It helps you get a high final grade for your full A level.

Schools and sixth form colleges offer this unit in January and June. Similar to Cambridge International qualifications, Edexcel uses standard terms across the United Kingdom.

Review full syllabus topics in our Subject Content guide.

Learn exam paper formats in our Assessment guide. Check question words in our Command Word Taxonomy guide.

Syntax Rules Operands and Labels

Follow these simple syntax rules when writing ARMlite code:

  • Registers: Use R0 to R12 for general data storage and math tasks.
  • Immediate values: Put a hash sign before numbers like #10.
  • Memory labels: Put a colon after a name like loop: to mark a jump point.
  • Comments: Put a semicolon ; before notes to explain code steps.

ARMlite Instruction Reference

Instruction Operation Description
ADD Rd, Rn, <op> Addition. Add operand to Rn. Store the sum in Rd.
SUB Rd, Rn, <op> Subtraction. Subtract operand from Rn. Store the result in Rd.
AND Rd, Rn, <op> Bitwise AND. Perform bitwise AND between Rn and operand. Store in Rd.
ORR Rd, Rn, <op> Bitwise OR. Perform bitwise OR between Rn and operand. Store in Rd.
EOR Rd, Rn, <op> Bitwise XOR. Perform bitwise XOR between Rn and operand. Store in Rd.
MVN Rd, <op> Bitwise NOT. Invert all bits in operand. Store the result in Rd.
LSL Rd, Rn, <op> Shift Left. Shift bits in Rn left by operand bits. Store in Rd.
LSR Rd, Rn, <op> Shift Right. Shift bits in Rn right by operand bits. Store in Rd.
CMP Rn, <op> Compare. Compare Rn with operand. Set processor status flags.
B <label> Jump. Jump directly to the instruction at the given label.
B<cond> <label> Branch. Jump to label if condition matches the status flags.
MOV Rd, <op> Move Data. Copy operand value directly into register Rd.
LDR Rd, <addr> Load RAM. Load value from memory address into register Rd.
STR Rd, <addr> Store RAM. Store value from register Rd into memory address.
HALT Stop Program. Stop program execution completely.

Branch Conditions Reference

Branch Code Condition Action
BEQ <label> Equal. Branch to label if values are equal.
BNE <label> Not Equal. Branch to label if values are not equal.
BGT <label> Greater. Branch to label if first value is greater.
BLT <label> Less. Branch to label if first value is smaller.

Assembly Programming Exam Strategies

In A level computer science, exams test your skill in tracing and writing assembly routines.

Questions check your grasp of computer systems, data representation, and CPU registers.

Students also show how low-level instructions power modern artificial intelligence chips.

Trace and Code Habits Practical Tips

Use these simple tips to earn full marks on assembly questions:

  • Trace registers with care: Track changes to R0–R12 row by row in a trace table.
  • Check branch logic: Confirm if BEQ, BNE, BGT, or BLT matches your test result.
  • Watch immediate hashes: Never forget the hash sign # when moving constant values.
  • Differentiate LDR and STR: Remember LDR brings data in. STR writes data out.
  • Plan loops cleanly: Set up counters before loops. Decrement before your branch jump.

Common Pitfalls Errors to Avoid

Avoid these common errors noted by Pearson examiners:

  • Missing operands: Make sure three registers appear on tasks like ADD and SUB.
  • Confusing registers with memory: Remember registers sit in the CPU. RAM needs LDR or STR.
  • Missing HALT command: Always end assembly code runs with HALT to stop execution.
  • Infinite loops: Make sure your test check updates on every pass through a loop.

Higher Education Paths UCAS and Careers

Learning low-level code in Pearson Edexcel A level computer science prepares you for higher education.

Top computing degrees set strict entry requirements that value practical problem solving and systems knowledge.

High scores lift your final grade and earn valuable UCAS points toward your university choices.

Like other top A level courses, this advanced level qualification is recognized across the United Kingdom.

All exam questions use clear English language so every student can show their full ability.

Career Opportunities Hardware and Systems

Understanding processor architecture opens doors to top tech careers:

  • Embedded systems: Program small chips and smart sensors in robotics and web-connected tools.
  • Compiler engineering: Build code tools that turn high-level languages into fast machine code.
  • Chip architecture: Design next-generation processors for data structures and machine learning models.
  • Operating systems: Build kernels, device drivers, and low-level system code for servers.