pTAL Conversion Guide

Pointers
pTAL Conversion Guide527302-002
10-10
Determining Address Types
The names of the data types are derived from “B” for byte, “W” for word, “C” for code,
“SG” and “SGX” from system globals, “PROC” from procedure, and “EXT” from
extended.
Table 10-3. Object Data Types and Their Address Types (page 1 of 2)
Declaration Address Type Object Data Type
Location of
Data
STRING .s; BADDR STRING 64K-word user
data segment
INT .i; WADDR INT
INT(32) .j; WADDR INT(32)
REAL .r; WADDR REAL
REAL(64) .s; WADDR REAL(64)
FIXED .f; WADDR FIXED
UNSIGNED(n) .u; WADDR UNSIGNED
STRUCT .t; WADDR none
SUBSTRUCT .v; BADDR none
address_type *WADDRaddress_type **
STRING .EXT s; EXTADDR STRING Any of a
process’s
data—
especially data
in extended
segments
INT .EXT i; EXTADDR INT
INT(32) .EXT j; EXTADDR INT(32)
REAL .EXT r; EXTADDR REAL
REAL(64) .EXT s; EXTADDR REAL(64)
FIXED .EXT f; EXTADDR FIXED
UNSIGNED(n) .EXT u; EXTADDR UNSIGNED
STRUCT .EXT t; EXTADDR none
SUBSTRUCT .EXT v; EXTADDR none
address_type * EXTADDR address_type **
STRING .SG s; SGBADDR STRING 64K-word
system global
data
INT .SG i; SGWADDR INT
INT(32) .SG j; SGWADDR INT(32)
REAL .SG r; SGWADDR REAL
REAL(64) .SG s; SGWADDR REAL(64)
FIXED .SG f; SGWADDR FIXED
UNSIGNED(n) .SG u; SGWADDR UNSIGNED
address_type * SGWADDR address_type **
* addr-type is any of the ten address types.
** address_type is the same address type as specified in the declaration.