pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Table 61 Built-In Address-Conversion Routines (continued)
To ...Converts ...Routine
BADDR addressEXTADDR address$EXTADDR_TO_BADDR
WADDR addressEXTADDR address$EXTADDR_TO_WADDR
EXTADDR addressEXT64ADDR
1
$EXT64ADDR_TO_EXTADDR
1
EXT64ADDR address
1
EXTADDR$EXTADDR_TO_EXT64ADDR
1
EXT32ADDR address
1
EXT64ADDR
1
$EXT64ADDR_TO_EXT32ADDR
1
EXT32ADDR address
1, 2
EXT64ADDR
1
$EXT64ADDR_TO_EXT32ADDR_OV
1
INT
3
Extended address$IS_32BIT_ADDR
1
PROCADDR addressProcedure address or INT(32)$PROCADDR
PROC32ADDR address
1
Procedure address or INT(32)$PROC32ADDR
1
PROC64ADDR address
1
Procedure address or FIXED$PROC64ADDR
1
EXTADDR addressSGBADDR or SGXBADDR address$SGBADDR_TO_EXTADDR
SGWADDR addressSGBADDR or SGXBADDR address$SGBADDR_TO_SGWADDR
EXTADDR addressSGWADDR or SGXWADDR
address
$SGWADDR_TO_EXTADDR
SGBADDR addressSGWADDR or SGXWADDR
address
$SGWADDR_TO_SGBADDR
BADDR addressWADDR address$WADDR_TO_BADDR
EXTADDR addressWADDR address$WADDR_TO_EXTADDR
EXTADDR address
4
Variable or struct$XADR
EXT32ADDR address
1, 4
Variable or struct$XADR32
1
EXT64ADDR address
1, 4
Variable or struct$XADR64
1
1
64-bit addressing functionality added to the EpTAL compiler starting with SPR T0561H01^AAP. For more information,
see Appendix E, “64-bit Addressing Functionality” (page 531).
2
If the specified address cannot be represented in 32-bits, an overflow trap occurs. This trap cannot be disabled using
the arithmetic trap controls (for example, NO_OVERFLOW_TRAPS, DISABLE_OVERFLOW_TRAPS, etc.)
3
Returns -1 if the specified address can be represented as a 32-bit address otherwise, returns 0.
4
Returns the address of the specified variable or struct in the desired extended address type.
The pTAL privileged routine $AXADR (page 293), supported only by the pTAL compiler, is also an
address-conversion routine.
Character-Test Routines
A character-test routine tests the right byte of an INT value for an alphabetic, numeric, or special
character, returning a true value if the character is there and a false value otherwise.
Table 62 Built-In Character-Test Routines
Tests for ...Routine
Alphabetic character$ALPHA
Numeric character$NUMERIC
Special (ASCII nonalphanumeric) character (see Table 8 (page 36))$SPECIAL
284 Built-In Routines