<< Previous | Next >>

SRL r     Shift Right Logical     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation
---- SRL r 4 (2,2)) r = {0,r[7,1]}; CF = r[0]

CB 3F

SRL A

4 (2,2)

A = {0,A[7,1]}; CF = A[0]

CB 38

SRL B

4 (2,2)

B = {0,B[7,1]}; CF = B[0]

CB 39

SRL C

4 (2,2)

C = {0,C[7,1]}; CF = C[0]

CB 3A

SRL D

4 (2,2)

D = {0,D[7,1]}; CF = D[0]

CB 3B

SRL E

4 (2,2)

E = {0,E[7,1]}; CF = E[0]

CB 3C

SRL H

4 (2,2)

H = {0,H[7,1]}; CF = H[0]

CB 3D

SRL L

4 (2,2)

L = {0,L[7,1]}; CF = L[0]


Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·

Description

Shifts to the right the bits in r (any of the registers A, B, C, D, E, H, or L). Each bit is shifted to the next lowest-order bit position (Bit 7 shifts to bit 6, etc.) Bit 0 shifts to the C flag. Bit 7 is reset. See the figure below.

Figure 24: The bit logic of the SRL instruction.

<< Previous | Next >>