![Texas Instruments TMS320C6 Series Скачать руководство пользователя страница 54](http://html.mh-extra.com/html/texas-instruments/tms320c6-series/tms320c6-series_user-manual_1094537054.webp)
Watch Some Values and Single-Step Through Code
2-18
Watch some values and single-step through code
Now you know how to update the display without running your entire program;
you can set software breakpoints to obtain information at specific points in your
program. But what if you want to update the display after each statement? No,
you don’t have to set a breakpoint at every statement—you can use
single-step execution.
Set up for the single-step example:
restart
go main
The debugger has another type of window called a WATCH window that’s very
useful in combination with single-step execution. What’s a WATCH window
for? Suppose you are interested in only a few specific register values, not
all
of the registers shown in the CPU window. Or suppose you are interested in
a particular memory location or in the value of some variable. You can observe
these data items in a WATCH window.
Set up the WATCH window before you start the single-step execution.
Open a WATCH window and change to mixed mode:
wa b15, Stack Pointer, x
wa pc,, x
wa *0x6820, Call
wa i
mix
If the WATCH window isn’t wide enough to display the value of the stack point-
er, resize the window.
You may have noticed that the WA (watch add) command has three parame-
ters. The first parameter is the item that you’re watching. The second parame-
ter is an optional label. The third parameter is the format for the data display.
For example, you displayed the contents of the B15 register with the label
Stack Pointer in hexadecimal format. (You specified hexadecimal with an x in
the third parameter.) You also displayed the contents of the PC register without
a label in hexadecimal format. (You specified that you wanted to use the ex-
pression instead of a label by inserting an extra comma.)
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...