HPC Instruction Set Description
Mnemonic
Description
Action
ARITHMETIC INSTRUCTIONS
ADD
ADC
ADDS
DADC
SUBC
DSUBC
MULT
DIV
DIVD
Add
Add with Carry
Add Short Imm8
Decimal Add with Carry
Subtract with Carry
Decimal Subtract w/Carry
Multiply (Unsigned)
Divide (Unsigned)
Divide Double Word (Unsigned)
MA
a
Meml
x
MA
MA
a
Meml
C
MA
A
a
Imm8
x
A
MA
a
Meml
a
C
x
MA (Decimal Carry
x
C
MA
b
Meml
a
C
x
MA
MA
b
Meml
a
C
x
MA (Decimal Carry
x
C
MA
*
Meml
x
MA & X, 0
K, 0
C
MA/Meml
x
x
x
x
C
X & MA/Meml
x
MA, Rem
x
X, 0
x
K, Carry
x
C
Carry
x
C
Carry
x
C
Carry
x
C
Carry
C
IFEQ
IFGT
If Equal
If Greater Than
Compare MA & Meml, Do Next if Equal
Compare MA & Meml, Do Next if MA
l
Meml
AND
OR
XOR
Logical AND
Logical OR
Logical Exclusive-OR
MA AND Meml
x
MA
MA OR Meml
x
MA
MA XOR Meml
x
MA
MEMORY MODIFY INSTRUCTIONS
INC
DECSZ
Increment
Decrement, Skip if 0
Mem
a
1
x
Mem
Mem
b
1
x
Mem, Skip Next if Mem
e
0
BIT INSTRUCTIONS
SBIT
RBIT
IFBIT
Set Bit
Rset Bit
If Bit
1
x
Mem. Bit (Bit is 0 to 7 Immediate)
0
x
Mem. Bit
If Mem Bit is True, Do Next Instr.
MEMORY TRANSFER INSTRUCTIONS
LD
Load
Load, Incr/Decr X
Store to Memory
Exchange
Exchange, Incr/Decr X
Push Memory to Stack
Pop Stack to Memory
Meml
x
MA
Mem(X)
x
A, X
g
1 (or 2)
x
X
A
Mem
A
Y
Mem
A
Y
Mem(X), X
g
1 (or 2)
x
X
W
x
W(SP), SP
a
2
SP
SP
b
2
SP, W(SP)
x
W
ST
X
PUSH
POP
LDS
Load A, Incr/Decr B,
Skip On Condition
Exchange Incr/Decr B,
Skip On Condition
Mem(B)
x
A, B
g
1 (or 2)
x
B,
Skip Next if B Greater/Less than K
Mem(B)
A, B
g
1 (or 2)
B,
Skip Next if B Greater/Less than K
XS
REGISTER LOAD IMMEDIATE INSTRUCTIONS
LD B
LD K
LD X
LD BK
Load B Immediate
Load K Immediate
Load X Immediate
Load B and K Immediate
Imm
x
B
Imm
x
K
Imm
x
X
Imm
x
B, Imm
x
K
ACCUMULATOR AND C INSTRUCTIONS
CLR A
INC A
DEC A
COMP A
SWAP A
RRC A
RLC A
SHR A
SHL A
SC
RC
IFC
IFNC
Clear A
Increment A
Decrement A
Complement A
Swap Nibbles of A
Rotate A Right Thru C
Rotate A Left Thru C
Shift A Right
Shift A Left
Sec C
Reset C
IF C
IF Not C
0
x
A
A
a
1
x
A
A
b
1
x
A
1’s Complement of A
x
A
A 15:12
w
A 7:4
Y
A 3:0
C
A15
x
. . .
x
A0
x
C
C
w
A15
w
. . .
w
A0
w
C
0
x
A15
x
. . .
x
A0
x
C
C
w
A15
w
. . .
w
A0
w
0
1
x
C
0
x
C
Do Next If C
e
1
Do Next if C
e
0
26