Germain Morbe wrote: >just for info. Swap vars without a 3rd register. ......... > >; smart approach: > > movf Variable_1,w > xorwf Variable_2,w > xorwf Variable_1,f > xorwf Variable_2,f > Ahhh, looks like a fragment from the random key encryption algorithm. [better add some comments or a couple of weeks down the road, you'll forget how clever you are :)]. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.