'************************************
'Description-
'Bit-wise operations
'************************************
#setbit
'TO SET A BIT JUST "OR" IT WITH THE 
'BIT YOU WANT TO SET
v= 119
JS #binary
v= v|8
JS #binary
V=
#clear
'TO CLEAR A BIT JUST "AND" IT WITH THE
' COMPLIMENT OF WHAT YOU WANT TO CLEAR
v= 127
JS #binary
v= v&(@COM[8])
JS #binary
V=
#clear2
'ALTERNATE WAY TO CLEAR A BIT IS TO 
'JUST SUBTRACT IT
v= 127
JS #binary
v= v-(v&8)
JS #binary
V=
EN
#binary
'CODE BELOW DISPLAYS V AS BINARY #
MG (v&128)/128{N}{F1.0}
MG (v&64)/64{N}{F1.0}
MG (v&32)/32{N}{F1.0}
MG (v&16)/16{N}{F1.0}
MG (v&8)/8{N}{F1.0}
MG (v&4)/4{N}{F1.0}
MG (v&2)/2{N}{F1.0}
MG (v&1)/1{F1.0}
EN