pTAL Reference Manual (H06.08+)
Equivalenced Variables
HP pTAL Reference Manual—523746-006
11-25
Equivalenced Referral Structure
+
-
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.
structure-layout
a BEGIN-END block that contains declarations for structure items.
Equivalenced Referral Structure
The equivalenced referral structure declaration associates a referral structure with a
location relative to the base address of the system global ('SG') or the extended
system global ('SGX') data area.
Example 11-15. Equivalenced Definition Structure Declaration
STRUCT def_struct = 'SG'[10];
BEGIN
STRING out;
FIXED up;
REAL in;
END;
STRUCT
.SGX
identifier
=
[
+
-
offset
index
]
;
'SG'
.SG
.EXT
( )
referral
VST703.vsd










