(HL) <- (HL) - 1
DEC
(HL)
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | $35 |
The byte contained in the address specified by the contents of the HL register is decremented.
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 borrow from bit 4, otherwise it is reset. |
P/V | is set if (HL) was $80 before operation, otherwise it is reset. |
N | is set. |
C | is not affected. |
If the HL register pair contains $3434 and address $3434 contains $82, then upon the execution of
DEC (HL)
memory location $3434 contains $81.