Use the ^ operator for Bitwise Exclusive OR

ByteA = ByteA ^ %11111111 Inverts the bits of ByteA