RLC Rotate bits left with Carry and store in register
Undocumented Rotate bits left with carry and store in register
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.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
RLC r,(IX+d) | ||||||||
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | DD |
1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | CB |
d | ||||||||
0 | 0 | 0 | 0 | 0 | r | |||
RLC r,(IY+d) | ||||||||
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | FD |
1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | CB |
d | ||||||||
0 | 0 | 0 | 0 | 0 | r |
Register | r |
---|---|
B | 000 |
C | 001 |
D | 010 |
E | 011 |
H | 100 |
L | 101 |
A | 111 |
Note: r=%110 does exist. It doesn't do a copy into a register as it's the existing official, documented instruction.
Opcode Matrix
A | B | C | D | E | H | L | |
---|---|---|---|---|---|---|---|
(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 |
Instruction
Opcode hex
| Undocumented |
Last modified November 9, 2021: Add undocumented auto-copy RLC (f1e2ba6)