The RLC instruction
The RLC (Rotate Left through Carry) instruction performs a rotate-left operation on the contents of the accumulator.
The RLC instruction format
| Instruction | Description |
|---|---|
| RLC | This format is used to rotate the 8-bit value in register A to the left. |
Usage example
; Author: Evgeny Sergeevich Dovgopolov main: mvi a, 81h ; Load the hexadecimal value 81h into register A rlc ; Rotate the value in register A one bit to the left, ignoring the CY flag hlt ; Stop program execution
Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".
Processor status flags
S
YesZ
YesAC
NoP
YesCY
Yes