pTAL Conversion Guide

pTAL Conversion Guide527302-002
4-1
4 Data Representation
This section describes the differences in pTAL and TAL data representation, which
affect:
Data types (see Table 4-1 on page 4-1)
Constant Lists on page 4-2
FIXED Variables on page 4-5
Data in System Global Variables on page 4-7
Both pTAL and TAL provide these data type aliases:
Table 4-1. TAL and pTAL Data Types
Data Type
Description
TAL pTAL
STRING 8-bit integer byte Same
INT, INT(16) 16-bit integer word Same
INT(32) 32-bit integer doubleword Same
FIXED(0), INT(64) 64-bit integer quadrupleword Same
FIXED(-19 to -1) Fixed-point quadrupleword Same
FIXED(1 to 19) Fixed-point quadrupleword Same
REAL, REAL(32) 32-bit floating-point doubleword Same
REAL(64) 64-bit floating-point quadrupleword Same
UNSIGNED(
n) n-bit field, where 1 <= n <= 31 Same
BADDR 16-bit byte address 32-bit byte address
WADDR 16-bit 2-byte address 32-bit 2-byte address
CBADDR 16-bit byte code word address 32-bit byte code word address
CWADDR 16-bit 2-byte code word address 32-bit 2-byte code word address
SGBADDR 16-bit SG-relative byte address Same
SGWADDR 16-bit SG-relative 2-byte address Same
SGXBADDR 16-bit SG-relative byte address 32-bit SG-relative 2-byte address
SGXWADDR 16-bit SG-relative 2-byte address 32-bit SG-relative 2-byte address
EXTADDR 32-bit byte address Same
PROCADDR 16-bit PEP-entry address 32-bit code byte address
Data Type Alias
INT INT(16)
FIXED INT(64)
REAL REAL(32)