bob: >You could of course do the same thing with appropriate ADDLW or SUBLW >instructions. downside/difference of using anything other than xorlw being that C and DC flags get changed unnecessarily. xorlw only corrupts the Z flag. regards, Simon -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu