 | 8051 Instruction Set Manual |  |
|
|
| RLCThe 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. See Also: RL, RR, RRC | Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
RLC
An+1 = AN WHERE N = 0 TO 6
A0 = C
C = A7
| | Example |
RLC A
|
|
|