
Reserve Space
.space, .fill
6-29
Assembler Directives
Syntax
.space
size in words
.fill
size in words, value
Description
Two directives reserve space in the current section.
-
The .space directive reserves
size number of words in the current section
and fills them with 0s. The SPC is incremented to point to the word follow-
ing the reserved space.
-
The .fill directive reserves
size number of words in the current section and
fills them with
value. The value must be an absolute value. The SPC is in-
cremented to point to the word following the reserved space.
When you use a label with the .space or .fill directive, it points to the
first word
reserved.
Example
This example shows how the .space and .fill directives reserve memory.
.space 12 ; Fill 12 locations with the value 0x0
.fill 3,0x5555 ; Fill three words with 0x5555
.start ”Mysect”,0x809800 ; Initialize start of Mysect
.sect ”Mysect” ;
.text
.data
Содержание TMS320C3 Series
Страница 1: ...TMS320C3x DSP Starter Kit User s Guide...
Страница 18: ...1 4...
Страница 28: ...2 10...
Страница 82: ...5 18...
Страница 140: ...Communications Kernel Source Code A 12...
Страница 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 146: ...Schematics B 6...
Страница 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 148: ...Schematics B 8...
Страница 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 150: ...Schematics B 10...
Страница 154: ...B 14...
Страница 160: ...C 6...
Страница 166: ...Index 6...