EasyManua.ls Logo

Intel 8080 - RPO, RRC

Intel 8080
224 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...
RPO
RRC
Chapter
3.
Instruction
Set
Example:
For
the
sake
of
brevity,
an
example
is
given
for
the
RET
instruction
but
not
for
each
of
its
closely
related
varia
nts.
RETURN
IF
PARITY
000
Parity
is
odd
if
the
byte
in
the
accumulator
has
an
odd
number
of
one
bits.
The
parity
flag
is
reset
to
zero
to
indicate
this
condition.
The
RPO
and
RPE
instructions
are
useful
for
testing
the
parity
of
input
data.
However,
the
IN
instruction
does
not
set
any
of
the
condition
flags.
The
flags
can
be
set
without
altering
the
data
by
adding
OOH
to
the
contents
of
the
accumulator.
The
RPO
instruction
tests
the
parity
flag.
If
the
flag
is
reset
to
zero
to
indicate
odd
parity,
the
instruction
pops
two
bytes
off
the
stack
and
places
them
in
the
program
counter.
Program
execution
resumes
at
the
new
addre<,s
in
the
program
counter.
If
the
flag
is
set
to
one,
program
execution
simply
continues
with
the
next
sequential
instruction.
Opcode
Operand
RPO
Operands
are
not
permitted
with
the
RPO
instruction.
[I
0 0 0 0
3
Cycles:
or
3
States:
5
or
11
(6
or
12
on
8085)
/\ddressing:
register
indirect
Flags:
none
Example:
For
the
sake
of
brevity,
an
example
is
given
for
the
RET
instruction
but
not
for
each
of
its
closely
related
variants.
ROTATE
ACCUMULATOR
RIGHT
RRC
sets
the
carry
flag
equal
to
the
low-order
bit
of
the
accumulator,
thus
overwriting
its
previous
setting.
RRC
then
rotates
the
contents
of
the
accumulator
one
bit
position
to
the
right
with
the
low-order
bit
transferring
to
the
high
order
position
of
the
accumulator.
Opcode
Operand
RRC
Operands
are
not
permitted
with
the
RRC
instruction.
3-53

Table of Contents

Related product manuals