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.
//[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
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.:mad: