> swapf w,0 The first argument of swapf must be a file register. W is not a file register, so this does not work. The assembler will accept it, because w and f are just symbolic equivalents for the 0 and 1 that are used to specify the destination. Try "swapf f,0": it will be accepted by the assembler for the same reason that "swapf w,0" is accepted. Wouter van Ooijen van Ooijen Technische Informatica: http://www.xs4all.nl/~wf/ Jal compiler for PIC microcontrollers: http://www.xs4all.nl/~wf/wouter/jal -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads