DEC (IX+d)

Operation

(IX+d) <- (IX+d) - 1

Mnemonic

DEC

Operands

(IX+d)

b7b6b5b4b3b2b1b0
1 1 0 1 1 1 0 1$DD
0 0 1 1 0 1 0 1$35
d

Description

The contents of Index Register IX (register pair IX) are added to the two's-complement displacement integer, d, to point to an address in memory. The contents of this address are then decremented.

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 borrow from bit 4, otherwise it is reset.
P/Vis set if (IX+d) was $80 before operation, otherwise it is reset.
Nis set.
Cis not affected.

Example

If Index Register pair IX contains $2020 and memory location $2030 contains byte $34, then upon the execution of

	DEC	(IX+$10)

memory location $2030 contains $33