Cheers
Robert
VAR a, b, c : BITSET;
a = b * c; (* bitwise AND *)
a = b + c; (* bitwise OR *)
a = b / c; (* bitwise XOR *)
a = {} - b; (* bitwise NOT *)
a = SYSTEM.SHIFT(b,1); (* shift left by 1 *)
a = SYSTEM.SHIFT(b,-2); (* shift right by 2 *)
a = SYSTEM.ROTATE(b,1); (* rotate left by 1 *)
a = SYSTEM.ROTATE(b,-2); (* rotate right by 2 *)
You can declare your own bitset types, e.g.
TYPE Bitset8 = PACKEDSET OF (0..7);
although your compiler will probably place some restriction on
the maximum number of bits.
Martin