EasyManua.ls Logo

Sharp CE-150 - Page 271

Sharp CE-150
412 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
All and more about Sharp PC-1500
at
http://www.PC-1500.info
(EX) I
NC
XL
XL= I 0 0 1 I 0 I 1
~
Ex.e
cu
te
I
, J
__
,
XL
= 0 0
1 1
1 0
~
Z=O , V=O C=O. H=
I)
•
@ DEC (DECrement)
T
he
\'al
ue
of
the accumulator or register is DECremented by on
e.
In
the case
of
the 8-
bit
reg
is
ter
(A.
RL.
RH).
it
mak
es
nag.
<
C.
V.
Hand Z chan
ged.
In the case
of
the 1
6-
bit
r
eg
i:;
le
r
Rrcg
.
no
nag
change
la
kt~
S
pl
ac
e.
•
Fo
rn1at •Operation
DF.C
A
(Operand) - I - (opcrnnd )
DEC
RI.
(C. V. H. and Z changed.)
DEC
RH
DEC R1·
eg
[O
pern
nd) - I - · (ope
rand
)
{EX)
D
EC
Xreg
XL
=
0 0 0 0 0 0 0 0
XL
= I t I I I t I t 1 I
Ex.e
cute
'-----------'·
-
XH
= 0
0
0
0
0 0 1
XH
= I 0 0 0 o o o o I
2-4-3. Compare and bit test
@ CPA (ComPare Ace)
l'he
co
ntents of the accuntulator arc cornparcd \Vith rtgist
er
or cx!crnal
n1en
1ory. and
itl'>
result is repr
ese
nted by nags c:.
V.
11.
and Z.
• l.-orn1at
CPA
RL
CPA
RH
C
PA
(
Rr
cg)
CPA ll(Rrt:g)
c r A
(ah)
C PA
11
("1>)
(EX
) CPA
XL
A-
lo
1
XL
Io
1
0
I
0
1
0
1
0 0
•O
peration
0
0
A - (opcrnnd] - cha
nge
in C. V. H. ;
rnd
7.
or
A + (operand] + I -· chan
ge
in
C.
V.
H.
an
d
7.
Comparison
I
c
z v H
- ·-
A> [operand)
0
* *
A= I operand)
1 1
*
*
A< [operand) 0 0
*
*
* :
Flags V and H rnay change according to lhe
condition me
nt
i
on
ed in ,;Status flag", but it has
no
meaning w
it
h t
he
CPA
instruction.
O l
Exec
ute
C- 1 • Z=O
ol
31
Do
not sale this PDF!!!