Chapter
3.
Instruction
Set
RM
3-50
Example:
Assume
that
the accumulatol' contains the vdlue
OAAH
and the carry
fldg
is
zero. The following diagrams illus-
trate the effect
of
the RLC Instruction.
Before:
Carry
G
Accumulator
0
0
~~
After:
Carry
Q
Accumulator
1
0 o o o
RETURN
IF
MINUS
The
RM
instruction tests the
sign
fldg. If the
fidg
i, set to one to indicate negative data
in
the dccumulator, the
instruction pops two bytes
off
the stack and places them
in
the progrdm
counter.
Progrdm execution resume,
dt
the new dddress
in
the progl am counter.
If
the
fidg
is
set to zero, progrdm execution ,imply continues with the
next
sequential instruction.
Opcode Operand
RM
Operands are not permitted with the
RM
instruction.
Example:
1~1
___________
0_(~
Cycles:
States:
Ad
dressi
ng:
Flags:
1 or 3
5 or
11
(6
or 12 on 8085)
register indirect
none
For the sake
of
brevity,
an
example
is
given for the RET instruction
but
not for each
of
it>
closely related
variants.