1 07/26/83  search, srh
 2 
 3 Syntax:  search VIRTUAL-ADDR {range} SEARCH_STRING
 4         [search VIRTUAL-ADDR {range} SEARCH_STRING]
 5 
 6 
 7 Function: This command will search a segment starting at VIRTUAL-ADDR
 8 matching on SEARCH_STRING.  The search is performed on a 36 bit word
 9 boundary.  As an active request, the virtual addresses matching the
10 criteria specified is returned.
11 
12 
13 Argument:
14 VIRTUAL-ADDR
15    is the pointer to the address space to search.  See
16    virtual_address.info
17 range
18    specifies the number of words to be searched from the starting
19    offset, where range is an octal value.  The default is the rest of
20    segment.  The search is started from VIRTUAL-ADDR.
21 SEARCH_STRING
22    This is a 12 character string representing the 12 octal digits that
23    make up a machine word (36 bit,3 bits per digit).  This will be used
24    to form both the search data and search mask, by using the hyphen
25    (-) as a "don't care character" in the string.  The "do care digits"
26    are octal "0 -> 7".  Any other character is illegal.
27 
28 
29 Examples: To search for:
30     1) all words in segment 76 that have the last two digits of 43:
31 
32                  search 76 ----------43
33 
34     2) all words in tc_data where the upper half = 070707
35 
36                  search tc_data 070707------
37 
38     3) words that  end in 1234  in sst_seg starting  at 1000 but only
39        searching for 200 octal words
40 
41                  search sst_seg|1000 200 --------1234
42 
43 
44       4) words that start with 45 and end with 77 starting a sst_seg$ptl
45          for 100 words
46 
47                 search sst_seg$ptl 100 45--------77