User`s guide

KA52/53/54 Firmware Commands
3.2 Console Commands
3.2.13 SEARCH
The SEARCH command finds all occurrences of a pattern and reports the
addresses where the pattern was found. If the /NOT qualifier is present, the
command reports all addresses in which the pattern did not match.
Format:
SEARCH [qualifier-list] {address} {pattern} [{mask}]
SEARCH accepts an optional mask that indicates bits to be ignored (don’t care
bits). For example, to ignore bit 0 in the comparison, specify a mask of 1. The
mask, if not present, defaults to 0.
A match occurs if (pattern and not mask) = (data and not mask), where:
Pattern is the target data.
Mask is the optional don’t care bitmask (which defaults to 0).
Data is the data at the current address.
SEARCH reports the address under the following conditions:
/NOT Qualifier Match Condition Action
Absent True Report address
Absent False No report
Present True No report
Present False Report address
The address is advanced by the size of the pattern (byte, word, longword, or
quadword), unless overridden by the /STEP qualifier.
Qualifiers:
Data control: /B, /W, /L, /Q, /N:{count}, /STEP:{size}, /WRONG
Address space control: /P, /V, /U
Command specific:
/NOT Inverts the sense of the match.
Arguments:
{start_
address}
A longword address that specifies the first location subject to the search. This
address can be an actual address or a symbolic address. If no address is specified,
+ is assumed.
3–24 KA52/53/54 Firmware Commands