8022
~1Rl[gI!..O~OOO~IRlW
INSTRUCTION
SET
Hexadecimal
Hexadecimal
Mnemonic
Description Byte.
Cycle
Opcode
Mnemonic
Description
Bytes
Cycle
Opcode
ADD A,R,
Add
,egiste,
to
A S8-6F
JTOadd,
Jump
on
TO=1
2
2
36
ADD
A,@R Add data memo,y
to
A 60-61
JNTOadd,
Jump
on
TO=O
2 2
26
ADD
A,#data
Add immediate
to
A 2
03
JT1
add,
Jump
on
Tl=
1
2
2
56
ADDC
A_R,
Add
register
with
carry
78-7F
JNT1
add,
Jump
on
Tl=O
2 2
46
ADDCA,@R Add data memory with
70-71 JTF
add,
Jump
on
time'
flag 2 2
16
carty
ADDC
A,#data
Add immediate with
2 2
13
•
carry
~
CALL
add,
Jump
to
subroutine
2 14,34,54,74
ANL A,R,
And
,egiste,
to
A 58-5F
!!
94,B4,D4,F4
Z>
RET
Return
.1
2 83
ANL A,@R
And
data memory to A 50-51
~
'"
ANL
A,#data
And
immediate to A 2 2
53
ORL A,R, Or register to A 1 48-4F
'"
CLR
C Clear carry 97
ORLA,@R
Or
data
memory
to
A 1 40-41
f!.
CPL C
Complement
carry
A7
ORl
A,#data
Or immediate to A
2 2 43
i
XRl
A,R,
Exclusive
Or
register
D8-DF
MOVA,R,
Move register to A F8-FF
E
to A
MOVA,@R
Move data memory
to
A FO-Fl
~
XRL
A,@R Exclusive Or data
DO-Dl MOV
A,#data
Move immediate to A
2 2
23
u
u
memory
to
A
MOV
R"A
Move A to register A8-AF
c
XRL
A,#data
Exclusive Or immediate 2
2 D3
MOV@R,A
Move A to data memory AO-Al
to A
MOV
R,,#data
Move immediate to
2
2 B8-BF
INC
A Increment A
17
..
register
•
DEC
A
Decrement A
07
is
MOII@R,#data Move immediate to 2 2 BO-Bl
CLR A
Clea'
A
27
:I
data memory
CPL A Complement A
1 37
~
XCHA,R,
Exchange A and 28-2F
Q
DAA
Decimal adjust A
1 57 register
SWAP
A Swap nibbles of A
47
XCH
A,@R Exchange A and data 20-21
RL
A Rotate A left
E7
memory
RLCA
Rotate A left th,ough
F7
XCHDa,@R Exchange nibble of A
30-31
carry
and register
RR
A
Rotate A
,ight
77
MOVPA,@A
Move to A
from
current
2
A3
RRCA
Rotate A ,ight th,ough
67
page
carry
,
MOVA,T
Read timer I counter
42
IN
A,
Pp
Input
po,t
to A
2
08,09,OA
~
MOVT,A
Load timer I counter
62
0
OUTL
Pp.A
Output A to po,t
2
90,39,3A
~
STRTT
Start timer
65
;;
MOVD
A,P
p
Input
expander port
OC-OF
i
STRTCNT Start counter 46
S
~
to A
~
STOP TCNT Stop timer I counter
66
~
MOVD Pp,A Output A to expander 3C-3F
;;
D. port
i
RAD
Move conversion result
2
80
=
ANlD
Pp,A
And A to expande, port
2 9C-9F
1::
•
register
to
A
ORlD
Pp,A Or A
to
expander port 2 8C-8F
>
SEl
AND
Select analog
input
85
c
0
u
zero
I!
~
SEL
AN1
Select analog
input
one
95
ZINC
R,
Increment register
18-1F
c
-ij.
INC@R
Increment data memory 10-11
•
EN
I Enable external
05
II:
interrupt
JMP add,
Jump
unconditional
2 04,24,44,64,
DIS
I Disable external
15
..
interrupt
84,A4,C4,E4
a
EN
TCNTI
Enable timer I counter
25
JMPP@A
.c
DJNZ R,add,
u
c
£
JC
add,
JNC
add,
JZ
add,
JNZ
add,
A
addr
ANO,AN1
CNT
data
I
Jump
indirect
2 B3
E
Decrement register and
2
ES-EF
i
interrupt
jump
on
R
not
zero
DIS
TCNTI
Disable timer I counter
35
Jump
on
carry= 1
2 2 F6
interrupt
Jump
on
carry=O
2 2 E6
RET
I Return
from
interrupt
2 93
Jump
on
A zero
2 C6
NOP
No
operation
Jump
on
A
not
zero
2 96
00
SYMBOLS AND ABBREVIATIONS USED
Accumulator
11-Bit Program Memory Address
Analog Input 0, Analog Input 1
Event Counter
8-Bit Number or Expression
Interrupt
P
Pp
Rr
T
TO,
T1
#
@
6-56
Mnemonic for "in-page" Operation
Port Designator (P=O,
1,2
or
4-7)
Register Designator
(r=0-7)
Timer
Test
0, Test 1
Immediate Data Prefix
Indirect
Address Prefix
AFN-ocJ187A-08