pTAL Reference Manual (H06.03+)

Equivalenced Variables
HP pTAL Reference Manual523746-005
11-28
Equivalenced Structure Pointer
+
-
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.
Equivalenced Structure Pointer
The equivalenced structure pointer declaration associates a structure pointer with a
location relative to the base address of the system global (.SG) or the extended system
global (SGX) data area.
STRING
is the STRING attribute.
INT
is the INT attribute.
Example 11-17. Equivalenced Simple Pointer Declaration
INT .ptr = 'SG' + 2;
.SGX
identifier
.SG
.EXT
[
+
-
offset
index
]
;
,
STRING
INT
.
( referral ) = 'SG'
VST711.vsd