32
All
and more about Sharp
PC
-
1500
at http:/lwww.PC-1500.info
@CP
I (ComPare
Imm
ediate)
The
contents
of
the
accumulator
or
rceg
ister
are
compared
with
the
immediate
data
.
and
its result is represented by nags C, V , H,
and
Z.
•Forma
t
CPI RLJ
CPI
RHJ
CP
I
AJ
Compar
i
son
[O
perand] > i
I Op
erand
] = ;
[Operand
]< i
c
1
1
0
z
0
1
0
* : Refer to "
CPA
i
nst
r
uct
ion".
@
BIT
(test
BIT)
•Operation
iO
perand] - i - change in C, V, H. Z
v H
* *
*
*
*
*
The
acc
umulator
is AN Dcd with
th
e external memory, and its result
is
represe
nt
ed by
the
na
g
z.
•
Fo
rm
at •Operation
BIT (Rreg)
BIT #(Rreg)
BIT
(ab)
BIT #(a
b)
A
/\
[
operand
] - Z
nag
c
hang
e
(EX) BIT (Xreg)
Xreg
=
4FOOH
A= r1 o o o o o o oj
L Execute
C
on
tents = I
0 0 0 0
of
4FOOH
.
@
Bil
(test
Bit
Immediate)
Z= l
The
contents of
th
e accumulator
or
the external
memo
ry
are
ANDed
winh
th
e
immediate
data,
and
its
result
is
re
presented
by
~tate
of
the
n
ag
Z.
•F
ormat
Bii A.i
Bii
(R
reg)
.i
Bii #(
Rr
eg).i
Bii
(ab)J
Bii ll(ab
)J
•Operation
(O
peran
d]
/\
i - Z
nag
cha
ng
e
Do
not sell this PDF !! !