// Program to input between 1 and 25 // numeric values and then output them // in reverse order. inp sta 94 store N skp N > 0 okay jmp 00 N < 1 try again sub 93 sub 026 skn N < 26 okay [05] jmp 00 N > 25 try again inp get next number [07] sta 80 store lda 08 load store instr sub 96 change address sta 08 and save lda 90 load counter add 96 add 1 to counter sta 90 and save sub 94 subtract N skz if done skip jmp 07 else repeat loop lda 08 load store sub 97 make into load add 96 add 1 to get 1-st # sta 22 sta the load instruction dat 000 load next # [22] out lda 22 load load instruction add 96 modify address sta 22 store it lda 91 load counter add 96 add 1 sta 91 store counter sub 94 subtract N skz done? jmp 22 no, so repeat loop hlt *90 dat 000 I [90] dat 000 J [91] dat 000 K [92] dat 026 <= 26 values [93] dat 000 # of values [94] dat 000 Temp [95] dat 001 constant [96] dat 100 constant [97]