* * $ tm-cli-go solution-v2.tm * OUT instruction prints: 2147483647 * HALT: 0,0,0 * Number of instructions executed = -2147483645 * 0: LDC 1,1(0) now R0 and R1 are constants 1: LDC 3,1(0) now R3 = 1 is a counter 2: JLE 3,2(7) if R3 is <= 0, then break 3: ADD 3,3,1 else increment counter 4: LDA 7,-3(7) and loop 5: SUB 3,3,1 underflow back to maxint 6: OUT 3,0,0 print the last positive value 7: HALT 0,0,0 *