SLW

Top  Previous  Next

 

The 16 bits of accu 1-L are shifted about the number that is specified as operand (0-15) to the left side. The bits that are shifted to the left side beyond the accu 1-L-limit get lost, they are not transfered into the more significant bytes of the accu. Zeros are inserted from the right side.

 

Example:        L 1                // 1 in accu 1

         SLW 2                // Shift 2 bits to the left side

In accu 1 there is now W#16#0004 = 2#100

 

If no operand is specified the number in accu 2-LL is used instead.

 

Example:        L 4                // 5 in accu 1

         L 1                // 5 in accu 2 / 1 in accu 1

         SLW                // Shift 1 about 5 bits to the left side

In accu 1 there is now W#16#0010 = 2#1000

 

See also:

SLD

SRW

SRD

SSI

SSD

 

List of operations