268
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.val / VAL — Set Value Attribute
Syntax
.val
value
VAL
value
Description
value
Specifies the value of the current symbol. It is an absolute or
simple relocatable expression.
The .val / VAL directive sets the value attribute of the symbol referenced by the
current attribute block (see .def / DEF directive). The meaning of the value
attribute is dependent upon the selected storage class (see section
1.4.8.4 Symbol Value Field). This directive can appear at most once per symbol
attribute block.
The .val / VAL directive is typically used only for C source-level debugging; it is
ignored when assembler source-level debugging information is generated with
the
-L
command line flag (see also .type / TYPE directive).
Example
DEF x
VAL x
; x is a variable
its value is its location
SCL 2
TYPE 4
ENDEF