
Entering Commands From a Batch File
4-14
Echoing strings in a batch file
When executing a batch file, you can display a string to the COMMAND win-
dow by using the ECHO command. The syntax for the command is:
echo
string
This displays the
string in the display area of the COMMAND window.
For example, you may want to document what is happening during the execu-
tion of a certain batch file. To do this, you could use the following line in your
batch file to indicate that you are creating a new memory map for your device:
echo Creating new memory map
(Notice that the string is not enclosed in quotes.)
When you execute the batch file, the following message appears:
.
.
Creating new memory map
.
.
Note that any leading blanks in your string are removed when the ECHO com-
mand is executed.
Controlling command execution in a batch file
In batch files, you can control the flow of debugger commands. You can
choose to execute debugger commands conditionally or set up a looping situa-
tion by using IF/ELSE/ENDIF or LOOP/ EN DLOOP, respectively.
-
To conditionally execute debugger commands in a batch file, use the
IF/ ELSE/ENDIF commands. The syntax is:
if
Boolean expression
debugger command
debugger command
.
.
[else
debugger command
debugger command
.
.]
endif
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...