102
Rabbit 2000/3000 Microprocessor
Description
Logically shifts to the right the bits of the data whose address is
•
the data in word register HL, or
•
the sum of the data in index register IX and a displacement d, or
•
the sum of the data in index register IY and a displacement d.
Each bit is shifted to the next lowest-order bit position (Bit 7 shifts to bit 6, etc.) Bit 0 shift to the Carry Flag,
CF. Bit 7 is reset. See Figure 7 below.
SRL (HL)
SRL (IX+d)
SRL (IY+d)
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
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
L
•
•
•
•
Figure 7: The bit logic of the SRL instruction.
CF
7
0
0
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...