LD SP, s

Set Stack Pointer from register
76543210
 
\(SP \longleftarrow HL\)
LD SP,HL
11111001F9
 
\(SP \longleftarrow IX\)
LD SP, IX
11011101DD
11111001F9
 
\(SP \longleftarrow IY\)
LD SP, IY
11111101FD
11111001F9
Flags Affected
None.
Opcode Matrix
HLIXIY
SP
LD SP, HL
F916
LD SP, IX
DDF926
LD SP, IY
FDF926
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register