
Entering Commands From a Batch File
4-15
Entering and Using Commands
The debugger includes some predefined constants for use with IF. These
constants evaluate to 0 (false) or 1 (true). Table 4–1 shows the constants
and their corresponding tools.
Table 4–1. Predefined Constants for Use With Conditional Commands
Constant
Debugger Tool
$$SIM$$
Simulator
If the Boolean expression evaluates to true (1), the debugger executes all
commands between the IF and ELSE or ENDIF. Note that the ELSE por-
tion of the command is optional. (See Chapter 12,
Basic Information About
C Expressions, for more information.)
-
To set up a looping situation to execute debugger commands in a batch
file, use the LOOP/ENDLOOP commands. The syntax is:
loop
expression
debugger command
debugger command
.
.
endloop
These looping commands evaluate using the same method as the run
conditional command expression. (See Chapter 12,
Basic Information
About C Expressions, for more information.)
J
If you use an
expression that is not Boolean, the debugger evaluates
the expression as a loop count. For example, if you wanted to execute
a sequence of debugger commands ten times, you would use the fol-
lowing:
loop 10
step
.
.
.
endloop
The debugger treats the 10 as a counter and executes the debugger
commands ten times.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...