RLC b,BCDE
Rotate Left Affect Carry
Rabbit 4000 Instruction
|
| -- |
RLC b,BCDE |
|
BCDE = {BCDE[30,0],B[7]} CF = B[7] b = b-1 repeat while b != 0 |
|
DD 68
|
RLC 1,BCDE
|
|
BCDE = {BCDE[30,0],B[7]}
CF = B[7]
b = b-1
repeat while b != 0
|
|
DD 69
|
RLC 2,BCDE
|
|
BCDE = {BCDE[30,0],B[7]}
CF = B[7]
b = b-1
repeat while b != 0
|
|
DD 6B
|
RLC 4,BCDE
|
|
BCDE = {BCDE[30,0],B[7]}
CF = B[7]
b = b-1
repeat while b != 0
|
Description
Rotates BCDE to the left (bit 0 moves to bit 1, bit 1 moves to bit 2 etc.). Bit 31 moves to the C flag and bit
0. See the figure below.
Figure 6: The bit logic of the RLC operation.
This operation happens b number of times.