Keil Logo Arm Logo

8051 Instruction Set Manual

RRC

The RRC instruction rotates the eight bits in the accumulator and the one bit in the carry flag right one bit position. Bit 0 of the accumulator is rotated into the carry flag while the original value of the carry flag is rotated in to bit 7 of the accumulator. Bit 7 of the accumulator is rotated into bit 6, bit 6 into bit 5, and so on. No other flags are affected by this instruction.

See Also: RL, RLC, RR

RRC A
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
00010011
Operation
RRC
An = An+1 where n = 0 to 6
A7 = C
C = A0
Example
RRC A

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.