LD (IY+d),r

Operation

(IY+d) <- r

Mnemonic

LD

Operands

(IY+d),r

b7b6b5b4b3b2b1b0
1 1 1 1 1 1 0 1$FD
0 1 1 1 0 r
d

Description

The contents of resister r are loaded to the memory address specified by the sum of the contents of Index Register IY and d, a two’s-complement displacement integer. The r symbol is specified according to the following table.

RegisterrHex
A111$77
B000$70
C001$71
D010$72
E011$73
H100$74
L101$75

Condition Bits Affected

None

Example

If the C register contains byte $48, and Index Register IY contains $2A11, then the instruction

	LD	(IY+$4),C

performs the sum $2A11+$4 and loads $48 to memory location $2A15