TAL Reference Manual

Privileged Procedures
TAL Reference Manual526371-001
15-5
Example of 'SG'-Equivalenced Simple Variable
Example of 'SG'-Equivalenced Simple Variable
This example declares a simple variable equivalent to location SG + 15 in the system
global data area:
INT item = 'SG' + 15;
'SG'-Equivalenced Definition Structure
The 'SG'-equivalenced definition structure declaration associates a definition structure
with a location relative to the base address of the system global data area.
. (period)
is the standard indirection symbol and denotes 16-bit addressing, in this case in
the system global data area.
.SG
is the system global indirection symbol and denotes 16-bit addressing in the
system global data area.
.EXT
is the extended indirection symbol and denotes 32-bit addressing.
identifier
is the identifier of a definition structure to be made equivalent to 'SG'.
'SG'
is the symbol that denotes the base address of the system global data area;
identifier is addressed relative to SG[0].
VST1503.vsd
=
[
index
]
+
offset
-
;
identifier
STRUCT
.
.SG
structure-layout
;
.EXT
.SG