<< Previous | Next >>

> SLA b,BCDE
> SLA b,JKHL Shift Left Arithmetic Rabbit 4000 Instruction

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

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

> #### Description

> Arithmetically shifts to the left the bits of BCDE or JKHL. Bits 0 through 30 are each shifted to the next highest-order bit position (bit 0 moves to bit 1, etc.). Bit 31 is shifted to the C flag. Bit 0 is reset.

> Figure 18: The bit logic of the SLA instruction.

> The operation happens b number of times.

<< Previous | Next >>