![](http://datasheet.mmic.net.cn/230000/WGDB7_datasheet_15634924/WGDB7_35.png)
35/76
WGDB7
4.8 Executing Loaded Programs
WGDB7 includes the following program execution commands, which are available either as
buttons in the main window or other windows (where appropriate) or on the
Commands
menu.
The following table explains what each command does:
TIP:
To execute a program from a specific address, set the PC value to where you want to
start running the program in the Register window (see “Viewing Register Contents” on
page 28), then click the
Cont
button.
Add a symbol or expression to the Watch
window, so it can be viewed along with other
symbols and expressions as their values
progress.
Click the
Add
button. A secondary window
opens where you can select a symbol or an
expression. Confirm by clicking OK in this
new window.
Remove a line from the Watch list
Select the line and click the
Delete
button.
This command:
Does this:
Run
Resets the emulator, and runs the program from the reset starting
point until a breakpoint is reached.
Cont
Continues running the program from the current PC until a
breakpoint is reached.
Next
Executes the source line at the current PC location, stepping over
any function calls.
Step
Executes the source line at the current PC location, stepping into any
function calls.
Finish
Runs the program from the current PC line until the end of the
current function is reached, then returns to the calling procedure.
Stop
Stops the program running.
Reset
Resets the ST7 emulator. The PC is set to the reset vector value and
A, X, and Y are set to 0 (see “Viewing Register Contents” on page 28
for further details about these values).
Goto
Runs the program from the current PC position to the specified
marker position.
Stepi
Steps one instruction immediately following the PC line, stepping
inside any call instructions.
Nexti
Steps one instruction immediately following the PC line, executing
any call instructions.
185