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