next up previous contents
Next: MESS (Type a Message) Up: Commands Previous: LTSC (Load TSCs)*

MASK (Mask Registers)*

MASK word count, $\char93 X$ register, number in Hex

MASK is used to mask the contents of registers in the Register Buffer.

word count :
Number of words to be masked (integer).
#X :
Location of the first word (integer).
number in Hex :
A number in Hexadecimal representation used to mask the contents of the registers (form a bitwise AND).

EXAMPLES:
Suppose that the contents of registers #0, #1, #2 are 11111111, 22222222, FFFFFFFF respectively. Then the command
MASK 3 #0 FF
will place 00000011, 00000022, 000000FF on registers #0, #1, #2 respectively.

If you want to send the data #008F008F to the Linearization memries of a TEC, a useful technique is to do the following:
LOAD #0 2pffff.dat
MASK 1024 #0 #008F008F
SEND 1 crate 1 1024 linearization address #0
This process loads a file with 1024 words of FFFFFFFF, masks off the appropriate bits, and sends the data to the linearization memory specified by crate and linearization address.