>The result of an XOR will be zero if the two bytes are identical, and >non-zero otherwise. Any '1's in the result show the positions where the >two compared bytes differ. You could use sublw or subwf, and that might be >a better option if the two bytes are numbers, only to make the code more >readable. The effect on the Z bit will be the same. Correct me if I'm wrong... but won't the two bytes always be numbers? It doesn't matter if we interpret them as "A" or 0x41 or 65 it's still just 01000001 to the PIC which can be subtracted / added to another set of numbers. So "a" - "A" is 01100001 - 01000001 -------- 00100000 -- "She said, `I know you ... you cannot sing'. I said, `That's nothing, you should hear me play piano.'" -- Morrisey -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body