RL Rotate bits left with Carry and store in register

Undocumented Rotate bits left with carry and store in register

This instruction performs an RL (IX+dd) or RL (IX+dd) operation but then also stores the result in a register as well as in the memory location.

Visualisation of the RL instruction

76543210
 
RL r,(IX+d)
11011101DD
11001011CB
d
00010r
 
RL r,(IY+d)
11111101FD
11001011CB
d
00010r
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111

Note: r=%110 does exist. It doesn't do a copy into a register as it's the existing official, documented instruction.

Opcode Matrix
ABCDEHL
(IX+d)
RL A,(IX+d)
DDCBnn17
RL B,(IX+d)
DDCBnn10
RL C,(IX+d)
DDCBnn11
RL D,(IX+d)
DDCBnn12
RL E,(IX+d)
DDCBnn13
RL H,(IX+d)
DDCBnn14
RL L,(IX+d)
DDCBnn15
(IY+d)
RL A,(IY+d)
FDCBnn17
RL B,(IY+d)
FDCBnn10
RL C,(IY+d)
FDCBnn11
RL D,(IY+d)
FDCBnn12
RL E,(IY+d)
FDCBnn13
RL H,(IY+d)
FDCBnn14
RL L,(IY+d)
FDCBnn15
Opcode Matrix Legend
Instruction Opcode hex
 Undocumented

Last modified November 9, 2021: Add undocumented auto-copy RL (913d189)