
HT80C51 User Manual
80C51 Family Instruction Set – 80C51 Instruction Set Summary
Handshake Solutions
© Philips Electronics N.V. 2005
Page 89 of 132
MNEMONIC
DESCRIPTION
BYTE
MACHINE
CYCLES
LOGICAL OPERATIONS (continued)
XRL
A,@Ri
Exclusive-OR indirect RAM to Accumulator
1
1
XRL
A,#data
Exclusive-OR immediate data to Accumulator
2
1
XRL
direct,A
Exclusive-OR Accumulator to direct byte
2
1
XRL
direct,#data
Exclusive-OR immediate data to direct byte
3
2
CLR
A
Clear Accumulator
1
1
CPL
A
Complement Accumulator
1
1
RL
A
Rotate Accumulator left
1
1
RLC
A
Rotate Accumulator left through the carry
1
1
RR
A
Rotate Accumulator right
1
1
RRC
A
Rotate Accumulator right through the carry
1
1
SWAP
A
Swap nibbles within the Accumulator
1
1
DATA TRANSFER
MOV
A,Rn
Move register to Accumulator
1
1
MOV
A,direct
Move direct byte to Accumulator
2
1
MOV
A,@Ri
Move indirect RAM to Accumulator
1
1
MOV
A,#data
Move immediate data to Accumulator
2
1
MOV
Rn,A
Move Accumulator to register
1
1
MOV
Rn,direct
Move direct byte to register
2
2
MOV
RN,#data
Move immediate data to register
2
1
MOV
direct,A
Move Accumulator to direct byte
2
1
MOV
direct,Rn
Move register to direct byte
2
2
MOV
direct,direct
Move direct byte to direct
3
2
MOV
direct,@Ri
Move indirect RAM to direct byte
2
2
MOV
direct,#data
Move immediate data to direct byte
3
2
MOV
@Ri,A
Move Accumulator to indirect RAM
1
1
MOV
@Ri,direct
Move direct byte to indirect RAM
2
2
MOV
@Ri,#data
Move immediate data to indirect RAM
2
1
MOV
DPTR,#data16
Load Data Pointer with a 16-bit constant
3
2
MOVC
A,@A+DPTR
Move Code byte relative to DPTR to ACC
1
2
MOVC
A,@A+PC
Move Code byte relative to PC to ACC
1
2
MOVX
A,@Ri
Move external RAM (8-bit addr) to ACC
1
2
MOVX
A,@DPTR
Move external RAM (16-bit addr) to ACC
1
2
MOVX
A,@Ri,A
Move ACC to external RAM (8-bit addr)
1
2
MOVX
@DPTR,A
Move ACC to external RAM (16-bit addr)
1
2
PUSH
direct
Push direct byte onto stack
2
2
POP
direct
Pop direct byte from stack
2
2
XCH
A,Rn
Exchange register with Accumulator
1
1
XCH
A,direct
Exchange direct byte with Accumulator
2
1
XCH
A,@Ri
Exchange indirect RAM with Accumulator
1
1
XCHD
A,@Ri
Exchange low-order digit indirect RAM with ACC
1
1