There is a simple ASM command, COMF. This is what it would look like:
@ BANKSEL _byteA
@ COMF _byteA, F
The first line moves the BSR (Bank Select Register) to the BANK containing your variable. The variable is preceded by an underscore for ASM; _byteA.
The second line executes the command, Compliment F (F is your variable). The appending ", F" puts the result back in your variable, byteA.
Hope this helps
Bookmarks