Legacy-Free Keyboard/Embedded Controller with SPI and LPC Docking Interface
Table A.2 8051 Instruction Set (continued)
BYTE
INSTRUCTION
CYCLES
HEX
INSTRUCTION
DESCRIPTION
COUNT
CODE
MOVX A, @DPTR
MOVX @Ri, A
MOVX @DPTR, A
PUSH direct
Move external data (A16) to A
Move A to external data (A8)
Move A to external data (A16)
Push direct byte onto stack
Pop direct byte from stack
Exchange A and register
1
2-9
E0
F2-F3
F0
2
2
C0
POP direct
D0
XCH A, Rn
1
2
1
1
2
1
C8-CF
C5
XCH A, direct
XCH A, @Ri
Exchange A and direct byte
Exchange A and data memory
C6-C7
D6-D7
XCHD A, @Ri
Exchange A and data memory
nibble
BOOLEAN
CLR C
Clear carry
1
2
1
2
1
2
1
2
1
2
1
2
C3
C2
D3
D2
B3
B2
82
B0
72
A0
A2
92
CLR bit
Clear direct bit
SETB C
Set Carry
SETB bit
CPL C
Set direct bit
Complement carry
Complement direct bit
AND direct bit to carry
AND direct bit inverse to carry
OR direct bit to carry
OR direct bit inverse to carry
Move direct bit to carry
Move carry to direct bit
CPL bit
ANL C, bit
ANL C, /bit
ORL C, bit
ORL C, /bit
MOV C, bit
MOV bit, C
BRANCHING
ACALL addr 11
LCALL addr 16
RET
Absolute call to subroutine
Long call to subroutine
Return from subroutine
Return from interrupt
2
3
1
3
4
11-F1
12
22
RETI
32
AJMP addr 11
LJMP addr 16
SJMP rel
Absolute jump unconditional
Long jump unconditional
Short jump (relative address)
Jump on carry = 1
2
3
2
3
4
3
01-E1
02
80
JC rel
40
Revision 1.1 (01-14-03)
312
SMSC LPC47N350
DATASHEET