pTAL Reference Manual (H06.03+)

Equivalenced Variables
HP pTAL Reference Manual523746-005
11-23
Equivalenced Simple Variable
Equivalenced Simple Variable
An equivalenced simple variable declaration associates a simple variable with a
location that is relative to the 'SG' base address.
type
is any data type except UNSIGNED; specifies the data type of identifier.
identifier
is the identifier of a simple variable to be made equivalent to 'SG'.
'SG'
a symbol that denotes a 16-bit system global address.
index
is an INT constant that specifies the offset of the element in previous-ident to
which the equivalenced pointer or variable refers. Specify index only with direct
variables. index must end on a word boundary.
+
-
is the word or byte offset, relative to the base of previous-ident, where the
equivalenced variable is placed. For example, if a and b are declared:
INT a[0:9];
INT b = a+5
then b is placed at a[5].
offset
an equivalent INT values in the range 0 through 63.
identifier =
type
[
+
-
offset
index
]
;'SG'
,
VST068.vsd