![Texas Instruments TMS320C6 Series Скачать руководство пользователя страница 56](http://html.mh-extra.com/html/texas-instruments/tms320c6-series/tms320c6-series_user-manual_1094537056.webp)
Run Code Conditionally
2-20
Run code conditionally
Try executing this loop one more time. Take a look at this code; it’s doing a lot
of work with a variable named i. You may want to check the value of i at specific
points instead of after each statement. To do this, you set software breakpoints
at the statements you’re interested in and then initiate a conditional run.
First, clear out the WATCH window so that you won’t be distracted by any
superfluous data items.
Delete the first three data items from the WATCH window (don’t watch
them anymore):
wd 3
wd 1
wd 1
The variable i was the fourth item added to the WATCH window in the previous
tutorial step, and it should now be the only remaining item in the window.
Set up for the conditional run examples:
1) Set software breakpoints at lines 72 and 74.
2) Reset the program entry point:
restart
3) Run the first part of the program:
go main
Now initiate the conditional run:
run i<10
This causes the debugger to run through the loop as long as the value of i is
less than 10. Each time the debugger encounters the breakpoints in the loop,
it updates the value of i in the WATCH window.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...