Z8018x Family
MPU User Manual
226
Table 43. Block Transfer (Continued)
Flags
Addressing
Immed Ext Ind Reg RegI Imp Rel Bytes States
7
6
4
2
1
0
Operation
Name
Mnemonics Op Code
Operation
S
Z
H
P/V
N
C
CPI
11101101
10100001
S
S
2
12
Ar-(HL)
M
•
•
•
•
S
·
BC -1® BC
R
R
HL + 1® HL
(3)
(2)
R
R
CPIR
11101101
10110001
S
S
2
14
12
BC ¹ 0 Ar*(HL)
•
•
•
•
S
·
R
M
BC = 0 or Ar = (HL)
R
M
Ar-(HL)
M
Q
BC -1® BC
R R
HL + 1® HL
R
R
Repeat Q until
Ar = (HL) or BC = 0
(2)
M
R
LDD
11 101 101
10 101 000
S/D
S/D
2
2
12
(HL) ® (DE)
·
·
·
·
R
R
•
R ·
M
M
BC -1® BC
R
R
DE -1® DE
R
R
HL -1® HL
R
R
LDDR
11 101 101
10 111 000
14(BC ¹ 0)
(HL) ® (DE)
M
R
R ·
R
M
BC -1 ® BC
R
R
12(BC = 0)
R
Q
DE -1 ® DE
R R
HL -1 ® HL
R
R
Repeat Q until
BC = 0
R
(2)
LDI
11 101 101
10 100 000
S/D
S/D
2
2
12
(HL) ® DE)
·
·
·
·
R
R
•
R ·
M
R
BC -1® BC
R
R
DE + 1® DE
R
R
HL + 1® HL
R
R
LDIR
11 101 101
10 110 000
14(BC ¹ 0)
(HL) ® (DE)
M
BC -1® BC
R
R ·
R
M
Q
R R
12(BC = 0)
R
DE + 1® DE
R
R
R
HL + 1® HL
R
Repeat Q until
BC = 0
R
(2) P/V = 0: BC -1 = 0
R
P/V = 1: BC -1 ¹ 0
R
(3) Z = 1: Ar = (HL)
M
Z = 0 :Ar ¹ (HL)
M
UM005001-ZMP0400