pTAL Reference Manual (H06.08+)

Built-In Routines
HP pTAL Reference Manual523746-006
15-14
Address-Conversion Routines
Address-Conversion Routines
An address-conversion routine converts one address type to another address type.
The pTAL privileged routine $AXADR on page 15-26, 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 15-4. Built-In Address-Conversion Routines
Routine Converts ... To ...
$BADDR_TO_EXTADDR
BADDR address EXTADDR address
$BADDR_TO_WADDR
BADDR address WADDR address
$EXTADDR_TO_BADDR
EXTADDR address BADDR address
$EXTADDR_TO_WADDR
EXTADDR address WADDR address
$PROCADDR
INT(32) value PROCADDR address
$SGBADDR_TO_EXTADDR
SGBADDR or SGXBADDR
address
EXTADDR address
$SGBADDR_TO_SGWADDR
SGBADDR or SGXBADDR
address
SGWADDR address
$SGWADDR_TO_EXTADDR
SGWADDR or SGXWADDR
address
EXTADDR address
$SGWADDR_TO_SGBADDR
SGWADDR or SGXWADDR
address
SGBADDR address
$WADDR_TO_BADDR
WADDR address BADDR address
$WADDR_TO_EXTADDR
WADDR address EXTADDR address
$XADR
Standard address EXTADDR address
Table 15-5. Built-In Character-Test Routines
Routine Tests for ...
$ALPHA
Alphabetic character
$NUMERIC
Numeric character
$SPECIAL
Special (ASCII nonalphanumeric) character (see Table 2-1 on page 2-2)