> No need to reload each time. > > This works because: (X xor A) xor (A xor B) > is the same as: X xor (A xor A) xor B > which is the same as X xor 0 xor B > which is the same as X xor B. That's quite true. I suggested XORs in the original answer and put up SUBLW only as an alternative to SUBWF. Reloading W unnecessarily is inefficient so I commented it -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads