s (Search)


s range list | "string"

The s command searches an address range for a specified list of bytes or an ASCII character string. You can include one or more bytes in list, but multiple bytes must be separated by a space or comma. When you search for more than one byte, the command returns the address of only the first byte in the string. When list contains only one byte, the debugger displays the addresses of all occurrences of the byte in range.

range

Specifies the block of memory to be searched.

list

Specifies one or more byte values to search for.

string

Specifies an ASCII character string to be searched for. The string must be enclosed in quotation marks.

The following example searches for byte 41h in the address range CS:100 to CS:110:


sCS:100 110 41
04BA:0104
04BA:010D