At 08:21 AM 4/28/00 -0400, PDRUNEN@AOL.COM wrote: >Hi Group, > >The MPLAB assembler will compile the COMF W statement but does not work on >the simulator. Since it did compile then I assume that the COMF W is doing >something, but I am not sure what it does? W is not a physical register, so you can't compliment it that way. But you can do: comw MACRO xorlw 0xFF endm and then just use 'comw' where you need it dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 16 years of Engineering Innovation (1984 - 2000) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.