
Managing Data in Memory
7-9
Managing Data
Saving memory values to a file
ms
Sometimes it’s useful to save a block of memory values to a file. You can use
the MS (memory save) command to do this; the files are saved in COFF for-
mat. The syntax for the MS command is:
ms
address, length, filename
-
The
address parameter identifies the first address in the block.
-
The
length parameter defines the length, in words, of the block. This
parameter can be any C expression.
-
The
filename is a system file. If you don’t supply an extension, the debug-
ger adds an .obj extension.
For example, to save the values in data memory locations 0x0000 – 0x0010
to a file named memsave, you could enter:
ms 0x0,0x10,memsave
To reload memory values that were saved in a file, use the LOAD command.
For example, to reload the values that were stored in memsave, enter:
load memsave.obj
Filling a block of memory
fill
Sometimes it’s useful to be able to fill an entire block of memory at once. You
can do this by using the FILL command. The syntax for this command is:
fill
address, length, data
-
The
address parameter identifies the first address in the block.
-
The
length parameter defines the number of words to fill.
-
The
data parameter is the value that is placed in each word in the block.
For example, to fill memory locations 0x10FF– 0x110D with the value
0xABCD, you would enter:
fill 0x10ff,0xf,0xabcd
If you want to check whether memory has been filled correctly, you can enter:
mem 0x10ff
This changes the MEMORY window display to show the block of memory
beginning at memory address 0x10FF.
Note that the FILL command can also be executed from the Memory pulldown
menu.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...