All and more about Sharp PC-1500
at
http://www.PC-1500.info
© ADR
(ADd
Rreg)
C
ontent
s
of
the
accumu
lator
arc
ad
ded
to the R register.
C. H. Z.
and
V may chan
ge
.
• 1
;·
orn1ar
ADR Rreg
•Op
eration
I) RI. + A - RL
(
C.
H. Z. a nd V may
chan
ge
.)
2)
RH + C - · RH
(E
X)
ADR Xreg
Cont
ents of t
he
accumul
ato
r are
a<1ded
to X regis
te
r.
A = I 1
0 0 0 0 l
iJ
XL
= jo 0 0
I
0
I
t I
XL
= I 1 0
0 0 I 0
~
Exe
c
u
te
0 0 - Xft=
0 0 0 0
t
0
I
l I
XH= 10
0 0 0
I 0
ol
Ca l
1
H=O , Z=O . V= t
© SBC (SuBtract with Carry)
Th
e
con
tents of' the accurnulator
are
su
btrJ.cted
by
the
int
er
nal
r
eg
ister
or
e.xternul
rn
cn
lo
ry including
C.
and
it
s r
es
ult
is
stor
ed
in
the accumulato
r.
This
op
eration m
ai
• also be
expre
ssed in the following mann
er
.
Con1plcrnent
of
t
he
int
er
nal
J'
c
gi
stcr or external
n1
cn1
ory
is
obt;:tincd
fir..s
t.
additi
<>n
is
carr
ie
d out including
carr
y, th
en
its result is stored
in
the a
cc1in1u
lator.
C.
H,
Z.
and
V
ma
)'
change.
•
Fo
rn1at
SBC RI.
SB
C RH
SBC (Rrcg)
SBC #
(R
reg)
SBC
(ab)
SBC
il
(ab)
(E
X)
SBC
XL
•Operation
A -
(o
perand] - C - A
(C
.
H.
Z.
an
d V may change.)
or.
A + (
01i<:rand
) + C - A
(C. H.
Z.
and V may c
han
ge.)
Contents of XL register are subtracted from the ace
umu
l
ato
r.
A=
lo
o
0 0
ol
XL
= I 0 0
l
0 0 0 0
l I
c=O
.!}
A=
Io
0 0 0
O I
Ex
ecute
A= I 0
0
0 l 0 l l
l
l
XL= I 1
0 l
I I
o I
C= I • H= I • Z = O , V= 0
C= I
27
Do
not sale this PDF!!!