TAL Reference Manual
Standard Functions
TAL Reference Manual—526371-001
14-46
Built-in Functions
$SGWADDR_TO_SGBADDR Converts an SGWADDR address to an SGBADDR
address
$SGBADDR_TO_SGWADDR Converts an SGBADDR address to an SGWADDR
address
$BADDR_TO_EXTADDR Converts a BADDR address to an EXTADDR address
$WADDR_TO_EXTADDR Converts a WADDR address to an EXTADDR address
$SGBADDR_TO_EXTADDR Converts an SGBADDR address to an EXTADDR
address
$SGWADDR_TO_EXTADDR Converts an SGWADDR address to an EXTADDR
address
$UDIVREM16 Divides an INT(32) dividend by an INT divisor to
produce an INT quotient and INT remainder
$UDIVREM32 Divides an INT(32) dividend by an INT divisor to
produce an INT(32) quotient and INT remainder
$STACK_ALLOCATE Allocates space beyond the stack area of the current
procedure
$IS_CALLER_PRIV Returns true if its callers caller is priviliged else false
i.e. if A calls B and B calls IS_CALLER_PRIV the
function returns true if A is priviliged
$FILL8 Fills an array or structure with repetitions of an 8-bit
value
$FILL16 Fills an array or structure with repetitions of an 16-bit
value
$FILL32 Fills an array or structure with repetitions of an 32-bit
value
$ATOMIC_ADD Increments a variable by a specified value
$ATOMIC_AND Performs a logical “and” operation (bitwise “and”—
LAND) on a variable and a mask and stores the result
back into the variable
$ATOMIC_OR Performs a logical “or” operation (bitwise “or”—LOR)
on a variable and a mask and stores the result back
into the variable
$ATOMIC_DEP Performs an atomic bit deposit into an INT variable
$ATOMIC_GET Fetches atomically the value of a 1-, 2-, or 4-byte
variable
$ATOMIC_PUT Stores atomically a 1-, 2-, or 4-byte value into a
variable
$ASCIITOFIXED Converts ASCII digits to a binary quadrupleword
integer
Table 14-4. pTAL built-ins (page 2 of 3)
Built - in Description