pTAL Reference Manual (H06.08+)

Equivalenced Variables
HP pTAL Reference Manual523746-006
11-24
Equivalenced Definition Structure
Equivalenced Definition Structure
An equivalenced definition structure declaration associates a definition structure with a
location relative to a system global ('SG') or extended system global ('SGX') base
address.
.EXT
.SG
.SGX
are indirection symbols (see Table 2-7 on page 2-7).
identifier
is the identifier of a definition structure to be made equivalent to 'SG'.
'SG'
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.
Example 11-14. Equivalenced Simple Variable Declaration
INT item = 'SG' + 15;
STRUCT
identifier
=
[
+
-
offset
index
]
;
structure-layout
'SG'
;
VST710.vsd
.EXT
.SG
.SGX