Helper function to read the state of a single bit in a cell.
GetCellBit( value, bitno )
Get the state of a single bit in the cell value
value | 32-bit cell value |
bitno | The bit number (0-indexed) |
Returns the state of the bit (1 or 0)
new value = 9; // (9 = binary 1001) new b; b = GetBit( value, 3 ); // b is now 1