UM10310_1 © NXP B.V. 2008. All rights reserved.
User manual Rev. 01 — 1 December 2008 132 of 139
NXP Semiconductors UM10310
P89LPC9321 User manual
XRL A,Rn Exclusive-OR register to A 1 1 68 to 6F
XRL A,dir Exclusive-OR direct byte to A 2 1 65
XRL A, @Ri Exclusive-OR indirect memory to A 1 1 66 to 67
XRL A,#data Exclusive-OR immediate to A 2 1 64
XRL dir,A Exclusive-OR A to direct byte 2 1 62
XRL dir,#data Exclusive-OR immediate to direct byte 3 2 63
CLR A Clear A 1 1 E4
CPL A Complement A 1 1 F4
SWAP A Swap Nibbles of A 1 1 C4
RL A Rotate A left 1 1 23
RLC A Rotate A left through carry 1 1 33
Rotate A right RR A 1 1 03
RRC A Rotate A right through carry 1 1 13
DATA TRANSFER
MOV A,Rn Move register to A 1 1 E8 to EF
MOV A,dir Move direct byte to A 2 1 E5
Move indirect memory to A MOV A,@Ri 1 1 E6 to E7
MOV A,#data Move immediate to A 2 1 74
MOV Rn,A Move A to register 1 1 F8 to FF
MOV Rn,dir Move direct byte to register 2 2 A8 to AF
MOV Rn,#data Move immediate to register 2 1 78 to 7F
MOV dir,A Move A to direct byte 2 1 F5
MOV dir,Rn Move register to direct byte 2 2 88 to 8F
MOV dir,dir Move direct byte to direct byte 3 2 85
MOV dir,@Ri Move indirect memory to direct byte 2 2 86 to 87
MOV dir,#data Move immediate to direct byte 3 2 75
MOV @Ri,A Move A to indirect memory 1 1 F6 to F7
MOV @Ri,dir Move direct byte to indirect memory 2 2 A6 to A7
MOV @Ri,#data Move immediate to indirect memory 2 1 76 to 77
MOV DPTR,#data Move immediate to data pointer 3 2 90
MOVC A,@A+DPTR Move code byte relative DPTR to A 1 2 93
MOVC A,@A+PC Move code byte relative PC to A 1 2 94
MOVX A,@Ri Move external data(A8) to A 1 2 E2 to E3
MOVX A,@DPTR Move external data(A16) to A 1 2 E0
MOVX @Ri,A Move A to external data(A8) 1 2 F2 to F3
MOVX @DPTR,A Move A to external data(A16) 1 2 F0
PUSH dir Push direct byte onto stack 2 2 C0
POP dir Pop direct byte from stack 2 2 D0
XCH A,Rn Exchange A and register 1 1 C8 to CF
XCH A,dir Exchange A and direct byte 2 1 C5
XCH A,@Ri Exchange A and indirect memory 1 1 C6 to C7
Table 123. Instruction set summary …continued
Mnemonic Description Bytes Cycles Hex code