G [[address]]
address
Address at which to stop execution.
The Go (G) command starts execution at the current address. If address is given, CodeView executes the program until it reaches that address. If the specified address is never reached, the program executes until it terminates. If no address is given, CodeView executes the program until it terminates, until it reaches a breakpoint, or until you interrupt execution.
When CodeView reaches the end of the program in MS-DOS, it displays a message with the format:
Program terminated normally (number)
The number is the program's return value (also known as the “exit” or “errorlevel” code). This is the value in the AX register at the time your program terminates. For example, the C function call
exit(1);
places 1 in the AX register and terminates the program.
In addition to typing the G command, you can start execution using the following shortcuts:
Click the <F5=Go> button in the status bar.
Press F5.
To execute up to a certain location, you can use the following shortcuts:
Click the right mouse button on the source line.
Move the cursor to the source line and press F7.
The following example executes up to the label panic_exit in the main function. Because labels are always local to a procedure, you must specify the context (procedure or function name) if the label is not in the current function.
>G {main}panic_exit