THE INSTRUCTION SET
RRC (Rotate right)
(An)
-
(An
+
1);
(A7)
-
(Ao)
(CY)
-
(Ao)
The
content
of
the
accumulator
is rotated
right
one position. The high order bit and
the
CY
flag are both set
to
the
value
shifted
out
of
the
low
order bit position. Only
the
CY flag
is
affected.
o
o o
0
Cycles:
States:
Flags:
1
1
4
CY
RAL
(Rotate
left
through carry)
(An+
1)-(A
n
);
(CY)-(A7)
(Ao)-(CY)
The content
of
the
accumulator
is rotated
left
one position through
the
CY flag. The
low
order
bit
is set equal
to
the
CY flag and
the
CY
flag is set
to
the
value
shifted
out
of
the
high order bit. Only the CY flag
is
af·
fected.
o o o
1
Cycles:
States:
Flags:
o
1
4
CY
1
1
RAR
(Rotate right through carry)
(An)
-
(An
+
1);(CY)
-
(Ao)
(A7)
-
(CY)
The content
of
the
accumulator
is rotated
right one position through
the
CY
flag. The
high order bit is set
to
the
CY
flag and the
CY
flag
is
set
to
the value
shifted
out
of
the
low
order bit. Only
the
CY
flag
is
affected.
o
o
1 1 1
1 1
Cycles: 1
States: 4
Flags:
CY
*AII
mnemonics-copyrighted-©lnteLCorporatiqn
j976.
5-12
CMA (Complement accumulator)
(A) - (A)
The
contents
of
the
accumulator
are com-
plemented (zero
bits
become 1, one
bits
become
0).
No
flags
are
affected.
o
o
1
Cycles:
States:
Flags:
o
1
1
4
none
1
CMC (Complement carry)
(CY)
-
(CY)
1 1
The CY flag is complemented.
No
other
flags
are
affected.
o
o
1 1
1 1 1
Cycles: 1
States: 4
Flags:
CY
STC (Set carry)
(CY)
- 1
The
CY
flag is set
to
1.
No
other
flags
are
affected.
o o 1 1 0 1
1
1
Cycles: 1
States: 4
Flags: CY