EasyManuals Logo

Sharp MZ-800 Technical Reference And User's Guide

Sharp MZ-800
170 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #152 background imageLoading...
Page #152 background image
---
8-Bit Arithmetic and logical
Group---
flags
opcode
~0.
:-lo.
mnemonic
operation
bytes
of
:\1
ofT
comments
c z
p V
s N H
76
543
210
cycles cycles
ADD
A,r
A<-A+r
t
t
V
t
0
t
10
[QQQ]
r
1 1
4 r
reg-ister
ADD
A,n
A<-A
+n
t
t
V
t
0
t
11
1000!
110
2 2
7
000
B
<--
n
-->
001
c
ADD
A,(HL)
A<-A+(HL)
t t
V
t
0
t
10
[OOo!
llO
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
[QQQ]
110
100
H
<--
d
-->
101
L
ADD
A,(IY
+d)
A<-A+(IY+d)
t
t
V
t
0
111
A
t
11
111 101
3 5
19
10
~
110
<--
d
-->
ADC
A,s
A<-A+s+CY
t
t
V
t
0
t
[QQ!]
The s operand
is
any of
r.
SUB
s
A<-A-s
t
t
V
t
1
t
lliQl
n, (HL), (IX
+d)
or
(IY
·
SBC
A,s
A<-A-s-CY
t t
V
t
t
[ffi]
d)
as defined for the
AD
ll
1
instruction.
AND
s
A<-A
/\s
0
t
p
t
0 1
[QQ]
Replace the opcode
iooo
in
OR
s
A
<-A
Vs
0
t
p
t
0
0
[ill
ADD with the framed
XOR
s
A<-A(:Bs
0
t
p
t
0 0 [lli]
bits.
CP
s
A-s
t
t
V
t
1
t
[ill]
INC
r
r<-r+1
t
V
t
0
t
00
r[QQ]
1
1
4
INC
(HL)
(HL)<-(HL)
+ 1
t
V
t
0
t
00
110
[QQ]
1
3
11
INC
(IX
+d)
(IX +d)..._
t
V
t
0
t
11
011
101
3 6
23
(IX
+d)+l
00
110
[QQ]
<--
d
-->
INC
(IY
+d)
(IY
+d)..._
t
V
t
0
t
11
111
101
3
6
23
(IY+d)+l
00
110
!!QQ]
<--
d
-->
DEC
m
m<--m-1
t
V
t
1
t
ltOil
The m operand
is
any of
r, (HL), (IX
-r
d)
or
(IY
·
d)
as defined for the
1\"
('
instruction.
The opcode is the same as
the
INC's except
[!QQJ
changes
to
[IQ!].
146

Table of Contents

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals