This is not related to the thread, but I'd still like to know :-) Why do u use swapf bit_position,w in stead of movf bit_position,w ? just wondering.... Hans > Probably it would be better to pre allocate bit position value in cell > shifted by one bit to left, like xxxx.yyyz where xxxx is byte offset > and yyy bit offset. It let us write more tight code for this case. > > swapf bit_position,W > andlw 0x0F > addlw bit_array > movwf FSR > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics