Computer Architecture

Trace the execution of the following machine code, when it is loaded starting at RAM address 4240. (See the Fetch-Decode-Execute notes for information about the instruction set.


 0 SET      ACC  3
 1 STORE    ACC 18
 2 SET      ACC  5
 3 STORE    ACC 19
 4 SET      ACC  0
 5 STORE    ACC 20
 6 LOAD     ACC 20
 7 LOAD     R0  19
 8 ADD      R0
 9 STORE    ACC 20
10 LOAD     ACC 18
11 SET      R0   1
12 SUBTRACT R0
13 STORE    ACC 18
14 LOAD     ACC 18
15 JUMPZERO     17
16 JUMP          6
17 END
18
19
20