0 | HLT * | stop program |
---|---|---|
1 | LDA i | AC <- i, PC <- PC + 1 |
2 | LDD i | AC <- R[i], PC <- PC + 1 |
3 | LDI i | AC <- R[R[i]], PC <- PC + 1 |
4 | STD i | R[i] <- AC, PC <- PC + 1 |
5 | STI i | R[R[i]] <- AC, PC <- PC + 1 |
6 | ADA i | AC <- AC + i, PC <- PC + 1 |
7 | SBA i | AC <- AC - i, PC <- PC + 1 |
8 | ADD i | AC <- AC + R[i], PC <- PC + 1 |
9 | SBD i | AC <- AC - R[i], PC <- PC + 1 |
10 | JMP i | PC <- i |
11 | JPZ i | if AC = 0 then PC <- i else PC <- PC + 1 |
PC | 命令 | 引数 |
---|
Step | PC | 命令 | AC | Register |
---|