> > 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. >=20 > Hi Ray, >=20 > 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 xx= x > again at the end? I originally thought it was to shift the carry bit around, but that can't b= e it. So I don't understand it either without modelling it. --=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 .