pTAL Reference Manual (H06.08+)

Pointers
HP pTAL Reference Manual523746-006
10-8
Address Types
Topics:
BADDR and WADDR on page 10-9
SGBADDR, SGWADDR, SGXBADDR, and SGXWADDR (System Globals) on
page 10-9
PROCADDR (Procedures, Procedure Pointers, and Procedure Entry Points) on
page 10-10
Subprocedures, Subprocedure Entry Points, Labels, and Read-Only Arrays
(CBADDR and CWADDR Address Types) on page 10-10
EXTADDR on page 10-11
STRING .SGX s; SGXBADDR STRING
INT
1
.SGX i; SGXWADDR INT
INT(32) .SGX j; SGXWADDR INT(32
REAL .SGX r; SGXWADDR REAL
REAL(64) .SGX s; SGXWADDR REAL(64)
FIXED .SGX f; SGXWADDR FIXED
UNSIGNED(n) .SGX u; SGXWADDR UNSIGNED
addr-type
1
.SGX a; SGXWADDR address_type
2
PROC p: PROCADDR PROC
PROCPTR p(); END PROCPTR; PROCADDR PROCPTR
Procedure ENTRY e; PROCADDR PROC
STRING v = 'P' := "ab"; CBADDR STRING
INT v = 'P' := "ab"; CWADDR INT
SUBPROC CWADDR SUBPROC
Subprocedure ENTRY e; CWADDR
LABEL l; CWADDR LABEL
Table 10-2. Object Data Types and Their Addresses (page 2 of 2)
Declaration Address Type Object Data Type
1. addr-type is any of the ten address types.
2. address_type is the same address type as specified in the declaration.