The PATTERN command sets or examines the pattern register. The pattern register stores a distribution of 1s and 0s in a 48–bit word and its 4–bit tag. The pattern assigned by the PATTERN command is stored until it is changed by another PATTERN command.
The PATTERN command and the MASK (Mask Register) command are used to provide information for the SEARCH (Search for Pattern) command. The SEARCH command searches the dump for all words that match the pattern register, bit for bit. The MASK masks some of the bits in the pattern that are not significant to the search. (Refer to the MASK and SEARCH commands for further information.)
The pattern includes the 4–bit tag for a word. To specify a TAG, use the concatenation form of simple value; specify 12 hexadecimal digits and & <number> TAG.
The tag value should be no larger than 15; however, if it is larger than 15, the tag value is placed in the tag using modulus 16. If no tag is specified, the tag is assumed to be 0.
Although the pattern represents 48 binary bits and a tag value of four binary bits, the pattern is displayed and is most often set in hexadecimal. Pattern Word Examples shows a diagram of a pattern word, with its hexadecimal equivalent stated below it:
To put the pattern of bits shown in the word above into the pattern register, use the following command (the 4 leading zeros are implied):
PATTERN 4422FFFF & F TAG
The pattern register then displays its contents as F 000044 22FFFF.
The default for the PATTERN register is displayed as 0 000000 000000.
Syntax
── PATTERN ─┬────────────────┬─────────────────────────────────────────┤ └─<simple value>─┘
Explanation
The following text describes the meaning of each construct. Refer to “Basic Constructs” earlier in this section for information about the <simple value> construct.
PATTERN
Displays the contents of the PATTERN register.
PATTERN <simple value>
Loads the pattern register with the simple value, which you can then use as a nonvolatile search pattern.
Examples
INPUT: PATTERN PATTERN: 0 000000 000000 INPUT:PATTERN 23000EC05B72 PATTERN: 0 23000E C05B72 INPUT: PATTERN 123456789ABC & DEC 10 TAG PATTERN: A 123456 789ABC