Alyce Sep 22, 2006
function shiftLeft(bitsValue) shiftLeft = bitsValue * 2 end function
function shiftRight(bitsValue) shiftRight = int(bitsValue / 2) end function
function shiftByteLeft(bitsValue) shiftByteLeft = 255 and (bitsValue * 2) end function
Bit Shift Functions
-Table of Contents
This is really easy to do:
Shift Left
Shift Right
Remove High Bit
If you want to remove the high bit when shifting left, just write a function for that, like so:Get the idea? :)
-Carl
-