You are here : assembly8051RLC

RLC - 8051

The RLC instruction rotates the eight bits in the accumulator and the one bit in the carry flag left one bit position.

Bit 7 of the accumulator is rotated into the carry flag while the original value of the carry flag is rotated into bit 0 of the accumulator.

Bit 0 of the accumulator is rotated into bit 1, bit 1 into bit 2, and so on.

No other flags are affected by this operation.


Syntax

RLC A


Example

RLC A	;1 byte 1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference