Intel XScale(R) technology topicLSL(2) (Thumb*) - Logical Shift Left

Syntax

LSL dest, source

where:

 dest

Register containing the operand and destination register

 source

Register containing the shift

Description 

The LSL instruction in this format shifts left, the bits of dest by the number specified in source and stores the result in dest . The result represents the value of a register multiplied by a variable power of 2.

Addressing Mode 

No operands.

Flags Affected 

N

Z

C

V

Q

S

I

F

T

M

M

M

 

 

 

 

 

 

Encoding

15

14

13

12

11

10

9

8

7

6

5

 

3

2

 

0

0

1

0

0

0

0

0

0

1

0

source

dest

Example

1                                        ;@.text
2                                        ;@.globl funlsl
3                                        ;@.align 0
4                                        ;
5                                    AREA example,CODE,READONLY
6                                    CODE16
7
8                                    label1
9                                        ; Logical shift left value in R3
10                                       ; 12 times. The 12 is put in R2
11                                       ; Put result back to R3
12    00000000    F7C2    MOV    R2, #OxC
13    00000002    4093    LSL    R3, R2  

Further Information

See ASR(1) Instruction
See ASR(2) Instruction

See LSL(1) Instruction

See LSR(1) Instruction

See LSR(2) Instruction

See ROR Instruction