SRL Rotate bits right with Carry and store in register

Undocumented Rotate bits right with carry and store in register

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

Visualisation of the SRL instruction

76543210
 
SRL r,(IX+d)
11011101DD
11001011CB
d
00111r
 
SRL r,(IY+d)
11111101FD
11001011CB
d
00111r
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)
SRL A,(IX+d)
DDCBnn3F
SRL B,(IX+d)
DDCBnn38
SRL C,(IX+d)
DDCBnn39
SRL D,(IX+d)
DDCBnn3A
SRL E,(IX+d)
DDCBnn3B
SRL H,(IX+d)
DDCBnn3C
SRL L,(IX+d)
DDCBnn3D
(IY+d)
SRL A,(IY+d)
FDCBnn3F
SRL B,(IY+d)
FDCBnn38
SRL C,(IY+d)
FDCBnn39
SRL D,(IY+d)
FDCBnn3A
SRL E,(IY+d)
FDCBnn3B
SRL H,(IY+d)
FDCBnn3C
SRL L,(IY+d)
FDCBnn3D
Opcode Matrix Legend
Instruction Opcode hex
 Undocumented