A32

ARM ASMTutor

A small machine. A closer look at computing.

AQA ASSEMBLY TEACHING EDITION
LEARN WITH THE MACHINE

From your first value to your first loop

TRY IT YOURSELF

Check your understanding

Ready · Load a lesson or write a program, then Assemble.

Program

SOURCE EDITOR
BPAddrInstruction / data

Click BP to toggle a breakpoint. The arrow marks the next instruction.

Processor

32 BIT
PROGRAM COUNTER00 instructions executed

Memory

4096 CELLS / EXTENDED
AddressValue / instruction

Pixel display

R9 / score: 0

Click the screen to use arrows / WASD. RGB pixels: memory 256–1023. Snake needs Graphics / game speed.

Graphics & Snake tutorial

EXTENSIONS

Memory becomes a picture

Every pixel has an address: 256 + y × 32 + x. Write an RGB colour with STR and inspect it with LDR.

Snake runs as editable assembly. Its circular queue, collisions, apples and score all live in the simulated processor and memory.

Keyboard: INP Rd,5. Random word: INP Rd,8. Frame delay: WAIT #140.

Load lessons 9 and 10 for guided exercises.

Richard Pawson’s Assembly Language Programming ↗

Original examples inspired by these teaching topics. ARMlite textbook programs use a different graphics map and further instructions.

Console

SIMULATOR I/O

Input queue is empty.

Execution trace