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