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

Return to the regular view of this page.

RR Rotate bits right with Carry and store in register

Undocumented Rotate bits right with carry and store in register

Table of Contents

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

Visualisation of the RR instruction

76543210
 
RR r,(IX+d)
11011101DD
11001011CB
d
00011r
 
RR r,(IY+d)
11111101FD
11001011CB
d
00011r
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)
RR A,(IX+d)
DDCBnn1F
RR B,(IX+d)
DDCBnn18
RR C,(IX+d)
DDCBnn19
RR D,(IX+d)
DDCBnn1A
RR E,(IX+d)
DDCBnn1B
RR H,(IX+d)
DDCBnn1C
RR L,(IX+d)
DDCBnn1D
(IY+d)
RR A,(IY+d)
FDCBnn1F
RR B,(IY+d)
FDCBnn18
RR C,(IY+d)
FDCBnn19
RR D,(IY+d)
FDCBnn1A
RR E,(IY+d)
FDCBnn1B
RR H,(IY+d)
FDCBnn1C
RR L,(IY+d)
FDCBnn1D
Opcode Matrix Legend
Instruction Opcode hex
 Undocumented