LD SP,HL

Operation

SP <- HL

Mnemonic

LD

Operands

SP,HL

b7b6b5b4b3b2b1b0
1 1 1 1 1 0 0 1$F9

Description

The contents of the register pair HL are loaded to the Stack Pointer (SP)

Condition Bits Affected

None

Example

If the register pair HL contains $442E, then upon execution of

	LD	SP,HL

the Stack Pointer also contains $442E.