
HPC Instruction Set Description
(Continued)
Mnemonic
Description
Action
TRANSFER OF CONTROL INSTRUCTIONS
JSRP
Jump Subroutine from Table
PC
x
W(SP), SP
a
2
x
SP
W(Table
Y
)
PC
PC
W(SP), SP
a
2
x
SP,PC
a
Y
x
PC
(
Y
a
1025 to
b
1023)
PC
x
W(SP), SP
a
2
SP,PC
a
Y
x
PC
PC
a
Y
PC (
Y
is
a
32 to
b
31)
PC
a
Y
x
PC (
Y
is
a
257 to
b
255)
PC
a
Y
x
PC
a
A
a
1
x
PC
then Mem(PC)
a
PC
x
PC
PC
a
1
PC
SP
b
2
x
SP,W(SP)
x
PC
SP
b
2
x
SP,W(SP)
x
PC, & Skip
SP
b
2
x
SP,W(SP)
x
PC, Interrupt Re-Enabled
JSR
Jump Subroutine Relative
JSRL
JP
JMP
JMPL
JID
JIDW
NOP
RET
RETSK
RETI
Jump Subroutine Long
Jump Relative Short
Jump Relative
Jump Relative Long
Jump Indirect at PC
a
A
No Operation
Return
Return Then Skip Next
Return from Interrupt
Note:
W is 16-Bit word of memory
MA is Accumulator A or direct memory (8- or 16-bit)
Mem is 8-bit byte or 16-bit word of memory
Meml is 8- or 16-bit memory or 8- or 16-bit immediate data
Imm is 8-bit or 16-bit immediate data
Imm8 is 8-bit immediate data only
Memory Usage
Number of Bytes for Each Instruction (Number in Parenthesis is 16-Bit Field)
Using Accumulator A
To Direct Memory
Reg Indir
Direct
Indir
Index
Immed.
Direct
Immed.
(B)
(X)
*
**
*
**
LD
X
ST
1
1
1
1
1
1
2(4)
2(4)
2(4)
3
3
3
4(5)
4(5)
4(5)
2(3)
D
D
3(5)
D
D
5(6)
D
D
3(4)
D
D
5(6)
D
D
ADC
ADDS
SBC
DADC
DSBC
ADD
MULT
DIV
DIVD
1
D
1
1
1
1
1
1
1
2
D
2
2
2
2
2
2
2
3(4)
D
3(4)
3(4)
3(4)
3(4)
3(4)
3(4)
3(4)
3
D
3
3
3
3
3
3
3
4(5)
D
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
2
4(5)
4(5)
4(5)
2(3)
2(3)
2(3)
D
4(5)
D
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
5(6)
D
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
4(5)
D
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
4(5)
5(6)
D
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
IFEQ
IFGT
AND
OR
XOR
1
1
1
1
1
2
2
2
2
2
3(4)
3(4)
3(4)
3(4)
3(4)
3
3
3
3
3
4(5)
4(5)
4(5)
4(5)
4(5)
2(3)
2(3)
2(3)
2(3)
2(3)
4(5)
4(5)
4(5)
4(5)
4(5)
5(6)
5(6)
5(6)
5(6)
5(6)
4(5)
4(5)
4(5)
4(5)
4(5)
5(6)
5(6)
5(6)
5(6)
5(6)
*
8-Bit Direct Address
**
16-Bit Direct Address
Instructions that Modify Memory Directly
(B)
(X)
Direct
Indir
Index
B&X
SBIT
RBIT
IFBIT
1
1
1
2
2
2
3(4)
3(4)
3(4)
3
3
3
4(5)
4(5)
4(5)
1
1
1
DECSZ
INC
3
3
2
2
2(4)
2(4)
3
3
4(5)
4(5)
Immediate Load Instructions
Immed
LD B,
*
LD X,
*
LD K,
*
2(3)
2(3)
2(3)
LD BK,
*
,
*
3(5)
27