11.3. Instrukční sada procesoru P8

FIXME:

Tabulka 11.3. P8 Instruction Set

opcodemnemonicdescription
Transfer Instructions
00JMPJump to 10 bit address. Must be SLOT1.
01RETSubroutine return.
02JZJump if T is 0.
03JNCJump if carry is cleared.
04CALLCall subroutine.
05  
06  
07  
Memory Access Instructions
08  
09LDPLoad memory to T and push T to stack. Increment A.
0ALITLoad in-line literal to T and push T to stack.
0BLDLoad memory to T and push stack. Address in A.
0C  
0DSTPStore T to memory, and pop stack. Increment A.
0E  
0FSTStore T to memory and pop stack. Address in A.
ALU Instructions
10COMComplement all bits in T.
11SHLShift T left 1 bit.
12SHRShift T right 1 bit.
13ADDCAdd N to T if T0 is 1. N is preserved.
14XORPop N and Exclusive OR it to T.
15ANDPop N and AND it to T.
16  
17ADDPop N and add it to T.
Register Instructions
18POPPop return stack R and push it into T.
19LDALoad A to T and push stack.
1ADUPDuplicate T and push stack.
1B  
1CPUSHPop T and push it on return stack.
1DSTAStore T to A and pop stack.
1ENOPDo nothing.
1FDROPPop stack into T.