Dear all, How do I invert all the bits in a number. I would have thought that it would have been a NOT, but the MPASM instruction set does not appear to have a NOT. I think it can be done using XOR but I am not clear on this. Any help would be greatly appreciated, Michael Hearn