Up Next
Go up to Gates
Go forward to 1D gates

Bitmask gates

A set of bitmask gates consists of one bit pattern per gate. Within a set of gates earlier gate definitions have precedence over later ones. This means that in the commands section if the same value would pass more than one gate out of a set then the earliest gate defined would be the one passed.


GATES* MASK <bitmask-gate-set-name>

<bitmask1> <bitmask2> ... <bitmaskngates>


*or GATEMAP for compatibility with earlier versions.

eg.

GATES  MASK  BITMAP1
%10000 %01000 %00100 %00010 %00001
Each data item consists of a 16-bit mask and represents one gate. A value will pass a gate if all the bits set in the 16-bit value are also set in the 16-bit mask of that gate.

Within the commands section a value will pass a gate if it falls in between the lower and upper limits (inclusive) of that gate.


support@ns.ph.liv.ac.uk

Up Next