605     # jump to instruction 5 (line 10)

# state
000     # a (lower value)
001     # b (upper value)
000     # c (temp value)
100     # max value

# program
501     # load a
102     # add b
902     # output and store in c
303
502     # load b and store in a
301
503     # load c and store in b
302
204     # subtract max
816     # if c > max, go to instruction 16 (line 21)
605     # go to instruction 5 (line 10) (loop)

000     # stop
