EasyManuals Logo

ZiLOG Z8 Technical Manual

ZiLOG Z8
166 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #48 background imageLoading...
Page #48 background image
CP
Compare
CP
dst,src
Instruction
Foraat:
OPC
OPC
OPC
Operation:
Flags:
Example:
Note:
5-14
OPC
Address
Mode
Cycles
(Hex)
dst
arc
6
A2
r r
A3
r
Ir
I
I
dst
src
dst
10
A4
R
R
AS
R
IR
I
I
src
I
I
10
A6
R
1M
A7
IR
1M
I
I
dst
I
I
src
dst
-
src
The
source
operand
is
compared
to
(subtracted
from)
the
destination
operand,
and
the
appropriate
flags
set
accordingly.
The
contents
of
both operands
are
unaffected
by
the
comparison.
C:
Cleared
if
there
is
a
carry
from
the
most
significant
bit
of
the
result;
set
otherwise,
indicating
a "borrow"
Z:
Set
if
the
result
is
zero;
cleared
otherwise
V:
Set
if
arithmetic
overflow
occurs;
cleared
otherwise
5:
Set
if
the
result
is
negative;
cleared
otherwise
H:
Unaffected
D:
Unaffected
If
the
register
named
TEST
contains
%63,
working
register
0
contains
%30
(48
decimal),
and
register
48
contains
%63,
the
statement
CP
TEST,
~RO
sets
(only)
the
Z
flag.
If
this
statement
is
followed
by
"JP
EQ,
true_routine",
the
jump
is
taken.
When
used
to
specify
a
4-bit
working-register
address,
address
modes
R
or
IR
use
the
format:
E
src/dst

Table of Contents

Other manuals for ZiLOG Z8

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ZiLOG Z8 and is the answer not in the manual?

ZiLOG Z8 Specifications

General IconGeneral
BrandZiLOG
ModelZ8
CategoryDesktop
LanguageEnglish

Related product manuals