(IY+d) <- (IY+d) - 1
DEC
(IY+d)
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | $FD |
0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | $35 |
d |
The contents of Index Register IY (register pair IY) 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.
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 is set if (IY+d) was $80 before operation, otherwise it is reset. |
N | is set. |
C | is not affected. |
If Index Register IY are $2020 and memory location $2030 contains byte $34, then upon execution of
DEC (IY+$10)
memory location $2030 contains $33.