Appendix J

8051 Instructions in lexical Order

Abbreviations:
direct   =  8-bit DATA address in internal memory
const8   =  8-bit constant in CODE memory
const16  =  16-bit constant in CODE memory
addr16   =  16-bit long CODE address
addr11   =  11-bit absolute CODE address
rel   =  signed 8-bit relative CODE address
bit   =  8-bit BIT address in internal memory
i  =  register numbers 0 or 1
n  =  register numbers 0 thru 7
a  =  32 * m
m  =  the 3 most significant bits of an absolute address

OpcodeMnemonicOperandsBytesFlagsCycles
11 + aACALLaddr112    
24ADDA, #const82CYACOVP1
26 + iADDA, @Ri1CYACOVP1
25ADDA, direct2CYACOVP1
28 + nADDA, Rn1CYACOVP1
34ADDCA, #const82CYACOVP1
36 + iADDCA, @Ri1CYACOVP1
35ADDCA, direct2CYACOVP1
38 + nADDCA, Rn1CYACOVP1
01 + aAJMPaddr112    2
54ANLA, #const82   P1
56 + iANLA, @Ri1   P1
55ANLA, direct2   P1
58 + nANLA, Rn1   P1
B0ANLC, /bit2CY   2
82ANLC, bit2CY   2
53ANLdirect, #const83    2
52ANLdirect, A2    1
B6 + iCJNE@Ri, #const8, rel3CY   2
B4CJNEA, #const8, rel3CY   2
B5CJNEA, direct, rel3CY   2
B8 + nCJNERn, #const8, rel3CY   2
E4CLRA1   P1
C2CLRbit2    1
C3CLRC1CY   1
F4CPLA1   P1
B2CPLbit2    1
B3CPLC1CY   1
D4DAA1CY  P1
16 + iDEC@Ri1    1
14DECA1   P1
15DECdirect2    1
18 + nDECRn1    1
84DIVAB1CY OVP4
D5DJNZdirect, rel3    2
D8 + nDJNZRn, rel2    2
06 + iINC@Ri1    1
04INCA1   P1
05INCdirect2    1
A3INCDPTR1    2
08 + nINCRn1    1
20JBbit, rel3    2
10JBCbit, rel3    2
40JCrel2    2
73JMP@A+DPTR1    2
30JNBbit, rel3    2
50JNCrel2    2
70JNZrel2    2
60JZrel2    2
12LCALLaddr163    2
02LJMPaddr163    2
76 + iMOV@Ri, #const82    1
F6 + iMOV@Ri, A1    1
A6 + iMOV@Ri, direct2    2
74MOVA, #const82   P1
E6 + iMOVA, @Ri1   P1
E5MOVA, direct2   P1
E8 + nMOVA, Rn1   P1
92MOVbit, C2    2
A2MOVC, bit2CY   1
75MOVdirect, #const83    2
86 + iMOVdirect, @Ri2    2
F5MOVdirect, A2    1
85MOVdirect, direct3    2
88 + nMOVdirect, Rn2    2
90MOVDPTR, #const163    2
78 + nMOVRn, #const82    1
F8 + nMOVRn, A1    1
A8 + nMOVRn, direct2    2
93MOVCA, @A+DPTR1   P2
83MOVCA, @A+PC1   P2
F0MOVX@DPTR, A1    2
F2 + iMOVX@Ri, A1    2
E0MOVXA, @DPTR1   P2
E2 + iMOVXA, @Ri1   P2
A4MULAB1CY OVP4
00NOP 1    1
44ORLA, #const82   P1
46 + iORLA, @Ri1   P1
45ORLA, direct2   P1
48 + nORLA, Rn1   P1
A0ORLC, /bit2CY   2
72ORLC, bit2CY   2
43ORLdirect, #const83    2
42ORLdirect, A2    1
D0POPdirect2    2
C0PUSHdirect2    2
22RET 1    2
32RETI 1    2
23RLA1    1
33RLCA1CY  P1
03RRA1    1
13RRCA1CY  P1
D2SETBbit2    1
D3SETBC1CY   1
80SJMPrel2    2
94SUBBA, #const82CYACOVP1
96 + iSUBBA, @Ri1CYACOVP1
95SUBBA, direct2CYACOVP1
98 + nSUBBA, Rn1CYACOVP1
C4SWAPA1    1
C6 + iXCHA, @Ri1   P1
C5XCHA, direct2   P1
C8 + nXCHA, Rn1   P1
D6 + iXCHDA, @Ri1   P1
64XRLA, #const82   P1
66 + iXRLA, @Ri1   P1
65XRLA, direct2   P1
68 + nXRLA, Rn1   P1
63XRLdirect, #const83    2
62XRLdirect, A2    1