Project CPU ASM Simulator
Input ASM Code Output Execution Output Memory after Execution
0: CP2W 2 // copy mem[2] to W
1: BZ 3 // jump to mem[3] if W is zero
2: 0 // zero
3: 5
4: 12  // indirection register
5: ADD 20 // add mem[20] to W
6: BZ 3 // jump to mem[3] if W is zero
7: BZ 3 // jump to mem[3] if W is zero
8: ADD 21 // add mem[21] to W
9: ADD 20 // add mem[20] to W
10: CPfW 4 // copy W to mem[4]
11: ADD 0 // add mem[mem[4]] to W
12: CPfW 0 // copy W to mem[mem[4]] 
13: CP2W 0 // copy mem[mem[4]] to W
14: CP2W 2 // copy mem[2] to W
15: BZ 19 // jump to mem[19] if W is zero
18: 5
19: 15
20: 6
21: 6
Simulation
* Currently captcha disabled!
Readme