n--------------------m | n--m n---------m | v-|CY|<-|7<------0|<-u v--u v---------u A
RLA
None
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | $17 |
The contents of the Accumulator (Register A) are rotated left 1 bit position through the Carry flag. The previous contents of the Carry flag are copied to bit 0. Bit 0 is the least- significant bit.
S | is not affected. |
Z | is not affected. |
H | is reset. |
P/V | is not affected. |
N | is reset. |
C | is data from bit 7 of Accumulator. |
The Accumulator contains the following data:
C | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|---|
1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 |
Upon the execution of
RLA
the Accumulator and Carry flag contains:
C | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|---|
0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 |