RRC Rotate bits right with Carry and store in register

Undocumented Rotate bits right with carry and store in register

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

Visualisation of the RRC instruction

76543210
 
RRC r,(IX+d)
11011101DD
11001011CB
d
00001r
 
RRC r,(IY+d)
11111101FD
11001011CB
d
00001r
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)
RRC A,(IX+d)
DDCBnn0F
RRC B,(IX+d)
DDCBnn08
RRC C,(IX+d)
DDCBnn09
RRC D,(IX+d)
DDCBnn0A
RRC E,(IX+d)
DDCBnn0B
RRC H,(IX+d)
DDCBnn0C
RRC L,(IX+d)
DDCBnn0D
(IY+d)
RRC A,(IY+d)
FDCBnn0F
RRC B,(IY+d)
FDCBnn08
RRC C,(IY+d)
FDCBnn09
RRC D,(IY+d)
FDCBnn0A
RRC E,(IY+d)
FDCBnn0B
RRC H,(IY+d)
FDCBnn0C
RRC L,(IY+d)
FDCBnn0D
Opcode Matrix Legend
Instruction Opcode hex
 Undocumented

Last modified November 9, 2021: Add undocumented auto-copy RRC (32e159c)