540
CHAPTER 28 INSTRUCTION OPERATION
User’s Manual U12697EJ3V0UM
(11) Increment and decrement instructions: INC, DEC, INCW, DECW, INCG, DECG
Mnemonic
Operand
Bytes
Operation
Flag
S
Z
AC P/V CY
INC
r
1/2
r
←
r + 1
×
×
×
V
saddr
2/3
(saddr)
←
(saddr) + 1
×
×
×
V
DEC
r
1/2
r
←
r – 1
×
×
×
V
saddr
2/3
(saddr)
←
(saddr) – 1
×
×
×
V
INCW
rp
2/1
rp
←
rp + 1
saddrp
3/4
(saddrp)
←
(saddrp) + 1
DECW
rp
2/1
rp
←
rp – 1
saddrp
3/4
(saddrp)
←
(saddrp) – 1
INCG
rg
2
rg
←
rg + 1
DECG
rg
2
rg
←
rg –1
(12) Decimal adjust instructions: ADJBA, ADJBS, CVTBW
Mnemonic
Operand
Bytes
Operation
Flag
S
Z
AC P/V CY
ADJBA
2
Decimal Adjust Accumulator after Addition
×
×
×
P
×
ADJBS
2
Decimal Adjust Accumulator after Subtract
×
×
×
P
×
CVTBW
1
X
←
A, A
←
00H if A
7
= 0
X
←
A, A
←
FFH if A
7
= 1