<< Previous | Next >>

SRL (HL)
SRL (IX+d)
SRL (IY+d)
    Shift Right Logical
    Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation

CB 3E

SRL (HL)

10*

(HL) = {0,(HL)[7,1]}
CF = (HL)[0]

DD CB d 3E

SRL (IX+d)

13**

(IX + d) = {0,(IX + d)[7,1]}
CF = (IX + d)[0]

FD CB d 3E

SRL (IY+d)

13**

(IY + d) = {0,(IY + d)[7,1]}
CF = (IY + d)[0]

Clocking: *10 (2,2,1,2,3) **13 (2,2,2,2,2,3)


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

Description

Shifts to the right the bits of the data whose address is

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 Figure 24 for an illustration.


<< Previous | Next >>