Instruction Reference Manual
113
IPSET 3
11101101
01011110
4 (2,2)
-
-
-
-
IP = {IP[5:0], 11}
NP
11101101
01011101
4 (2,2)
-
-
-
-
IP = {IP[1:0], IP[7:2]}
NP
JP (HL)
11101001
4 (2,2)
-
-
-
-
PC = HL
JP (IX)
11011101
11101001
6 (2,2,2)
-
-
-
-
PC = IX
JP (IY)
11111101
11101001
6 (2,2,2)
-
-
-
-
PC = IY
JP f,mn
11-f-010
----n---
----m---
7 (2,2,2,1)
-
-
-
-
if {f} PC = mn
JP mn
11000011
----n---
----m---
7 (2,2,2,1)
-
-
-
-
PC = mn
JR cc,e
001cc000
--(e-2)-
5 (2,2,1)
-
-
-
-
if {cc} PC = PC + e
JR e
00011000
--(e-2)-
5 (2,2,1)
-
-
-
-
PC = PC + e
LCALL x,mn
11001111
----n---
----m---
---x----
19 (2,2,2,2,1,3,3,3,1)
-
-
-
-
(SP-1) = PCL; (SP-2) = PCH; (SP-3) =
XPC; XPC = x; PC = mn; SP = SP-3
N
LD (BC),A
00000010
7 (2,2,3)
d
-
-
-
-
(BC) = A
LD (DE),A
00010010
7 (2,2,3)
d
-
-
-
-
(DE) = A
LD (HL),n
00110110
----n---
7 (2,2,3)
d
-
-
-
-
(HL) = n
LD (HL),r
01110-r-
6 (2,1,3)
d
-
-
-
-
(HL) = r
LD (HL+d),HL
11011101
11110100
----d---
13 (2,2,2,1,3,3)
d
-
-
-
-
(HL+d) = L; (HL+d+1) = H
N
LD (IX+d),HL
11110100
----d---
11 (2,2,1,3,3)
d
-
-
-
-
(IX+d) = L; (IX+d+1) = H
N
LD (IX+d),n
11011101
00110110
----d---
----n---
11 (2,2,2,2,3)
d
-
-
-
-
(IX+d) = n
LD (IX+d),r
11011101
01110-r-
----d---
10 (2,2,2,1,3)
d
-
-
-
-
(IX+d) = r
LD (IY+d),HL
11111101
11110100
----d---
13 (2,2,2,1,3,3)
d
-
-
-
-
(IY+d) = L; (IY+d+1) = H
N
LD (IY+d),n
11111101
00110110
----d---
----n---
11 (2,2,2,2,3)
d
-
-
-
-
(IY+d) = n
LD (IY+d),r
11111101
01110-r-
----d---
10 (2,2,2,1,3)
d
-
-
-
-
(Iy+d) = r
LD (mn),A
00110010
----n---
----m---
10 (2,2,2,1,3)
d
-
-
-
-
(mn) = A
LD (mn),HL
00100010
----n---
----m---
13 (2,2,2,1,3,3)
d
-
-
-
-
(mn) = L; (mn+1) = H
LD (mn),IX
11011101
00100010
----n---
----m---
15 (2,2,2,2,1,3,3)
d
-
-
-
-
(mn) = IXL; (mn+1) = IXH
LD (mn),IY
11111101
00100010
----n---
----m---
15 (2,2,2,2,1,3,3)
d
-
-
-
-
(mn) = IYL; (mn+1) = IYH
LD (mn),ss
11101101
01ss0011
----n---
----m---
15 (2,2,2,2,1,3,3)
d
-
-
-
-
(mn) = ssl; (mn+1) = ssh
LD (SP+n),HL
11010100
----n---
11 (2,2,1,3,3)
-
-
-
-
(SP+n) = L; (SP+n+1) = H
N
LD (SP+n),IX
11011101
11010100
----n---
13 (2,2,2,1,3,3)
-
-
-
-
(SP+n) = IXL; (SP+n+1) = IXH
N
LD (SP+n),IY
11111101
11010100
----n---
13 (2,2,2,1,3,3)
-
-
-
-
(SP+n) = IYL; (SP+n+1) = IYH
N
LD A,(BC)
00001010
6 (2,2,2)
r
s
-
-
-
-
A = (BC)
LD A,(DE)
00011010
6 (2,2,2)
r
s
-
-
-
-
A = (DE)
LD A,(mn)
00111010
----n---
----m---
9 (2,2,2,1,2)
r
s
-
-
-
-
A = (mn)
LD A,EIR
11101101
01010111
4 (2,2)
fr
*
*
-
-
A = EIR
LD A,IIR
11101101
01011111
4 (2,2)
fr
*
*
-
-
A = IIR
LD A,XPC
11101101
01110111
4 (2,2)
r
-
-
-
-
A = XPC
N
LD dd,(mn)
11101101
01dd1011
----n---
----m---
13 (2,2,2,2,1,2,2)
r
s
-
-
-
-
ddl = (mn); ddh = (mn+1)
LD dd',BC
11101101
01dd1001
4 (2,2)
-
-
-
-
dd' = BC (dd': 00-BC', 01-DE', 10-HL')
N
LD dd',DE
11101101
01dd0001
4 (2,2)
-
-
-
-
dd' = DE (dd': 00-BC', 01-DE', 10-HL')
N
LD dd,mn
00dd0001
----n---
----m---
6 (2,2,2)
r
-
-
-
-
dd = mn
LD EIR,A
11101101
01000111
4 (2,2)
-
-
-
-
EIR = A
LD IIR,A
11101101
01001111
4 (2,2)
-
-
-
-
IIR = A
LD HL,(mn)
00101010
----n---
----m---
11 (2,2,2,1,2,2)
r
s
-
-
-
-
L = (mn); H = (mn+1)
LD HL,(HL+d)
11011101
11100100
----d---
11 (2,2,2,1,2,2)
r
s
-
-
-
-
L = (HL+d); H = (HL+d+1)
N
LD HL,(IX+d)
11100100
----d---
9 (2,2,1,2,2)
r
s
-
-
-
-
L = (IX+d); H = (IX+d+1)
N
LD HL,(IY+d)
11111101
11100100
----d---
11 (2,2,2,1,2,2)
r
s
-
-
-
-
L = (IY+d); H = (IY+d+1)
N
LD HL,(SP+n)
11000100
----n---
9 (2,2,1,2,2)
r
-
-
-
-
L = (SP+n); H = (SP+n+1)
N
Instruction
Opcode
byte 1
Opcode
byte 2
Opcode
byte 3
Opcode
byte 4
Clock cycles
A
I
S Z LV C
Operation
N/M/P
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...