
.text
Assemble Into .text Section
6-32
Syntax
.text
Description
The .text directive tells the assembler to begin assembling into the .text sec-
tion. The .text section usually contains executable code. The section program
counter (SPC) is set to 0, if nothing has been assembled into the .text section.
If code has already been assembled into the .text section, the SPC is restored
to its previous value in the section.
Note that the assembler assumes that .text is the default section. Therefore,
at the beginning of an assembly, the assembler assembles code into the .text
section unless you specify one of the other sections directives (.data, .entry,
or .sect).
Example
This example shows the assembly of code into the .data and .text sections.
.start
“.text”, 0x809800
.entry
START
START ldi
0, R0
; Initialize R0 and R1
ldi
1, R1
.text
value .int
0, 1, 2, 3, 4, 5
; integer values
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...