Run a program
You will learn
How five instructions and one three-way jump make a loop that ends itself.
The widget's machine has three 9-trit registers and five instructions: SET, ADD, DEC, BR3 and HALT. Sum 1..n sets r1 to n, adds it into r0, decrements, and BR3 jumps back while r1 is positive; at 0 it falls through to HALT. For n = 5 it halts with r0 = 15. The lesson spec describes the .tbin container a TRI-27 program ships in, as the Trinity loader reads it.