User`s guide

Table Of Contents
4–154 User Commands
User Commands
sw
sw
The sw command searches memory by words (16-bit).
Format
sw start_address end_address string [inverse]
Parameters
start_address
Specifies the address at which to begin the search.
end_address
Specifies the address at which to end the search.
string
Specifies the search string.
inverse
Specifies whether to search for a matching string (0) or a nonmatching string (1).
The default is 0 (search for a matching string).
Description
The sw command searches memory by word chunks for the specified string. You can
use an asterisk (*) as a wildcard character for single-character matching.
Example
EB64> pl 100000 100080
00100000: C3E00007 00000000 00000000 00000000 ...............
00100010: 00000000 00000000 00000000 00000000 ................
00100020: 221F0000 26100012 6BF00000 00000000 ......&...k....
00100030: 00000000 00000000 00000000 00000000 ................
00100040: 00000000 00000000 00000000 00000000 ................
00100050: 00000000 00000000 00000000 00000000 ................
00100060: 00000000 00000000 00000000 00000000 ................
00100070: 00000000 00000000 00000000 00000000 ................
00100080: 00000000 00000000 00000000 00000000 ................
EB64> sw 100000 100080 2*1*
val = 2010 mask = F0F0
occurrence at 00100022 221F
occurrence at 00100026 2610