You are here : assembly8051RRC

RRC - 8051

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.


Syntax

RRC A


Example

RRC A	;1 byte 1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference