164
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
The mnemonics for the asm68 assembler directives, like those for instructions,
are written in either all uppercase or all lowercase characters. As stated earlier,
the mnemonics for asm68 are shown in lowercase characters only to
differentiate them from those for asm68k, which are shown in uppercase
characters.
3.6.1.
Asm68 Section Directives
Section directives can be used to manage both absolute and relocatable sections
with any of the following types: text-type, data-type, or BSS-type. Text-type
sections contain read-only data. Data-type sections contain initialized read/write
data. BSS-type sections contain uninitialized read/write data. Section directives
remain in effect until another section directive is issued.
Section directives can also be used to create structure template sections; these
are special dummy sections that allow the convenient definition of labels suitable
for structure field references. Table 3.17 summarizes the section directives for
asm68. For more information, see section 3.3.4 Sections. See chapter 7. Flash
Application Layout in the TI-89 / TI-92 Plus Developer Guide for information on
the use and initialization of the TI-89 / TI-92 Plus sections.
Directive
Function
.bsection
Begin/resume a given BSS-type section
.bss
Begin/resume the BSS-type section .bss
.data
Begin/resume the data-type section .data
.dsection
Begin/resume a given data-type section
.ends
End a structure template section
.org
Begin an unnamed, absolute, data-type section
.reorg
Reset the location counter in an absolute section
.section
Begin/resume a given data-type section
.struct
Begin a structure template section
.text
Begin/resume the text-type section .text
.tsection
Begin/resume a given text-type section
Table 3.17: Section Directives