FIXME:
Tabulka 11.4. P24 Instruction Set
opcode | mnemonic | description |
---|---|---|
Transfer Instructions | ||
00 | BRA | Unconditional jump to 22 bit address. Must be in Slot1. |
01 | RET | Return from subroutine. |
02 | BZ | Jump to 22 bit address if T=0. Must be in Slot1. |
03 | BC | Jump to 22 bit address if Carry=1. Must be in Slot1. |
04 | ||
05 | NEXT | Loop to 24 bit address. Must be in Slot1. |
06 | EI | Enable interrupts. |
07 | ||
Memory Access Instructions | ||
08 | ||
09 | LDP | Push memory A to T. Increment A. |
0A | LDI | Push in-line literal to T. |
0B | LD | Push memory A to T. |
0C | ||
0D | STP | Pop T to memory A. Increment A. |
0E | RR8 | Rotate T right by 8 bits. |
0F | ST | Pop T to memory address 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 | MUL | Multiplication step. |
14 | XOR | Pop S and Exclusive OR it to T. |
15 | AND | Pop S and AND it to T. |
16 | DIV | Division step. |
17 | ADD | Pop S and add it to T. |
Register Instructions | ||
18 | POP | Pop R to push T. |
19 | LDA | Push A to T. |
1A | DUP | Duplicate T. |
1B | OVER | Duplicate S. |
1C | PUSH | Pop T to push R. |
1D | STA | Pop T to A. |
1E | NOP | Do nothing. |
1F | DROP | Pop T. |