eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
303
RL (HL)
Rotate Left
Operation
Description
The (HL) operand is an 8-bit value at the memory location specified by the contents of the
multibyte register (HL). The CPU manipulates the contents of this memory location, (HL),
by rotating them left one bit position. The CPU next copies bit 7 into the Carry Flag and
copies the previous contents of the Carry Flag into bit 0 of the memory location, (HL).
Condition Bits Affected
Attributes
S Set if result is negative; reset otherwise.
Z Set if result is 0; reset otherwise.
H Reset.
P/V Set if parity is even; reset otherwise.
N Reset.
C Data from bit 7 of the source.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
RL (HL) X 5 CB, 16
RL.S (HL) 1 6 52, CB, 16
RL.L (HL) 0 6 49, CB, 16