
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
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...