Olin, you got it wrong and so did I .... sigh.... The correct snippet is: movlw PIN0 andwf PIN0,W skpz ---or--- snpnz as needed Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: "Olin Lathrop" To: Sent: Monday, May 07, 2001 12:29 PM Subject: Re: [PIC]:a newbie mpasm question > > PIN0 EQU B'00000001' > > PIN1 EQU B'00000010' > > ; > > MOVF PIN0,W > > You want the value of PIN0 into W, not the contents of the location at > address PIN0. Use MOVLW PIN0. > > > XORWF PORTA > > To avoid altering PORTA, you should append ", W". This writes the result of > the XOR into W instead of PORTA. > > > BTFSS STATUS,Z > > > ******************************************************************** > Olin Lathrop, embedded systems consultant in Littleton Massachusetts > (978) 742-9014, olin@embedinc.com, http://www.embedinc.com > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads