<< Previous | Next >>

RL (HL)     Rotate Left Affect Carry     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
CB 16 RL (HL) {CF,(HL)} = {(HL),CF}

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
10
n/a
n/a
Rabbit 5000
10
10
8

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·
·

Description

Rotates to the left with the C flag the data whose address is HL.

Bits 0 through 6 move to the next highest-order bit position (bit 0 moves to bit 1, etc.) while the C flag moves to bit 0 and bit 7 moves to the C flag. See Figure 3 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:


RL (HL)

the byte in memory location 0x4545 will contain 1101 0101 and the C flag will be reset.


Rabbit Instructions << Previous | Next >> rabbit.com