> Using my Clearwater Mathias emulator, the following instruction... > > incf w,0 > > appears to work, actually incrementing the w register. > How come, if swapf doesnt'? It doesn't work, only appears to work in you case. The ",0" causes the result of the INCF to be written to W, which is why W gets modified. If W contains whatever FSR happens to be pointing to, then it will appear to increment. If you look into this more carefully you will see that it doesn't work. Of course you're messing with some third party emulator, so who knows what you will see. Try it with real MPLAB if you continue to have a problem. ******************************************************************** 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