← Back to Learning Demos

AQA Assembly Challenges

Syntax rules enforced strictly: labels must end with : and be on their own unindented line; instruction lines must be indented; immediate values must use decimal #; only registers R0..R12; memory refs are decimal addresses 100..199. Registers and memory cells are implemented internally as 16-bit signed integers, so values outside -32768..32767 overflow and wrap.
Ready.
PC: 0
CMP Flag: N/A
State: Stopped

Registers (R0-R12)

Memory 100-199 (10x10)

Instruction set

InstructionDescription

Labels

A label is placed in the code by writing an identifier followed by a colon (:). To refer to a label, place the label identifier after the branch instruction.

Interpretation of <operand2>

The available general purpose registers that the programmer can use are numbered 0 to 12.