Difficulty: Easy
Correct Answer: True
Explanation:
Introduction / Context:
The 8051 family provides two left-rotate instructions for the Accumulator: RL A and RLC A. Understanding the difference is essential for bit-level operations, look-up indexing, and simple arithmetic without disturbing the carry flag.
Given Data / Assumptions:
Concept / Approach:
RL A performs a pure 8-bit rotate left within A. Bit7 moves into bit0, and all other bits shift left by one. The carry flag is not used and not updated. In contrast, RLC A rotates through the carry: bit7 goes to CY and CY enters bit0.
Step-by-Step Solution:
Verification / Alternative check:
Examine the flags after RL A; CY remains whatever it was. After RLC A, CY reflects previous b7. This confirms that RL does not use the carry path.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
True
Discussion & Comments