RL Rotate bits left with Carry

Rotate bits left with carry
Visualisation of the RLA instruction
76543210
 
RLA
0001011117
 
RL r
11001011CB
00010r
 
RL (HL)
11001011CB
0001011016
 
RL (IX+d)
11011101DD
11001011CB
d
0001011016
 
RL (IY+d)
11111101FD
11001011CB
d
0001011016
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)
RL
RLA
1714









RL
RL A
CB1728
RL B
CB1028
RL C
CB1128
RL D
CB1228
RL E
CB1328
RL H
CB1428
RL L
CB1528
RL (HL)
CB16215
RL (IX+d)
DDCBnn16423
RL (IY+d)
FDCBnn16423
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory

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