Index

BitMask

A 32-bit number specified either as an unsigned number or as a set of bits.

Input Format:

A set of one or more of: or an unsigned integer.

Example 1:
All of the following examples assign the number 13 to a bit-mask variable.
  BitMask value = 13            # As a decimal number.
  BitMask value = 0b1101        # As a binary number.
  BitMask value = b0 + b2 + b3  # As bits.

Example 2:
The following example initializes a BitMask variable with a bit-mask that has all 32 bits turned on except bit 3 (counted from zero).
  BitMask value = all - b3
  BitMask value = all - 0b1000
  BitMask value = 0b11111111111111111111111111110111

Martin Shepherd (12-Jan-1999)