INC r

Operation

r <- r + 1

Mnemonic

INC

Operands

r

b7b6b5b4b3b2b1b0
0 0 r 1 0 0

Description

Register r is incremented and register r identifies any of the registers A, B, C, D, E, H, or L, assembled as follows in the object code.

RegisterrHex
A111$3C
B000$04
C001$0C
D010$14
E011$1C
H100$24
L101$2C

Condition Bits Affected

Sis set if result is negative, otherwise it is reset.
Zis set if result is 0, otherwise it is reset.
His set if carry from bit 3, otherwise it is reset.
P/Vis set if r was $7F before operation, otherwise it is reset
Nis reset.
Cis not affected.

Example

If the D Register contains $28, then upon the execution of

	INC	D

the D Register contains $29.