This file is provided for those not familiar with bit masking. This type of function will be used regularly in PE0002 scripts and in code where 'bit set' and 'bit clear' operations are not available. AND A B Q 0 0 0 0 1 0 1 0 0 1 1 1 AND with 1 to preserve a bit setting AND with 0 to clear (0) a bit setting AND with mask to check which bits are set to 1. OR A B Q 0 0 0 0 1 1 1 0 1 1 1 1 OR with 0 to preserve a bit setting OR with 1 to set (1) a bit setting OR with mask to check bits are set to 0. XOR A B Q 0 0 0 0 1 1 1 0 1 1 1 0 XOR with 0 to preserve a bit setting XOR with 1 to invert a bit setting XOR mask with value to test for equivalence to mask. Use ! in front of the operator to get the the opposite effect. Eg. !AND !OR !XOR