Sharp MZ-80B Owner's Manual page 104

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

Advertisement

Mnemonic
DAA
CPL
NEG
CCF
SCF
NOP
HALT
DI
El
111' 1
0
IM 1
111' 1
2
Symbolic
Flags
OP-Code
Operation
c
z
P/
V
s
N
H
76
543 210
Converts ace
con-
t t
p
t
t
00 100 111
tent
int
o
packed
BCD following add
or subtract with
packed
BCD ope·
rands
A~A
• •
1
1
00
101
111
A
~A
+
1
t
t
v
t
1
t
11 101 101
01 000 100
- -
CY
~
CY
t
• • •
0
X
00 111 111
CY~
1
1
0
0
00 110 111
No operation
• • • • • •
00 000 000
PC ~PC
+
1
CPU
halt
ed
• • •
01 110 110
IFF
~
O
• • • • •
11 110 011
IFF ~1
• • • •
11 111 011
Sst interrupt
• • •
11
101
101
mode 0
01 000 110
Set
interrupt
• •
• • •
11
101
101
mode
I
01 010 110
Set
int
e
rrupt
• • • •
.
.
11 101 101
mode
2
01 011 110
Notes:
IFF indicates the interrupt enable flip-flop
CY indicates the carry flip-flop.
Ko.
~0.
1\o.
of
of
M
ofT
Comments
Bytes
Cycles States
1
1
4
Decimal adjust accumulator
1
1
4
Compl ement
accumu lator
(
one's
complement
)
N
2
2
8
Negate ace.
(
two's
compl ement
)
1
1
4
Complement
carry
flag
1
1
4
Set carry
flag
1
1
4
1
1
4
1
1
4
1
1
4
2
2
8
2
2
8
2
2
8
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.
GENERAL PURPOSE ARITHMETIC AND CPU CONTROL GROUPS
TABLE 4 .3-5
95

Advertisement

Table of Contents
loading

Table of Contents