
Using the DSK Assembler Directives
6-2
6.1
Using the DSK Assembler Directives
Table 6–1 summarizes the assembler directives. Note that all source state-
ments that contain a directive may have a label and a comment. To improve
readability, they are not shown as part of the directive syntax.
Table 6–1. Assembler Directives Summary
(a) Directives that define sections
Mnemonic and Syntax
Description
Page
.data
Assemble source code into data memory
6-18
.sect ”
section name”
Assemble source code into a named (initialized) sec-
tion
6-27
.text
Assemble source code into program memory
6-32
(b) Directives that initialize constants (data and memory)
Mnemonic and Syntax
Description
Page
.byte
value
1
[,...,
value
n
]
Initialize one or more 8-bit integers
6-16
.fill
size in words
Reserve
size words in the current section; note that
a label points to the beginning of the reserved space
6-29
.float
expression
Initialize a 32-bit TMS320C3x floating-point constant
6-21
.float16
expression
Initialize a 16-bit TMS320C3x floating-point constant
6-21
.float8
expression
Initialize an 8-bit TMS320C3x floating-point constant
6-21
.ieee
expression
Initialize one or more 32-bit, IEEE single-precision,
floating-point constants
6-22
.int
value
1
[,...,
value
n
]
Initialize one or more 16-bit integers
6-16
.long
value
1
[, ... ,
value
n
]
Initialize one or more 32-bit integers
6-16
.pfloat16
Initialize 16-bit TMS320C3x floating-point constants
into a single word
6-21
.pfloat8
Initialize 8-bit TMS320C3x floating-point constants
into a single word
6-21
.q
xx value
1
[,...,
value
n
]
Initialize a 16-bit, signed 2s-complement integer,
whose decimal point is displaced
xx places from the
LSB
6-25
.space
size in words
Reserve
size words in the current section; note that
a label points to the beginning of the reserved space
6-29
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...