
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
INCW
Increment Word
Instruction Format:
INCW dst
Operation:
dst
←
dst + 1
The contents of the destination (which must be an even address) operand is incremented by one. The destina-
tion operand can be a Register Pair or a working register Pair.
Flags:
When the instruction is executed, the flags are set as follows:
Example: Register pairs
30H
and
31H
contain the value
0AF2H
. The following statement leaves the value
0AF3H
in register pair
30H
and
31H
. The
Z
,
V
, and
S
flags are set to 0.
INCW 30H
Op Code: A0 30
Example: Working register
R0
contains
30H
. Register pairs
30H
and
31H
contain the value
FAF3H
. The
following statement leaves the value
FAF4H
in register pair
30H
and
31H
. The
S
flag is set, and the
Z
and
V
flags are set to 0.
INCW @R0
Op Code: A1 E0
C:
The value set by the preceding instruction.
Z:
1 if the result is
0
; otherwise, 0.
S:
1 if bit 7 of the result is 1 (negative); otherwise, 0.
V:
1 if arithmetic overflow occurs; otherwise, 0.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
OPC (Hex)
Address Mode
dst
A0
A1
RR
IR