Instruction set
ST72324xx-Auto
Table 82. Instruction set overview
Mnemo
Description
Function/example
Dst
Src
I1 H I0 N Z C
ADC
Add with Carry
A=A+M+C
A
M
H
NZC
ADD
Addition
A=A+M
A
M
H
NZC
AND
Logical And
A=A.M
A
M
NZ
BCP
Bit compare A, memory tst (A . M)
A
M
NZ
BRES Bit reset
bres Byte, #3
M
BSET Bit set
bset Byte, #3
M
BTJF Jump if bit is false (0)
btjf Byte, #3, Jmp1
M
C
BTJT Jump if bit is true (1)
btjt Byte, #3, Jmp1
M
t(s) CALL Call sub-routine
c CALLR Call sub-routine relative
du CLR
Clear
reg, M
ro CP
Arithmetic Compare
tst(Reg - M)
reg
M
P CPL
One Complement
A = FFH-A
reg, M
te DEC
Decrement
dec Y
reg, M
ole HALT Halt
bs IRET
Interrupt routine return
Pop CC, A, X, PC
O INC
Increment
inc X
reg, M
- JP
Absolute Jump
jp [TBL.w]
t(s) JRA
Jump relative always
c JRT
Jump relative
du JRF
Never jump
jrf *
ro JRIH
Jump if ext. INT pin = 1 (ext. INT pin high)
P JRIL
Jump if ext. INT pin = 0 (ext. INT pin low)
te JRH
Jump if H = 1
H=1?
ole JRNH Jump if H = 0
H=0?
bsJRM
Jump if I1:0 = 11
I1:0 = 11 ?
OJRNM Jump if I1:0 <> 11
I1:0 <> 11 ?
C
01
NZC
NZ 1
NZ
1
0
I1 H I0 N Z C
NZ
JRMI
Jump if N = 1 (minus)
N=1?
JRPL Jump if N = 0 (plus)
N=0?
JREQ Jump if Z = 1 (equal)
Z=1?
JRNE Jump if Z = 0 (not equal) Z = 0 ?
JRC
Jump if C = 1
C=1?
JRNC Jump if C = 0
C=0?
JRULT Jump if C = 1
Unsigned <
JRUGE Jump if C = 0
Jmp if unsigned >=
144/193
Doc ID 13841 Rev 1