Actually I clocked in data to a Temp Variable. The data came in lsb first. So in actuality I want the mirror image of the bit order. Example:

TempVar=11000001....this was shifted in lsb first, 8x so lsb is now in msb position.

I want it to be msb in msb position......FinalVar=10000011. I will try out your suggestion. Thanks!


Best Regards,
Nick