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

Return to the regular view of this page.

SRL Rotate bits right with Carry

Rotate bits right with carry, bit 7 is reset

Table of Contents

Visualisation of the SRL instruction
76543210
 
SRL r
11001011CB
00111r
 
SRL (HL)
11001011CB
001111103E
 
SRL (IX+d)
11011101DD
11001011CB
d
001111103E
 
SRL (IY+d)
11111101FD
11001011CB
d
001111103E
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111
Flags Affected
Flags
sz-h-p/v-c
sset if result negative
zset if result is 0
hreset
p/vset if parity even, reset if parity odd
cdata from bit 0 of source register
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)
SRL
SRL A
CB3F28
SRL B
CB3828
SRL C
CB3928
SRL D
CB3A28
SRL E
CB3B28
SRL H
CB3C28
SRL L
CB3D28
SRL (HL)
CB3E215
SRL (IX+d)
DDCBnn3E423
SRL (IY+d)
FDCBnn3E423
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory