Section 3: Assembler
269
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.word — Generate Integer Data (Word)
Syntax
.word
operand
[,
operand
] . . .
Description
operand
Specifies an integer expression.
The
.word
directive generates word integer data. The values of the specified
operands are placed in successive words beginning at the current location in the
current section. A warning is issued if the alignment is odd. For additional
information, refer to section
3.3.6.2 Character Constants
.
Examples
.word 'ab' ; 6162
.word %1111111111,01777,1023 ; 03FF 03FF 03FF
.word 1024*16 ; 4000
Each of the above examples is shown with the sequence of words (in
hexadecimal) that it generates.
XDEF — Declare External a Defined Symbol
Syntax
XDEF
symbol
[,
symbol
] . . .
Description
symbol
Specifies a symbol that is defined in the current file. Section
names and floating-point symbols are not allowed.
The
XDEF
directive declares the scope of the symbol
symbol
to be external. This
is necessary when the symbol is referenced in other source files (since the
default symbol scope is static).
Examples
XDEF init
XDEF proc1,diag_list