Section 3: Assembler
267
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.type / TYPE — Set Type Attribute
Syntax
.type
type
TYPE
type
Description
type
Specifies the type of the current symbol. It is an absolute
expression that cannot contain any forward, external, or undefined
references.
The
.type / TYPE
directive sets the type attribute of the symbol referenced by the
current attribute block (see
.def / DEF
directive). For a discussion of fundamental
and derived types, see section
1.4.8.7 Type Entry
. This directive can appear at
most once per symbol attribute block.
The
.type / TYPE
directive can also be used in conjunction with the
-L
command
line flag to provide type information for symbols. When the
-L
command line flag
is used, this directive does not have to appear within a symbol attribute block; the
type it specifies is associated with the most recently defined label. Function types
can only be attributed to labels defined in text-type sections.
Examples
x:
TYPE $24 ; x is a function that returns an int