I am trying to set selected bits in GPIO using bsf GPIO, n where n can be 0,1,2,4 The selected bit gets set ok but any bit which is already on is cleared at the same time. Why is this - and how should I do to set and clear bits individually? test code: bit 0 blinks once and then bit 1 is set: bsf GPIO,0 call delay bsf GPIO,1 loop goto loop Goran -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist