> Jinx replied to your post about 20 hours ago. And I guess if you can see it Rikard, it must have kept its tag and got to the list BTW Kabanga, there are quite a few solutions to your problem In-line bit testing for example, using (branches omitted) btfss byte1,7 bsf latb,7 btfss byte1,6 bsf latb,6 etc or rotating byte1 and a latb mask in opposite directions 1000 0001 byte1 1000 0000 mask if bit7 of byte1 = 1, ior mask with latb rlncf byte1, rrncf mask loop to if bit7 of byte1 =1 .... -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist