Shifts all bits one place to the left or right.
ROTATE var , LEFT/RIGHT [ , shifts]
Byte, Integer/Word or Long variable.
The number of shifts to perform.
Note that the behavior of ROTATE is just like the ASM RL or RR mnemonic. It works for integer, words, single and longs also. All bits in the variable are preserved so for a byte after 8 rotations, the value will be the same.
_ROTATE_LEFT or _ROTATE_RIGHT
Dim a as Byte
a = 128
ROTATE a, LEFT , 2
Print a '1