n--------------m
n--m | n---------m |
|CY|<-T-|7<------0|<-u
v--u v---------u
A
RLCA
None
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | $07 |
The contents of the Accumulator (Register A) are rotated left 1 bit position. The sign bit (bit 7) is copied to the Carry flag and also 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:
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Upon the execution of
RLCA
the Accumulator and Carry flag contains:
| C | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |