198
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.section — Begin / Resume a Data-type Section
Syntax
.section
name [, address]
Description
name
Specifies the section. It is a symbol whose name can be up to
eight characters in length. The first character of the name can be
a period ( . ).
address
Specifies the base or continuation address of the section. It is an
absolute
expression that cannot contain any forward, external, or
undefined references.
The .section directive begins a data-type section with name
name. If address is
specified, the section is absolute and begins at that address; otherwise, the
section is relocatable.
If the specified section already exists, it is resumed either at its current location
(i.e., the value of its location counter) or at the specified address
address. An
absolute section can be restarted at any address beyond its current location; any
space that is created is filled with the current fill value (see .opt fillval).
Relocatable sections cannot be resumed with an address specification.
This directive is a synonym for the .dsection directive.
Examples
.section table
; relocatable
.section ram, 0x8000
; absolute