Siemens C500 User Manual page 96

Microcontroller family
Table of Contents

Advertisement

RRC
A
Function:
Rotate accumulator right through carry flag
Description:
The eight bits in the accumulator and the carry flag are together rotated one bit to
the right. Bit 0 moves into the carry flag; the original value of the carry flag moves
into the bit 7 position. No other flags are affected.
Example:
The accumulator holds the value 0C5 H (11000101 B ), the carry is zero. The
instruction
RRC
leaves the accumulator holding the value 62 H (01100010 B ) with the carry set.
Operation:
RRC
(An) ¬ (An + 1) n=0-6
(A7) ¬ (C)
(C) ¬ (A0)
Encoding:
0 0 0 1
Bytes:
1
Cycles:
1
Semiconductor Group
A
0 0 1 1
4-70
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents