addressing bits of a variable
agfa
Posts: 295
can an individual bit of variable be set, reset, or tested: if variable/bit2=1 then do something?
Comments
2) To clear a bit "n": x &= ! |< n
3) To toggle a bit "n": x ^= |< n
4) To test for bit "n" true: IF x & |< n <> 0
5) To test for bit "n" false: IF x & |< n == 0
John Abshier