
The 8051 Instruction Set
Atmel 8051 Microcontrollers Hardware Manual 1-56
4316E–8051–01/07
1.14.41 RL A
1.14.42 RLC A
Function: Rotate Accumulator Left
Description: The eight bits in the Accumulator are rotated one bit to the left. Bit 7 is rotated into the bit 0 position. No flags are
affected.
Example: The Accumulator holds the value 0C5H (11000101B). The following instruction,
RL A
leaves the Accumulator holding the value 8BH (10001011B) with the carry unaffected.
Bytes: 1
Cycles: 1
Encoding: 0 0 1 0 0 0 1 1
Operation: RL
(A
n
+ 1) ← (A
n
) n = 0 - 6
(A
0
) ← (A
7
)
Function: Rotate Accumulator Left through the Carry flag
Description: The eight bits in the Accumulator and the carry flag are together rotated one bit to the left. Bit 7 moves into the
carry flag; the original state of the carry flag moves into the bit 0 position. No other flags are affected.
Example: The Accumulator holds the value 0C5H(11000101B), and the carry is zero. The following instruction,
RLC A
leaves the Accumulator holding the value 8BH (10001010B) with the carry set.
Bytes: 1
Cycles: 1
Encoding: 0 0 1 1 0 0 1 1
Operation: RLC
(A
n
+ 1) ← (A
n
) n = 0 - 6
(A
0
) ← (C)
(C) ← (A
7
)
Kommentare zu diesen Handbüchern