VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: shifting bits Scythe (2 replies, 0 views) (2000-May-7) Shifting bits is not more than x *2 or x/2
but u must get the bit that falls to the left or the right
for example (a simple example)
shift one byte to the left
dim a as long
a=120
a=a*2 'shift
if a>255 then a=a xor &h0100 +1 'if u shifted over the 8th bit the delete the bit and set it to the right
|