pTAL Reference Manual (H06.03+)

Structures
HP pTAL Reference Manual523746-005
9-49
Using Simple Pointers
REFALIGNED
specifies the base alignment of the structures that the structure pointer will
reference.
2
references a structure that might not be well-aligned.
8
indicates that the base of the structure and the fields in the structure are well
aligned in memory
Topics:
Using Simple Pointers on page 9-49
Assigning Addresses to Pointers in Structures on page 9-50
Using Simple Pointers
The data type determines the size of data a simple pointer can access at a time.
The addressing mode and data type determine the kind of address the simple pointer
can contain.
Example 9-39. Simple Pointers Within a Structure
STRUCT my_struct;
BEGIN
FIXED .std_pointer; ! Standard simple pointer
STRING .EXT ext_pointer; ! Extended simple pointer
END;
Table 9-6. Data Accessed by Simple Pointers
Data Type Accessed Data
STRING Byte
INT Word
INT(32) Doubleword
REAL Doubleword
REAL(64) Quadrupleword
FIXED Quadrupleword