pTAL Conversion Guide

pTAL Conversion Guide527302-002
17-1
17 TAL Standard Routines
This section describes TAL standard routines for which pTAL has either:
Nothing similar (“Deleted” in Table 17-1 on page 17-1)
A built-in routine that has the same name but slightly different behavior (“Changed”
in Table 17-1 on page 17-1)
Note. TAL also supports some pTAL built-in routines that are not based on TAL standard
routines—see Ta bl e 18 -1 on page 18-3.
Table 17-1. Deleted and Changed TAL Standard Routines
Routine In pTAL Description
$AXADR
*,** Changed Converts a standard address or a relative extended address
to an absolute extended address
$BOUNDS
* Deleted Checks the address of an actual parameter passed to a
reference parameter of a system procedure
$CARRY
Changed Indicates whether an arithmetic carry occurred during
certain arithmetic operations or during execution of a SCAN
or RSCAN statement
$COMP
Changed Returns the ones complement of its argument
$DBL
Changed Converts its argument to an INT(32) value
$HIGH
Changed Converts the high-order (leftmost) 16 bits of its argument to
an INT value
$INT
Changed Converts its argument to an INT value
$LADR
Deleted Converts an extended address to a standard address
$LEN
Changed Returns the length, in bytes, of a variable
$OCCURS
Changed Returns the number of elements in an array
$OFFSET
Changed Returns the offset, in bytes, of a structure item from the
beginning of the structure
$OVERFLOW
Changed Indicates whether an overflow occurred during certain
arithmetic operations
$RP
Deleted Returns the current value of the compile-time RP register
$SWITCHES
* Deleted Returns the current setting of the SWITCH register
$USERCODE
Deleted Returns the contents of a specified location
$XADR
Changed Converts a standard address to an EXTADDR address
* Only procedures operating in privileged mode can execute this routine.
** The EpTAL compiler does not support this routine.