yes. I did. I have no idea where the lw came from :) ----- Original Message ----- From: "Pic Dude" To: Sent: Friday, March 15, 2002 1:50 AM Subject: Re: [PIC]: xor trick > You probably mean "xorwf ..." for the 3rd statement in the first > example. > > > ----- Original Message ----- > From: "Jon Baker" > To: > Sent: Thursday, March 14, 2002 7:28 PM > Subject: [PIC]: xor trick > > > > I'm sure everybody knows the xor trick to swap W and a F register: > > xorwf reg,f > > xorwf reg,w > > xorlw reg,f > > > > to swap two file registers without using a temp register and without > > destroying to contents of W > > you can swap F1 with W, F2 with W and F1 with W which uses 9 instructions. > > Can the same > > be done in fewer instructions? > > > > Jon Baker > > > > -- > > 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 > > > > > > > > -- > 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 > -- 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