User`s manual

BS - Block of Memory Search
3-18
3
String Search
In the string search mode, a search is carried out for the TEXT
argument. The size option Þeld indicates whether the COUNT
Þeld of RANGE refers to bytes, half-words, or words. If RANGE
is not speciÞed using a COUNT, then no options are allowed. If
a match is found, then the address of the Þrst byte of the match
is output.
Data Search
In the Data Search mode, a data pattern (data) is matched
against a range of memory. The size option indicates whether
the COUNT Þeld in RANGE refers to bytes, half-words, or
words (the default is word).
The following actions occur during a data search:
1. data is right-justified and leading bits are truncated or leading
zeros are added as necessary to make the data pattern the
specified size.
2. A compare is made with successive bytes, half-words, or
words (depending on the size in effect) within the range for a
match with data.
Comparison is made only on those bits at bit positions
corresponding to a one in mask. If mask is not specified, the
default is all ones (all bits are compared). The size of the mask
is taken to be the same size as the data.
If the N (non-aligned) option is selected, data is searched for
on a byte-by-byte basis, rather than by half-words or words,
regardless of the size of data. This is useful if a half-word (or
word) pattern is being searched for, but is not expected to lie
on a half-word (or word) boundary.
3. If a match is found, then the address of the first byte of the
match is output along with the memory contents. If a mask
was in use, then the actual data at the memory location is
displayed, rather than the data with the mask applied.