Philips Semiconductors
Product specification
P83C557E4/P80C557E4/P89C557E4
Single-chip 8-bit microcontroller
1999 Mar 02
49
Table 43.
80C51 Instruction Set Summary (Continued)
MNEMONIC
DESCRIPTION
BYTE / CYCLES
OPCODE
(HEX.)
LOGICAL OPERATIONS (Continued)
XRL
A,#data
Exclusive-OR immediate data to Accumulator
2
1
64
XRL
direct,A
Exclusive-OR Accumulator to direct byte
2
1
62
XRL
direct,#data
Exclusive-OR immediate data to direct byte
3
2
63
CLR
A
Clear Accumulator
1
E4
CPL
A
Complement Accumulator
1
F4
RL
A
Rotate Accumulator left
1
23
RLC
A
Rotate Accumulator left through the carry
1
33
RR
A
Rotate Accumulator right
1
03
RRC
A
Rotate Accumulator right through the carry
1
13
SWAP
A
Swap nibbles within the Accumulator
1
C4
DATA TRANSFER
MOV
A,Rn
Move register to Accumulator
1
E*
MOV
A,direct
Move direct byte to Accumulator
2
1
E5
MOV
A,@Ri
Move indirect RAM to Accumulator
1
E6, E7
MOV
A,#data
Move immediate data to Accumulator
2
1
74
MOV
Rn,A
Move Accumulator to register
1
F*
MOV
Rn,direct
Move direct byte to register
2
A*
MOV
RN,#data
Move immediate data to register
2
1
7*
MOV
direct,A
Move Accumulator to direct byte
2
1
F5
MOV
direct,Rn
Move register to direct byte
2
8*
MOV
direct,direct
Move direct byte to direct
3
2
85
MOV
direct,@Ri
Move indirect RAM to direct byte
2
86, 87
MOV
direct,#data
Move immediate data to direct byte
3
2
75
MOV
@Ri,A
Move Accumulator to indirect RAM
1
F6, F7
MOV
@Ri,direct
Move direct byte to indirect RAM
2
A6, A7
MOV
@Ri,#data
Move immediate data to indirect RAM
2
1
76, 77
MOV
DPTR,#data16
Load Data Pointer with a 16-bit constant
3
2
90
MOVC
A,@A+DPTR
Move Code byte relative to DPTR to ACC
1
2
93
MOVC
A,@A+PC
Move Code byte relative to PC to ACC
1
2
83
MOVX
A,@Ri
Move AUX-RAM (8-bit addr) to ACC
1
2
E2, E3
MOVX
A,@DPTR
Move AUX-RAM (16-bit addr) to ACC
1
2
E0
MOVX
@Ri,A
Move ACC to AUX-RAM (8-bit addr)
1
2
F2, F3
MOVX
@DPTR,A
Move ACC to AUX-RAM (16-bit addr)
1
2
F0
PUSH
direct
Push direct byte onto stack
2
C0
POP
direct
Pop direct byte from stack
2
D0
XCH
A,Rn
Exchange register with Accumulator
1
C*
XCH
A,direct
Exchange direct byte with Accumulator
2
1
C5
XCH
A,@Ri
Exchange indirect RAM with Accumulator
1
C6, C7
XCHD
A,@Ri
Exchange low-order digit indirect RAM with
ACC
1
D6, D7