43
CHAPTER 4 INSTRUCTION SET
User's Manual U12326EJ4V0UM
16-Bit
ADDW
AX,#word
1 1 0 0
1 0 1 0
Low byte
High byte
Operation
SUBW
AX,#word
1 1 0 1
1 0 1 0
Low byte
High byte
CMPW
AX,#word
1 1 1 0
1 0 1 0
Low byte
High byte
Multiply/
MULU
X
0 0 1 1
0 0 0 1
1 0 0 0
1 0 0 0
divide
DIVUW
C
0 0 1 1
0 0 0 1
1 0 0 0
0 0 1 0
Increment/
INC
r
0 1 0 0
0
R
2
R
1
R
0
decrement
saddr
1 0 0 0
0 0 0 1
Saddr-offset
DEC
r
0 1 0 1
0
R
2
R
1
R
0
saddr
1 0 0 1
0 0 0 1
Saddr-offset
INCW
rp
1 0 0 0
0
P
1
P
0
0
DECW
rp
1 0 0 1
0
P
1
P
0
0
Rotate
ROR
A,1
0 0 1 0
0 1 0 0
ROL
A,1
0 0 1 0
0 1 1 0
RORC
A,1
0 0 1 0
0 1 0 1
ROLC
A,1
0 0 1 0
0 1 1 1
ROR4
[HL]
0 0 1 1
0 0 0 1
1 0 0 1
0 0 0 0
ROL4
[HL]
0 0 1 1
0 0 0 1
1 0 0 0
0 0 0 0
BCD
ADJBA
0 1 1 0
0 0 0 1
1 0 0 0
0 0 0 0
Adjust
ADJBS
0 1 1 0
0 0 0 1
1 0 0 1
0 0 0 0
Bit
MOV1
CY,saddr.bit
0 1 1 1
0 0 0 1
0
B
2
B
1
B
0
0 1 0 0
Saddr-offset
Manipulation
CY,sfr.bit
0 1 1 1
0 0 0 1
0
B
2
B
1
B
0
1 1 0 0
Sfr-offset
CY,A.bit
0 1 1 0
0 0 0 1
1
B
2
B
1
B
0
1 1 0 0
CY,PSW.bit
0 1 1 1
0 0 0 1
0
B
2
B
1
B
0
0 1 0 0
0 0 0 1
1 1 1 0
CY,[HL].bit
0 1 1 1
0 0 0 1
1
B
2
B
1
B
0
0 1 0 0
saddr.bit,CY
0 1 1 1
0 0 0 1
0
B
2
B
1
B
0
0 0 0 1
Sa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