Prev Up Next
Go backward to Filtering operators (PASSES,FAILS)
Go up to If...else...command (single sortword environment)
Go forward to Gate-testing operator (GATEDBY)

Masking operator (MASKEDBY)


IF <sortword>|(<expression>) MASKEDBY <16-bit mask-value> ...


IF...MASKEDBY is true only if all the bits set in the 16-bit mask are present in the sortword or expression being tested, eg.
IF GAMA MASKEDBY %00110101    INC SPEC1(MB1)
causes SPEC1 to be incremented if all the bits set in GAMA are also set in the bit pattern %00110101.


IF <sortword>|(<expression>) MASKEDBY <bitmask-set-name> ...


This form of the command is true if there is a bit pattern in <bitmask-set-name> for which all the bits set are present in <sortword> or <expression>. The gate number of the bit pattern which satisfies this condition is placed in the reserved word GATE.
support@ns.ph.liv.ac.uk

Prev Up Next