TJHJ
04-07-2009, 01:33 AM
Hey all,
Dumb question. If I use the rotate command on a byte, will it properly rotate around to the 8th bit? Or Does rotate like its a long?
Ex
Var
byte RotateTest
Pub Main
RotateTest := %1010
RotateTest <-= 8
'Is rotate test now %0000_1010 or %1010_0000_0000 ???
Side note
Anyone have a good way to rotate a 4 bit value around? With out a bunch of checking?
Im really trying to rotate %1100 right 1 per loop. But keep it all in the 4 bit format.
Thanks
ˇTJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250
Dumb question. If I use the rotate command on a byte, will it properly rotate around to the 8th bit? Or Does rotate like its a long?
Ex
Var
byte RotateTest
Pub Main
RotateTest := %1010
RotateTest <-= 8
'Is rotate test now %0000_1010 or %1010_0000_0000 ???
Side note
Anyone have a good way to rotate a 4 bit value around? With out a bunch of checking?
Im really trying to rotate %1100 right 1 per loop. But keep it all in the 4 bit format.
Thanks
ˇTJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250