:''Explanation:'' Look down the columns to see how the bits are changed. The three values returned by XOR, AND and OR are relational. If you add the values returned by XOR(134) and AND(105) the result is the value of the OR operation, 239.
''Example 2:'' Using XOR to turn a parallel port's data register bits on or off
{{CodeStart}}
address% = 888
ByteValue% = {{Cl|INP}}(address%)
{{Cl|OUT}} address%, ByteValue% {{Cl|XOR}} 7
{{CodeEnd}}
:''Explanation:'' Only the first 3 Bits are affected. If on then turned off. If off then turned on. Each time the OUT statement above is used, the bit values alternate. That is because the value of 7 compares the bit's status to an on only value.