Sharp MZ-80B Owner's Manual page 102

Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

Mnemonic
CPIR
CPO
CPDR
Symbolic
Flags
OP-Code
No.
No.
of
of M
Operation
c z
P/V
s
N
H
76
543
210
Bytes
Cycles
I
0
CD
A-(HL)
t
t
t
1
t
11 101 101
2
5
HL
~
HL
+
l
10 110 001
2
4
BC~BC
-
1
Repeat until
A
=
(HL)
or
BC
=
O
0
CD
A
-
(HL)
t
t
t
1
t
II 101 101
2
4
HL
~
HL
-
1
10 101 001
BC ~BC
-
1
0
CD
A
-
(HL)
t t t
1
t
II 101 101
2
5
HL
~
HL
-
1
10
I II 001
2
4
BC~BC-1
Repeat until
A
=
(HL) or
BC
=
O
Notes:
; .
}
.J
P
IV
flag is 0 if the result of BC-1
=
0, otherwise P
IV
=
1
0
Z
flag
is 1 if A= (HL), otherwise Z = 0.
No.
ofT
Comments
States
21
If BCctO and A
ct
(HL)
16
If
BC
=
O or A
=
(HL)
16
21
If
BC
ct
O
and
A
ct
(HL)
16
If
BC
=
O
or
A
=
(HL)
Flag Notation:
• =
flag
not
affected, 0
=
flag reset, 1
=
flag
set,
X= flag is unknown,
t
=
flag is affected according to the result of the operation.
EXCHANGE GROUP AND BLOCK TRANSFER AND SEARCH GROUP
TABLE 4.3-3
93
I

Advertisement

Table of Contents
loading

Table of Contents