TAL Reference Manual

Structures
TAL Reference Manual526371-001
8-15
Example of Simple Pointer Declarations
Before you reference a pointer declared in a structure, be sure to assign an address to
it by using an assignment statement, as described in Section 8, “Using Structures,” in
the
TAL Programmer’s Guide.
Example of Simple Pointer Declarations
This example shows simple pointer declarations within a structure:
STRUCT my_struct;
BEGIN
FIXED .std_pointer; !Standard simple pointer
STRING .EXT ext_pointer; !Extended simple pointer
END;
Structure Pointers Declared in Structures
A structure simple pointer is a variable that contains the address of a structure. When
you declare a structure pointer inside a structure, the form is:
STRING
is the STRING attribute.
INT
is the INT attribute
Standard Any except STRING 16-bit word address in the user data
segment.
Extended STRING 32-bit byte address, normally in the
automatic extended data segment.
Extended Any except STRING 32-bit even-byte address, normally in
the automatic extended data segment.
(If you specify an odd-byte address,
results are undefined.)
Table 8-4. Addresses in Simple Pointers
Addressing
Mode Data Type Kind of Addresses
VST0810.vsd
identifier
.
. EXT
,
STRING
INT
;
)
(
referral