178
Rabbit 2000 Microprocessor User’s Manual
18.1 Load Immediate Data
Instruction
clk
A
I S Z V C
Operation
LD IX,mn
8
- - - -
IX = mn
LD IY,mn
8
- - - -
IY = mn
LD dd,mn
6
r
- - - -
dd = mn
LD r,n
4
r
- - - -
r = n
18.2 Load & Store to Immediate Address
Instruction
clk
A
I S Z V C
Operation
LD (mn),A
10
d - - - -
(mn) = A
LD A,(mn)
9
r
s - - - -
A = (mn)
LD (mn),HL
13
d - - - -
(mn) = L; (mn+1) = H
LD (mn),IX
15
d - - - -
(mn) = IXL; (mn+1) = IXH
LD (mn),IY
15
d - - - -
(mn) = IYL; (mn+1) = IYH
LD (mn),ss
15
d - - - -
(mn) = ssl; (mn+1) = ssh
LD HL,(mn)
11
r
s - - - -
L = (mn); H = (mn+1)
LD IX,(mn)
13
s - - - -
IXL = (mn); IXH = (mn+1)
LD IY,(mn)
13
s - - - -
IYL = (mn); IYH = (mn+1)
LD dd,(mn)
13
r
s - - - -
ddl = (mn); ddh = (mn+1)
18.3 8-bit Indexed Load and Store
Instruction
clk
A
I S Z V C
Operation
LD A,(BC)
6
r
s - - - -
A = (BC)
LD A,(DE)
6
r
s - - - -
A = (DE)
LD (BC),A
7
d - - - -
(BC) = A
LD (DE),A
7
d - - - -
(DE) = A
LD (HL),n
7
d - - - -
(HL) = n
LD (HL),r
6
d - - - -
(HL) = r = B, C, D, E, H, L, A
LD r,(HL)
5
r
s - - - -
r = (HL)
LD (IX+d),n
11
d - - - -
(IX+d) = n
LD (IX+d),r
10
d - - - -
(IX+d) = r
LD r,(IX+d)
9
r
s - - - -
r = (IX+d)
LD (IY+d),n
11
d - - - -
(IY+d) = n
LD (IY+d),r
10
d - - - -
(Iy+d) = r
LD r,(IY+d)
9
r
s - - - -
r = (IY+d)
18.4 16-bit Indexed Loads and Stores
Instruction
clk
A
I S Z V C
Operation
LD (HL+d),HL
13
d - - - -
(HL+d) = L; (HL+d+1) = H
LD HL,(HL+d)
11
r
s - - - -
L = (HL+d); H = (HL+d+1)
LD (SP+n),HL
11
- - - -
(SP+n) = L; (SP+n+1) = H
LD (SP+n),IX
13
- - - -
(SP+n) = IXL; (SP+n+1) = IXH
LD (SP+n),IY
13
- - - -
(SP+n) = IYL; (SP+n+1) = IYH
LD HL,(SP+n)
9
r
- - - -
L = (SP+n); H = (SP+n+1)
LD IX,(SP+n)
11
- - - -
IXL = (SP+n); IXH = (SP+n+1)
LD IY,(SP+n)
11
- - - -
IYL = (SP+n); IYH = (SP+n+1)
LD (IX+d),HL
11
d - - - -
(IX+d) = L; (IX+d+1) = H
LD HL,(IX+d)
9
r
s - - - -
L = (IX+d); H = (IX+d+1)
LD (IY+d),HL
13
d - - - -
(IY+d) = L; (IY+d+1) = H
LD HL,(IY+d)
11
r
s - - - -
L = (IY+d); H = (IY+d+1)