Section 3: Assembler
259
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
SET — Define / Redefine an Integer Symbol
Syntax
symbol
SET
value
Description
symbol
Specifies a symbol that can be defined elsewhere in the current
file only with the
SET
directive. It must appear in the label field of
the statement.
value
Specifies the value of the symbol. It is an absolute or simple
relocatable expression that cannot contain any forward, external,
or undefined references.
The
SET
directive defines the symbol
symbol
and assigns to it the value
value
.
The symbol is defined with static scope (the
XDEF
directive can be used to
expand its scope to external). If the symbol was previously defined with the
SET
directive, it is redefined with the specified value; its scope is not modified. For
more information, see section
3.3.5.3 Symbol Assignment
.
Examples
COUNT SET 1
COUNT SET COUNT+1
COUNT SET COUNT+1