Steve Smith wrote: > Is there an easy way of doing the following?? > > (16F877) > > Movlw (variable 0-7) > > Bsf register,W > > Or > > Btfsc register,W > > Specifically for addressing various pins depending on the result of a > test Yes. You create a bitmask and then use logic instructions to manipulate the masked bit in another register. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist