|
LSL8 | ||
Result = LSL8(ValueToShift, Bits) | ||
Parameters: ValueToShift=Value that will be shifted Bits=Number of bits the value will be shifted |
||
Returns: Result = Shifted Result |
||
LSL8 is a logical operator that performs a left bit shift upon the bottom 8 bits of a 32bit integer value. The upper 24 bits are not affected by the shift function. FACTS: * LSL32, LSL16, LSL8, LSR32, LSR16 and LSR8 replicate the sign bit of the value they shift * LSL8(x,y) is equivalent to of result = (ValueToShift and $ffffff00) or ((ValueToShift and 255) * 2^Bits) Mini Tutorial: Showing the effect of the logical left shift function. Try different value, or different numbers of bits to shift. Replace LSL8 with LSL32 or LSL16
This example would output.
|
Related Info: | AND | LSL16 | LSL32 | LSR16 | LSR32 | LSR8 | OR | ROL16 | ROL32 | ROL8 | ROR16 | ROR32 | ROR8 | XOR : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |