Steve Kasm wrote: > > Hi All, > > Here's another newbie question, please bear with me.... movf myreg,w ; your data andlw b'00001111' ; mask upper 4 bits xorlw b'0000bbbb' ; XOR least significant bits movwf Result ; store result if result of XOR = 0 then Z will be set = 1 -- Best regards Tony Multimedia 16F84 Beginners PIC Tools. **New Improved PicNPost** http://www.picnpoke.com Email picnpoke@cdi.com.au