TAL Reference Manual

Privileged Procedures
TAL Reference Manual526371-001
15-3
System Global Pointer Declaration
System Global Pointer Declaration
The system global pointer declaration associates an identifier with a memory location
at which you store the address of a variable located in the system global data area.
type
is any data type except UNSIGNED and specifies the data type of the value to
which the pointer points.
.SG
is the system global indirection symbol and denotes 16-bit addressing in the
system global data area.
identifier
is the identifier of the pointer.
preset-address
is the address of a variable in the system global data area. The address is
determined by you or the system during system generation.
Usage Consideration
The compiler allocates one word of primary storage for the pointer in the current user
data segment. The primary storage can be global, local, or sublocal, depending on the
level at which you declare the pointer.
Example of System Global Pointer Declaration
The following example declares an INT system global pointer named NEWNAME:
INT .SG newname;
VST1501.vsd
:=
.SGtype
identifier
preset-
address
;
,