n--------------m
n--m | n---------m |
|CY|<-T-|7<------0|<-u
v--u v---------u
r
RLC
r
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | $CB |
| 0 | 0 | 0 | 0 | 0 | r | |||
The contents of register r are rotated left 1 bit position. The contents of bit 7 are copied to the Carry flag and also to bit 0. In the assembled object code, operand r is specified as fol- lows:
| Register | r | Hex |
|---|---|---|
| A | 111 | $07 |
| B | 000 | $00 |
| C | 001 | $01 |
| D | 010 | $02 |
| E | 011 | $03 |
| H | 100 | $04 |
| L | 101 | $05 |
| S | is set if result is negative, otherwise it is reset. |
| Z | is set if result is 0, otherwise it is reset. |
| H | is reset. |
| P/V | is set if parity even, otherwise it is reset |
| N | is reset. |
| C | is data from bit 7 of source register. |
Register B contains the following data:
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Upon the execution of
RLC B
register B and the Carry Flag now contain:
| C | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |