var XOR 1 is faster, in theory, than var = 1 - var,
because only one register is involved.
Vince's toggle method is neat, and new to me. It
even works for flipping between 0 and 1. But it
does incur 3 register loads and 2 register operations.
Speed doesn't much matter for normal programs, but
it sure does for things like chess, lest the user die of
old age before a move is made.