On Thu, Aug 27, 2015 at 12:26 PM, Ray Haddad wrote: > If you are doing it one bit at a time, use this: > xxx=3Dyyy<<1+xxx; > For 8 bits at a time, use this: > xxx=3Dyyy<<8+xxx; > > Of course, to shift right, use the oppposit shift > direction. Hi Ray, Thanks for the reply. I don't fully understand what you're doing here. I know the shift operand (<<) but I don't understand why you're adding xxx again at the end? Thanks! Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .