Z
ILOG
INC
INCREMENT (BYTE)
INC dst dst = R, RX, IR, X
dst ← dst + 1
Operation:
The destination operand is incremented by one and the sum is stored in the destination.
Two's complement addition is performed.
Flags:
S:
Set if the result is negative; cleared otherwise
Z:
Set if the result is zero; cleared otherwise
H:
Set if there is a carry from bit 3 of the result; cleared otherwise
V:
Set if arithmetic overflow occurs, that is, if the destination was 7FH; cleared otherwise
N:
Cleared
C:
Unaffected
Addressing
Mode
Syntax
R:
INC R
RX:
INC RX
IR:
INC (HL)
X:
INC (XY+d)
Field Encodings: r:
per convention
y: 0 for IX, 1 for IY
w: 0 for high byte, 1 for low byte
2 for accumulator, 3 for any other register
Note:
5-70
Instruction Format
00-r-100
11y11101 0010w100
00110100
11y11101 00110100 ——d—
U
Execute
Time
Note
note
2
2+r+w
4+r+w
I
DC-8297-03
Z380
™
'
M
SER
S
ANUAL
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers