I have unfortunately wasted a day trying to get some code to work. I realized that the bitshifting opperations only allow up to 16bit shifts.
Hopefully I am wrong....
if so, please show us how.
if I am correct, Please Put this on your bug fix list.
I created a little shifting routine that fixes it if anyone wants to use it.
//[VarDef,shftOUT,0]//this needs to be defined somewhere in the scope of the working code
[RoutineDef,SHFTBTSL,
[VarSet,x,1]
[Loop,p,
[VarMul,x,2]
]
[VarSet,shftbtsOUT,x]//Name This As A Global Var
,p]
//this shifts bits to the left only, change VarMul to VarDiv for Rt
To use it just :
[RoutineCall,SHFTBTSL,2]
this is equivolent to (1<<2)
your global variable shftbtsOUT will be filled with the val.
You can then use |,&, etc. It will stay 32bit for these ops.
Sorry if I sound cranky, not a lot of sleep lately.

