zs (Set Default)

zs "string"
 

The zs command makes it possible for you to change the default command string.

string
Specifies the new default command string. The string must be enclosed in single or double quotation marks. You must separate the debugger commands within the string with semicolons.

The following example changes the current default command string to an r command followed by a c command:

zs "r;c100 L 100 300"

The following example begins execution whenever an int 3 instruction is executed in your test application. This example executes a g command every time an int 3 instruction is executed.

zs "j (by cs:ip) == cc 'g'"

You can use zs as follows to set up a watchpoint:

zs "j (wo 40:1234) == 0eeed;t"

This command traces until the word at 40:1234 is not equal to 0EEED. This does not work if you are tracing through the mode switching code in MS-DOS or other sections of code that cannot be traced.