RLC Rotate bits left with Carry

Rotate bits left with carry
Visualisation of the RLC instruction
76543210
 
RLCA
0000011107
 
RLC r
11001011CB
00000r
 
RLC (HL)
11001011CB
0000011006
 
RLC (IX+d)
11011101DD
11001011CB
d
0000011006
 
RLC (IY+d)
11111101FD
11001011CB
d
0000011006
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111
Flags Affected
Flags
sz-h-p/v-c
sset if result negative
zset if result is 0
hreset
p/vset if parity even, reset if parity odd
cdata from bit 7 of source register
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)
RLC
RLCA
0714









RLC
RLC A
CB0728
RLC B
CB0028
RLC C
CB0128
RLC D
CB0228
RLC E
CB0328
RLC H
CB0428
RLC L
CB0528
RLC (HL)
CB0628
RLC (IX+d)
DDCBnn06423
RLC (IY+d)
FDCBnn06423
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory

Last modified November 16, 2021: Add flags to rot operations (2eee171)