BITCHECK Function
Returns the current value of the specified bit from the bit table.
Syntax
BITCHECK(bitNumber)
Syntax Elements
bitNumber Specifies the bit to be checked.
Operation
BITCHECK operates on a table of 128 bits, numbered 1 to 128, unique to each process. Each bit is available as a two-state flag, that is, the value returned by the function is always either zero or one.
Special functions can be performed by setting bitNumber to the following values:
-1 Allows access to the system INHIBIT bit (which controls inhibiting of the Break key).
-2 Allows access to the system TRSTRFLG bit (which controls TCL restart).
-3 Allows access to the system RSTRTFLG bit (which controls BREAK-END restart).
If bitNumber is 0, less than -3, or greater than 128, BITCHECK returns 0.
See Also
BITCHANGE function, BITLOAD function, BITRESET function, BITSET function.
Example
Y = BITCHECK(76)
PRINT Y
If the value of bit 76 was 0, 0 is printed. If the value was 1, 1 is printed.