
<< Index >> 
FutureBasic 
xor  operator  

result = exprA
{ ^^
} Bit value in expr  Bit value in expr  Bit value in result 
0  0  0 
1  0  1 
0  1  1 
1  1  0 
pattern = pattern xor bit (7)
pattern
from 0 to 1 or from 1 to 0, and leaves all of pattern's
other bits alone.
defstr long
print bin$ (923)
print bin$ (123)
print ""
print bin$ (923 xor 123)
program output:
00000000000000000000001110011011
00000000000000000000000001111011

00000000000000000000001111100000