| << Previous | Next >> | |
| |
RLC (HL)
RLC (IX+d)
RLC (IY+d) Rotate Left Affect Carry Rabbit 2000/3000/4000 Instruction
Description
Rotates to the left the data whose address is:
Each bit moves to the next highest-order bit position (bit 0 moves to bit 1, etc.). Bit 7 moves to both bit 0 and the C flag. See Figure 7 for an illustration.
Example
If HL contains 0x4545, the byte in the memory location 0x4545 is 0110 1010, and the C flag is set, then after the execution of the operation:
RLC (HL)the byte in memory location 0x4545 will contain 1101 0100 and the C flag will be reset.
| | |
| << Previous | Next >> |