3b.
2000 | 012701 | MOV #500, R1 |
2002 | 000500 | |
2004 | 012702 | MOV #600, R2 |
2006 | 000600 | |
2010 | 012703 | MOV #700, R3 |
2012 | 000700 | |
2014 | 016704 | MOV 2042, R4 |
2016 | 000022 | |
2020 | 004767 | JSR R7, 2026 |
2022 | 000002 | |
2024 | 000000 | HALT |
2026 | 014100 | MOV -(R1), R0 |
2030 | 162200 | SUB (R2)+, R0 |
2032 | 010023 | MOV R0, (R3)+ |
2034 | 005304 | DEC R4 |
2036 | 003373 | BGT 2026 |
2040 | 000207 | RTS R7 |
2042 | 000040 | .WORD 40 |