---------- > From: Jason Bent > There are at least THREE ways. Other people have covered XOR and > COMF, which you use 99% of the time. Another litle trick is > > 255 - A = NOT A > This is the 8 bit version of the more general case of NOT A = -A -1 on any two's compliment processor. This will work on any word size. It is a compiler optimization that is very useful in some cases. Walter Banks