160 | 012700 | MOV #30, R0 |
162 | 000030 | |
164 | 062717 | ADD #100000, @R7 |
166 | 100000 | |
170 | 062700 | ADD #20, R0 |
172 | 000020 | |
174 | 000000 | HALT |
The ADD instruction at word 164 changes the ADD instruction at word 170 to a SUB instruction. This change happens prior to its execution, so what is in fact executed is the SUB instruction. Thus the final contents of R0 will be 10 (octal), or 8. The final contents of R7 will be 176.