> Sam.
>
>
> ----- Original Message -----
> From: "Bob Ammerman" <
.....RAMMERMANKILLspam
.....PRODIGY.NET>
> To: <
EraseMEPICLISTspam_OUT
TakeThisOuTMITVMA.MIT.EDU>
> Sent: Monday, May 07, 2001 7:14 PM
> Subject: Re: [PIC]:a newbie mpasm question
>
>
> > 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" <
olin_piclist
spam_OUTEMBEDINC.COM>
> > To: <
@spam@PICLISTKILLspam
MITVMA.MIT.EDU>
> > 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,
KILLspamolinKILLspam
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
> >
> >
>
> --
>
http://www.piclist.com hint: The PICList is archived three different
> ways. See
http://www.piclist.com/#archives for details.
>
>