<< Previous | Next >>

> SLL b,BCDE
> SLL b,JKHL Shift Left Logical Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> ---- | SLL b,BCDE | 4 (2,2) | BCDE = {BCDE[30,0],0} CF = B[7] b = b - 1 repeat while b != 0
> DD A8 | SLL 1,BCDE | 4 (2,2) | the operation happens 1 time
> DD A9 | SLL 2,BCDE | 4 (2,2) | the operation happens 2 times
> DD AB | SLL 4,BCDE | 4 (2,2) | the operation happens 4 times
> ---- | SLL b,JKHL | 4 (2,2) | JKHL = {JKHL[30,0],0} CF = J[7] b = b - 1 repeat while b != 0
> FD A8 | SLL 1,JKHL | 4 (2,2) | the operation happens 1 time
> FD A9 | SLL 2,JKHL | 4 (2,2) | the operation happens 2 times
> FD AB | SLL 4,JKHL | 4 (2,2) | the operation happens 4 times

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

> #### Description

> Shifts to the left the bits of the data in register BCDE or JKHL. Bits 0 through 30 are each shifted to the next highest-order bit position (bit 0 moves to bit 1, etc.). The highest-order bit (bit 31 of BCDE or JKHL) is shifted to the C flag. Bit 0 is reset. See the figure below.

> Figure 20: The bit logic of the SLL instruction

> The operation happens b number of times.

<< Previous | Next >>