5-89
Z380
™
U
SER
'
S
M
ANUAL
Z
ILOG
DC-8297-03
LD
LOAD STACK POINTER
LD dst,src
dst = SP
src = R, RX, IM, DA
or
dst = DA
src = SP
Operation:
if (LW) then begin
dst(31-0)
←
src(31-0)
end
else begin
dst(15-0)
←
src(15-0)
end
The contents of the source are loaded into the destination.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Load into Stack Pointer
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
R:
LD SP,HL
11111001
2
L
RX:
LD SP,RX
11y11101 11111001
2
L
IM:
LD SP,nn
00110001 -n(low)- -n(high)
2
I, L
DA:
LD SP,(nn)
11101101 01111011 -n(low)- -n(high)
3+r
I, L
Field Encodings:
y:
0 for IX, 1 for IY
Load from Stack Pointer
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
DA:
LD (nn),SP
11101101 01110011 -n(low)- -n(high)
4+w
I, L