160012700MOV #30, R0
162000030
164062717ADD #100000, @R7
166100000
170062700ADD #20, R0
172000020
174000000HALT

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.


[on to problem #8]