40
CHAPTER 4 INSTRUCTION SET
User's Manual U12326EJ4V0UM
16-Bit Data MOVW rp,#word 0001 0P1P00 Low byte High byte
Transfer saddrp,#word 1110 1110 Saddr-offset Low byte High byte
sfrp,#word 1111 1110 Sfr-offset Low byte High byte
AX,saddrp 1000 1001 Saddr-offset
saddrp,AX 1001 1001 Saddr-offset
AX,sfrp 1010 1001 Sfr-offset
sfrp,AX 1011 1001 Sfr-offset
AX,rp Note 1 1100 0P1P00
rp,AX Note 1 1101 0P1P00
AX,!addr16 0000 0010 Low addr High addr
!addr16,AX 0000 0011 Low addr High addr
XCHW AX,rp Note 1 1110 0P1P00
8-Bit ADD A,#byte 0000 1101 Data
Operation saddr,#byte 1000 1000 Saddr-offset Data
A,r Note 2 0110 0001 0000 1
R2R1R0
r,A 0110 0001 0000 0
R2R1R0
A,saddr 0000 1110 Saddr-offset
A,!addr16 0000 1000 Low addr High addr
A,[HL] 0000 1111
A,[HL+byte] 0000 1001 Data
A,[HL+B] 0011 0001 0000 1011
A,[HL+C] 0011 0001 0000 1010
ADDC A,#byte 0010 1101 Data
saddr,#byte 1010 1000 Saddr-offset Data
A,r Note 2 0110 0001 0010 1
R2R1R0
r,A 0110 0001 0010 0
R2R1R0
A,saddr 0010 1110 Saddr-offset
A,!addr16 0010 1000 Low addr High addr
A,[HL] 0010 1111
A,[HL+byte] 0010 1001 Data
A,[HL+B] 0011 0001 0010 1011
A,[HL+C] 0011 0001 0010 1010
Instruction
Mnemonic
Operands Operation Code
Group B1 B2 B3 B4
Notes 1. Only when rp = BC, DE or HL.2. Except r = A.