The '<<' and '>>' operators shift a value left or right, respectively, 0 to 15 times. The newly shifted-in bits are set to 0.
Code:B0 = B0 << 3 ‘ Shifts B0 left 3 places, (same as multiply by 8) W1 = W0 >> 1 ‘ Shifts W0 right 1 position and places result in W1 (same as divide by 2)
Bookmarks