nine exercises · a real 8-bit machine · one lesson
Not a simulation of a lesson about computers — a computer. Sixteen registers, four
flags, twenty-seven instructions, and no if statement, so the student builds one. Every
exercise starts incomplete: the machine runs, does something, and the class can see exactly
what is missing.
CALL seven ; ... and now? R3 must hold 9 HLT seven: LDI 7 MOV R4, R0 ; how do you get back?
About 50–70 minutes for a first lesson, and every one of them is checked by the machine, not by the teacher.
LDI fills the accumulator, MOV moves it
what ADD Ra, Rb really means
SHL is multiply-by-two
a loop needs a counter and a branch
STORE and LOAD reach RAM
CALL pushes, RET pops — and the code after proves it
CMP sets the flags, JZ branches — this is your first if
OUT hands a byte to a port
weft8.js from
app-jacquard, byte for byte — so a student
who finishes these eight can open Jacquard or the puzzle set and it is the same computer.the weft-8 family — one machine, seven faces
Every one of these runs the same engine — weft8.js from the Loom, byte for byte. Learn it once and you have learned all seven.