RLAΒΆ
- RLA
- Rotate Left Accumulator
- Description
- Performs a very fast
RL A
; the 7th bit ofA
is moved into the carry, and the carry is moved into the 0th bit ofA
. - Uses
- Quickly multiplying
A
by two - Retrieving consecutive bits of a byte in a loop, starting from the left
- Quickly multiplying
- Results
Register/Flag 8-bit A
S
flagNot affected Z
flagNot affected H
flagReset P/V
flagNot affected N
flagReset C
flag7th bit of A
- Allowed Instructions
Instruction Opcode CC (ADL/non-ADL) rla $17 1F - Notes
- When using
RLA
to multiplyA
by 2, first make sure the carry flag is reset the result will be( A * 2 ) + Carry
. - Unlike
RL A
, this instruction does not meaningfully affect any flags exceptC
.
- When using
- See Also
- RLA, RLC, RR, SLA