LD (nn),IY

Operation

(nn+1) <- IYh, (nn) <- IYl

Mnemonic

LD

Operands

(nn),IX

b7b6b5b4b3b2b1b0
1 1 1 1 1 1 0 1$FD
0 0 1 0 0 0 1 0$22
n
n

Description

The low-order byte in Index Register IY is loaded to memory address (nn); the upper order byte is loaded to the next highest address (nn + 1). The first n operand after the op code is the low-order byte of nn.

Condition Bits Affected

None

Example

If Index Register IY contains $4174, then upon execution of

	LD	($8838),IY

memory location $8838 contains number $74 and location $8839 contains $41.