The opcode map

You will learn

Which of the 256 opcode bytes mean something, and what the rest do.

Of 256 byte values, 47 are TRI-27 opcodes, from NOP and LD through ADD, JMP and HALT to SYSCALL. The other 209 are not errors to the emulator: decode_opcode() reads an unknown byte as NOP, so decoding never fails. The lesson spec, t27a_mnemonics.t27, gives the t27a assembler a strict decoder that refuses those bytes instead.

Open the interactive lesson →