2000 | 005000 | CLR R0 |
2002 | 005001 | CLR R1 |
2004 | 066701 | ADD 2030, R1 |
2006 | 000020 | |
2010 | 005200 | INC R0 |
2012 | 020067 | CMP R0, 2026 |
2014 | 000010 | |
2016 | 002772 | BLT 2004 |
2020 | 010167 | MOV R1, 2032 |
2022 | 000006 | |
2024 | 000000 | HALT |
2026 | 000005 | .WORD 5 |
2030 | 000006 | .WORD 6 |
2032 | 000007 | .WORD 7 |
4b. It multiplies [2026] by [2030] by repeated addition, storing the result in location 2032, then halts. Final [R0]=5, [R1]=36, [R7]=2026, [2026]=5, [2030]=6, [2032]=36 (all in octal).
If you got 30 instead of 36, you probably did it in base 10. 3010 = 368.