pTAL Conversion Guide

Pointers
pTAL Conversion Guide527302-002
10-11
Determining Address Types
Topics:
Data in the User Data Segment (BADDR and WADDR Address Types) on
page 10-12
Data in System Globals (SGBADDR, SGWADDR, SGXBADDR, and SGXWADDR
Address Types) on page 10-12
Procedures, Procedure Pointers, and Procedure Entry Points (PROCADDR
Address Types) on page 10-13
Subprocedures, Subprocedure Entry Points, Labels, and Read-Only Arrays
(CBADDR and CWADDR Address Types) on page 10-13
Data in Extended Memory (EXTADDR Address Types) on page 10-14
STRING .SGX s; SGXBADDR STRING 64K-word
system global
data
INT .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
address_type * SGXWADDR address_type **
PROC p; PROCADDR PROC PEP table entry
PROCPTR p(); END PROCPTR; PROCADDR PROCPTR
Procedure ENTRY e; PROCADDR PROC
STRING v = ’P’ :=" ab"; CBADDR STRING 64K-word user
code segment
INT v = ’P’ := 12; CWADDR INT
SUBPROC CWADDR SUBPROC
Subprocedure ENTRY e; CWADDR
LABEL 1; CWADDR LABEL
Table 10-3. Object Data Types and Their Address Types (page 2 of 2)
Declaration Address Type Object Data Type
Location of
Data
* addr-type is any of the ten address types.
** address_type is the same address type as specified in the declaration.