Sharp MZ-80B Owner's Manual page 103

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

Advertisement

94
Symbolic
Flags
OP- Code
No.
No.
No.
Mnemonic
of
of
M
ofT
Co mments
Operation
c
z
P/
V
s
N
H
76
543
210
Bytes
Cycl
es
States
ADD A,r
A~A+r
t
t
v
t
0
t
10
[QQQ]
r
1
1
4
r
Reg.
ADD
A,n
A~A+n
t t v
t
0
t
11
[@Q]
110
2
2
7
000
B
~
n
~
001
c
ADD
A,(HL)
A~A
+
(HL)
t t v
t
0
t
10
IQQQJ
110
1
2
7
010
D
ADD A,
(IX
+
d)
A
~A
+
(IX
+
d)
t
t v t
0
t
11 011 101
3
5
19
011
E
10
IOOol
no
100
H
~
d
~
101
L
t t
t
t
Ill
A
ADD
A,
(I
Y
+
d)
A
~A+
(IY
+
d)
v
0
11
Ill
101
3
5
19
10
IQQQJ
110
~
d
~
ADC A,s
A~A+s+CY
t
t
v
t
0
t
[QQ!]
sis any
of r,
n,
(HL),
(IX
+
SUB s
A~A-s
t t
v
t
1
t
[[!QJ
d)
,
( IY
+
d)
as
shown
for
SBC A,s
A~A-s
-
CY
t
t
v t
1
t
lli]
ADD
instruction
AND s
A~A
As
0
t
p
t
0
1
I!Qill
The indi cat ed
bits
repl
ace
OR s
A~Avs
0
t
p
t
0
0
~
the
IQQQJ
in
the
A
DD
set
above.
XOR s
A~Avs
0
t
p
t
0
0
[@)
CP s
A-
s
t t v
t
1
t
[IT)
INC r
r
~
r+1
t v t
0
t
00
r
[
!QQJ
1
1
4
INC (HL)
(HL)<-(HL)
+
1
t v t
0
t
00 110
I!Qill
1
3
11
INC
(IX
+
d)
(IX
+
d)
~
t v
t
0
t
11 011 101
3
6
23
(IX
+
d)
+
1
00
110
I!Qill
~
d
~
INC (IY
+
d)
(IY
+
d)
~
t
v
t
0
t
11 Ill 101
3
6
23
(IY
+
d)
+
1
00 110
[!QQ]
~
d
~
DEC
m
m-t--m-
1
t
v
t
1
t
[ill]
m
is
any
of r, ( HL), (IX
+
d),
(IY
+
d)
as show
n for
INC.
Same
forma
t
an
d
stat
es
as
INC.
Repl
ace
ITQQJ
wit
h
ITQ!J
in
OP-code.
Notes: The V
symbol
in the P/V flag column
indicates
that
the
P/V
flag contains
the overflow of the result of
the
operation
Similarly the
P
symbol indicates parity. V
=
I
means overflow,
V
=
0 means not
overflow,
P
=
I
means parity
of the
result is
even,
P
=
0 means panty
of
the
result is odd.
Flag
Notation:
• =
flag not
affected,
0 = flag
reset,
I = flag
set, X
=
flag is
unknown,
t
=
flag is
affected according to the
result
of the operation.
8-BIT ARITHMETIC AND LOGICAL GROUP
TABLE 4.3-4

Advertisement

Table of Contents
loading

Table of Contents