TAL Reference Manual

Equivalenced Variables
TAL Reference Manual526371-001
10-2
Equivalenced Simple Variable
Equivalenced Simple Variable
An equivalenced simple variable declaration associates a new simple variable with a
previously declared variable.
type
is any data type except UNSIGNED.
identifier
is the identifier of a simple variable to be made equivalent to previous-identifier.
previous-identifier
is the identifier of a previously declared simple variable, array, simple pointer,
structure, structure pointer, or equivalenced variable.
index
is an INT constant that specifies an element offset from previous-identifier, which
must be a direct variable. The data type of
previous-identifier dictates the element
size. The location represented by
index must begin on a word boundary.
offset
is an INT constant that specifies a word offset from previous-identifier, which can
be a direct or indirect variable. If
previous-identifier is indirect, the offset is from the
location of the pointer, not from the location of the data pointed to.
Usage Consideration
Avoid equivalencing a simple variable to an indirect array or structure. If you do so, the
simple variable is made equivalent to the location of the implicit pointer, not the location
of the data pointed to.
VST1001.vsd
=
[
index
]
+
offset
-
;
,
previous-identifier
identifiertype