rlc
Rotate left circular
Rotates a register or memory byte left one bit, copying bit 7 to C and to bit 0.
- ● set from the result
- 0 always 0
Forms
-
The contents of
rare rotated left one bit position. The contents of bit 7 are copied to the carry flag and bit 0. rlc2 bytes · 15 cyclesThe contents of (HL) are rotated left one bit position. The contents of bit 7 are copied to the carry flag and bit 0.
-
The contents of the memory location pointed to by IX plus
ddare rotated left one bit position. The contents of bit 7 are copied to the carry flag and bit 0.
Undocumented 1 row
Left out of Zilog's manual, but the Z80 runs them, and so does this emulator.
-
The contents of the memory location pointed to by IX plus
ddare rotated left one bit position. The contents of bit 7 are copied to the carry flag and bit 0. The result is then stored inr.
Operands
.org 0x8000
ld b, 3
rlc b
halt