At 12:44 PM 2/22/02 +0000, you wrote: >What's the easiest way to perform a btfss PORTX,X instruction in c > >Btfss PORTX,Z >Bsf PORTy,Z Well, try the most obvious approach: if (PORTX & (0x01 << Z)) PORTY |= (0x01 << Z); It should translate into the assembly language instructions you gave (plus some bank switching stuff, maybe), if your compiler is a good one. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com 9/11 United we Stand -- 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