LD SP,IY

Operation

SP <- IY

Mnemonic

LD

Operands

SP,IY

b7b6b5b4b3b2b1b0
1 1 1 1 1 1 0 1$FD
1 1 1 1 1 0 0 1$F9

Description

The 2-byte contents of Index Register IY are loaded to the Stack Pointer (SP)

Condition Bits Affected

None

Example

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

	LD	SP,IY

the Stack Pointer also contains $A227.