26
A
ll
and more about Sharp P
C-
1500 at http://www.PC-1500.info
(j)
AD
I
(ADd
Immediate)
·r,>
either the accun1ulator or the external
n1c
rnory i
:;
a
dd
ed t
he
inuncdiatc
da
ta. In the
ca
se
of
AOI
co
chc
accumulacor. ca
rr
y is in
cl
ud
ed
in
ch
c operat
ion
.
C.
H.
Z. and V
rn
ay change.
•Formal
ADI
/\.i
ADI
(
Rr
cg).i
;\1)1 #
(R
r
cg
).i
AD
I (a
b)
.i
ADI
#(a!J)
.i
(EX} ADI (Xr
eg}
. 20H
• Opcrntion
J\
'i
· i + C -
/\
(operand
i+
i - [operandi
20H is added to the me
mor
y represented
by
X register.
l
Xr
eg
=
4FO
OH
Execute
onten!S = o o l 1 0 0 ,
--"'1'
_ ,
Co
nter
Hs
. I
0
I o I o o 1
f
•F
OO
H
-----
of •
FCOH
.
C= O , H- 0 , Z- 0 , V= O
-
----
-
0)
DCA
(DeCimal
Add)
L)
..:
ci
rna
l addit
ion
i
:;
carried out
be
l\
\
'
C-~ll
the e
xti.:rna
l rnc1nory and the accu
rnul
at()r
including ca rry.
and
its
r
c~
u
lt
is s
tor
ed in
th
e a
cc
urnulat
<)r.
(
~
.
H, Z.
and
V
rna~
'
change.
• l:o
rn1at
DC/\
(Rregl
DCA
li
(Rrcg)
(EX)
DCA
(Yre
g)
• Operation
I}
/\
+
6611
-
/\
2) A + [
op
c
r<1nd
) + C - A
(C. H. Z. and
\I
may c
il
an
gc
.J
J)
/\
+
l)A
- A
'W
he
re.
DA
is u
se
d
fo
r co
mp
en
sat
io
n
of
decimal
number which is dependent on t
he
valt:c of
fla
gs
C
and 11 in regard to ltt 1n 2).
c
0
0
H
0
I
0
DA
'9
foH
AOH
f
AH
OO
H
Decimal addition is carried
ou
t between the memory represented by !he Y
regi
st
er and 1he a
ccu
mu
lat
or
.
Y reg =
4i00H
A
c
35H
351i
35H
3.3H
Co
1
~
1cn
t
s
of
4
70C
H
c
27H
0
2
711
1
67H
0
6711
AflC(
ex:cc
uti
on
oi
OCA
c
H A
0
62
H
0
6
3H
0
211
03
H
Oet
1n
la
l addition
35
+ 27+
0-
62
35+ 27+1 - 63
35
167 I O= H
Yl
351671
l = t
03
--'----
---------
----'------
Do
not sale this
PDF!!!