FIXME:
Tabulka 11.3. P8 Instruction Set
opcode | mnemonic | description |
---|---|---|
Transfer Instructions | ||
00 | JMP | Jump to 10 bit address. Must be SLOT1. |
01 | RET | Subroutine return. |
02 | JZ | Jump if T is 0. |
03 | JNC | Jump if carry is cleared. |
04 | CALL | Call subroutine. |
05 | ||
06 | ||
07 | ||
Memory Access Instructions | ||
08 | ||
09 | LDP | Load memory to T and push T to stack. Increment A. |
0A | LIT | Load in-line literal to T and push T to stack. |
0B | LD | Load memory to T and push stack. Address in A. |
0C | ||
0D | STP | Store T to memory, and pop stack. Increment A. |
0E | ||
0F | ST | Store T to memory and pop stack. Address in A. |
ALU Instructions | ||
10 | COM | Complement all bits in T. |
11 | SHL | Shift T left 1 bit. |
12 | SHR | Shift T right 1 bit. |
13 | ADDC | Add N to T if T0 is 1. N is preserved. |
14 | XOR | Pop N and Exclusive OR it to T. |
15 | AND | Pop N and AND it to T. |
16 | ||
17 | ADD | Pop N and add it to T. |
Register Instructions | ||
18 | POP | Pop return stack R and push it into T. |
19 | LDA | Load A to T and push stack. |
1A | DUP | Duplicate T and push stack. |
1B | ||
1C | PUSH | Pop T and push it on return stack. |
1D | STA | Store T to A and pop stack. |
1E | NOP | Do nothing. |
1F | DROP | Pop stack into T. |