On Sun, 16 Feb 2003 17:58:48 -0800, Neil Bradley wrote: PORTA_OUT equ (BIT_0 | BIT_1 | BIT_2 | BIT_3 | BIT_4 | BIT_5) Ah I'd never thought of doing it this way in assembler. I wonder if perhaps your not listing the bits in the wrong order as you have BIT_0 ( LSB) which in reality I reckon would be the MSB from the PIC point of view. Also the header file does allow bsf REGISTER,A0, so it might be better to have PORTA_OUT as a variable and use it as a shadow register for portA. Though I'm not saying that that is the answer. Colin -- cdb, bodgy1@optusnet.com.au on 17/02/2003 I have always been a few Dendrites short of an Axon and believe me it shows. Light travels faster than sound. That's why some people appear bright until they speak! -- 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