<< Previous | Next >>

SRL (HL)     Shift Right Logical     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
CB 3E SRL (HL) (HL) = {0,(HL)[7,1]}
CF = (HL)[0]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
10
n/a
n/a
Rabbit 5000
10
10
8

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 HL.

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.


Rabbit Instructions << Previous | Next >> rabbit.com