alexan_e
Administrator
Code:
me >>=2;
Code:
me = me>>2;
Code:
me |= 0b01000000;
| is the OR operator , any value ORed with one becomes 1 and any value ORed by 0 keeps the old value.
The above code is the same as
Code:
me = me | 0b01000000;
Code:
bit_set(dec,3);
bit_clear(dec,3);
The bit_set function sets the bit to a value of 1 and the bit_clear sets the bit to a value of 0.
Alex