A SERVICE OF

logo

S04SH/S04SH-1 /S035HL-1/S035H L-1
INSTRUCTION SET
Accumulator
Mnemonic
Description
ADD
A,
R
Add
register to A
ADD
A,@R
Add data memory to A
ADD
A,
#
data
Add immediate to A
ADDCA,
R
Add
register
with
carry
ADDCA,@R
Add data memory with carry
ADDC
A,
#
data
Add immediate with carry
ANL
A,
R
And register to A
ANL
A,@R
And data memory to A
ANL
A,
#
data
And immediate to A
ORL
A,
R
Or
register
to
A
ORL
A@R
Or
data memory to A
ORL
A,
#
data
Or
immediate to A
XRL
A,
R Exclusive or register to A
XRLA,@R
Exclusive or data memory to A
XRL,
A,
#
data
Exclusive or immediate to A
INC A Increment A
DEC A Decrement A
CLR A
Clear A
CPL A Complement A
DA
A
Decimal adjust A
SWAP A
Swap nibbles of A
RL
A Rotate A left
RLC
A
Rotate A left through carry
RR
A
Rotate A right
RRCA
Rotate A right through carry
Input/Output
Mnemonic
Description
IN
A,
P
Input port
to
A
OUTL
P,
A
Output A to port
ANL
p, #
data
And immediate to port
ORL
P,
#
data
Or
immediate to port
INS
A,
BUS
Input BUS
to
A
OUTL BUS, A
Output
A
to
BUS
ANL BUS, #
data
And immediate
to
BUS
ORL
BUS, #
data
Or
immediate
to
BUS
MOVD
A,P
Input expander port to A
MOVD
p, A Output A to expander port
ANLD
P,
A And A to expander port
ORLO p, A
Or
A to expander port
Registers
Mnemonic
Description
INC R Increment register
INC@R
Increment data memory
DEC R
Decrement register
Branch
Mnemonic
Description
JMP
addr
Jump unconditional
JMPP@A
Jump indirect
DJNZ
R,
addr
Decrement register and skip
JC
addr
Jump on carry = 1
JNC
addr
Jump on carry = 0
JZ
addr
Jump on A zero
JNZ
addr
Jump
on
A not zero
JTO
addr
Jump
on
TO = I
JNTO
addr
Jump
on
TO = a
JTI
addr
Jump on
T1
= 1
JNTI
addr
Jump
on
TI = a
JFO
addr
Jump
on
FO
= 1
JFI
addr
Jump
on
FI = I
JTF
addr
Jump
on
timer flag
JNI
addr
Jump
on
INT
= 0
JBb
addr
Jump on accumulator bit
Bytes
Cycles
I I
I I
2 2
I I
I I
2 2
I I
I I
2
2
I I
I I
2 2
I I
I I
2 2
I
I
I I
I I
I
I
I I
I I
I
I
I I
I I
I I
Bytes
Cycles
I 2
I
2
2
2
2 2
I
2
I 2
2
2
2 2
I 2
I 2
I
2
I 2
Bytes
Cycles
I I
I
1
I
I
Bytes
Cycles
2
2
I 2
2
2
2 2
2
2
2 2
2 2
2 2
2
2
2
2
2 2
2 2
2
2
2 2
2 2
2 2
6-3
Subroutine
Mnemonic
CALL
addr
RETR
RETR
Flags
Mnemonic
CLR C
CPL C
CLR
FO
CPL Fa
CLR FI
CPL FI
Data Moves
Mnemonic
MOVA, R
MOVA,@R
MOV
A,
#
data
MOV
R.
A
MOV@R.A
MOV
R.
#
data
MOV
@R,
#data
MOVA, PSW
MOV
PSW, A
XCH
A,
R
XCH
A,@R
XCHDA,@R
MOVX
A,@R
MOVX@R,A
MOVPA,@A
MOVP3A, @
Timer/Counter
Mnemonic
MOVA, T
MOVT, A
STRT T
STRT
CNT
STOP
TCNT
EN
TCNTI
DIS TCNTI
Control
Mnemonic
EN
I
DIS I
SEL
RBO
SEL RBI
SEL
MBO
SEL MBI
ENT a
CLK
Mnemonic
NOP
Description
Jump to subroutine
Return
Return and restore status
Description
Clear carry
Complement carry
CLear
flag 0
Complement flag 0
Clear
flag I
Complement
flag 1
Description
Move register to A
Move data memory to A
Move immediate
to
A
Move A to register
Move A to data memory
Move immediate
to
register
Move immediate
to
data memory
Move PSW
to
A
Move A
to
PSW
Exchange A and register
Exchange A and data memory
Exchange nibble of A and
register
Move external data memory to A
Move A to external data memory
Move to A from current page
Move
to
A from
page
3
Description
Read timer/counter
Load timer/counter
Start timer
Start counter
Stop timer/counter
Enable timer/counter interrupt
Disable timer/counter interrupt
Description
Enable external interrupt
Disable external interrupt
Select register bank a
Select register bank 1
Select memory bank a
Select memory bank 1
Enable clock output on
TO
Description
No
operation
Bytes
Cycles
2 2
2
Bytes
Cycles
I I
I I
I
I
I I
I
I
I I
Bytes
Cycles
I
1
I I
2 2
I
I
I
I
2 2
2 2
I I
I I
I I
I I
I
I
2
I
2
I
2
I
2
Bytes
Cycles
I I
I I
I I
I I
I
I
I I
I
1
Byles,
Cycles
I
I
I I
I
I
I I
I I
I I
I
I
Byles
Cycles
I I
AFN-01491A-03