DEC (HL)
Decrement
Operation
(HL) ← (HL)–1
Description:
The (HL) operand is an 8-bit value stored at the memory location specified by the contents
of the multibyte register HL. This 8-bit value is decremented by 1.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic
DEC
DEC.S
DEC.L
UM007714-0908
Set if result is negative; reset otherwise.
Set if result is 0; reset otherwise.
Set is borrowed from bit 4; reset otherwise.
Set if operand was 80h before operation; reset otherwise.
Set.
Not affected.
Operand
ADL Mode
(HL)
X
(HL)
1
(HL)
0
Cycle
Opcode (hex)
4
35
5
52, 35
5
49, 35
®
eZ80
CPU
User Manual
132
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers