QAC wrote: > Does this work if CHOICE1, CHOICE2 and CHOICE3 are GPR's and not > litterals ? It's MPASM that does the "^" thing, isn't it ? Correct, MPASM does the XOR at assemble-time... So, no, the technique isn't appropriate for comparing to register contents rather than literals. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads