Keil Logo

RLC

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.

See Also: RL, RR, RRC

RLC A
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
00110011
Operation
RLC
An+1 = AN WHERE N = 0 TO 6
A0 = C
C = A7
Example
RLC A
  Arm logo
Important information

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

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.