(HL) <- (HL) + 1
INC
(HL)
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | $34 |
The byte contained in the address specified by the contents of the HL register is incremented.
S | is set if result is negative, otherwise it is reset. |
Z | is set if result is 0, otherwise it is reset. |
H | is set if carry from bit 3, otherwise it is reset. |
P/V | is set if (HL) was $7F before operation, otherwise it is reset. |
N | is reset. |
C | is not affected. |
If the HL register pair contains $3434 and address $3434 contains $82, then upon the execution of
INC (HL)
memory location $3434 contains $83.