This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

RLC Rotate bits left with Carry and store in register

Undocumented Rotate bits left with carry and store in register

Table of Contents

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

Visualisation of the RLC instruction

76543210
 
RLC r,(IX+d)
11011101DD
11001011CB
d
00000r
 
RLC r,(IY+d)
11111101FD
11001011CB
d
00000r
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)
RLC A,(IX+d)
DDCBnn07
RLC B,(IX+d)
DDCBnn00
RLC C,(IX+d)
DDCBnn01
RLC D,(IX+d)
DDCBnn02
RLC E,(IX+d)
DDCBnn03
RLC H,(IX+d)
DDCBnn04
RLC L,(IX+d)
DDCBnn05
(IY+d)
RLC A,(IY+d)
FDCBnn07
RLC B,(IY+d)
FDCBnn00
RLC C,(IY+d)
FDCBnn01
RLC D,(IY+d)
FDCBnn02
RLC E,(IY+d)
FDCBnn03
RLC H,(IY+d)
FDCBnn04
RLC L,(IY+d)
FDCBnn05
Opcode Matrix Legend
Instruction Opcode hex
 Undocumented