28
All and more about Sharp PC-1500 at http:/lwww.
PC
-1500.
in
fo
© SBI (SuBtract Immediate)
Th
e contents
of
the accumulator
ar
e subtracted by the
im
mediate
data
including
C.
C. H.
Z.
and
V may change.
•F
o
rm
at
SBI A.i
(
EX
) SBI
A.
07H
A=
Cf
0
0 0
• Operation
1\ - i - C - A
(C.
II
.
Z.
and
V may c
hang
e
.)
or
.
A+i
+ C - A
(C. H. Z.
and
V may
diange
.)
o o
1
i =
10
o o o 0
____
1
~1
C=t
A= I O 0 1 0 0 0
ID
Execute
-->
A
=~ 0 0 1 1 1 o<i]
T= [ 1 l
____
O_ O_ O ] C= l , H 0 , z-o , V= O
C= O
0
DCS
(DeCimal Subtra
ct
)
The
content
s
of
the accumulator a rc decimal subtracted by the
ex
ternal
memor
y
including
C.
and
its result is st
ore
d in the accumulator.
C.
H.
Z.
and
V
ma
y change.
•F
orma
t
DCS
(Rreg)
DCS
/:(
R reg)
•Op
erat
ion
I)
A +
,..
( o_pc_r_a-nd
..,..
J + C A
(C. H. Z.
and
V may c
hang
e.)
2) A +
DA
- A
Wh
ere.
DA
is used for
co
mpensation
of
decimal
number
which is dcpcndcn1 on the value
of
nags C
and
H in regard to item I
).
c
0
0
H
0
1
0
DA
9AH
AOH
FAH
OOH
I
(EX) DCS (Xreg)
The contenls
of
t
he
me
mory
represented
by
the X regist
er
are decimal
subtracted from the
accumu
l
ato
r.
Xreg=
4700H
A
42H
42H
23H
23H
Content
s
of
4700
H
31H
31H
54H
54H
c
1
0
0
1
Mier executi
on
of
DCS
~
H
--'--
A
--1
1 I 1 1 lH
1 1
JOH
~
I
~
::
Do not sell this PDF ! !!
Dec
imal subtrac tion
42- 31 0
11
l
42
- 31-
1-
10
23-
54
- 0=
69
-
100
23-
54
- 1
68
-
100