pTAL Reference Manual (H06.03+)
Built-In Routines
HP pTAL Reference Manual—523746-005
15-18
Miscellaneous Routines
$CARRY Indicates whether an arithmetic carry
occurred during certain arithmetic
operations or during execution of a
SCAN or RSCAN statement
$CHECKSUM
Returns the checksum of data
$COMP
Returns the one’s complement of its
argument
$COUNTDUPS
Returns the number of duplicate
words in a buffer
$DBL
Converts its argument to an INT(32)
value
$OVERFLOW
$DBLL
Converts two INT values to an INT(32)
value
$DBLR
Converts its argument to a rounded
INT(32) value
$DFIX
Converts an INT(32) value to a
FIXED(fpoint ) value
$OVERFLOW
$EFLT
Converts its argument to a REAL(64)
value
$EFLTR
Converts its argument to a rounded
REAL(64) value
$EXCHANGE
Exchanges the values of two variables
of the same data type
$EXECUTEIO
1,2,3
Executes an I/O operation Condition code
$EXTADDR_TO_BADDR
Converts a EXTADDR address to a
BADDR address
$EXTADDR_TO_WADDR
Converts a EXTADDR address to a
WADDR address
$FILL8, $FILL16, and $FILL32
Fill an array or structure with
repetitions of an 8-bit, 16-bit, and 32-
bit value, respectively
$FIX
Converts its argument to a FIXED
value
$FIXD
Converts a FIXED value to an INT(32)
value
$OVERFLOW
Table 15-13. Built-In Routines for Nonatomic Operations (page 2 of 6)
Routine Description Can Set ...
1. pTAL privileged procedure (see Privileged Mode on page 15-1)
2. Only procedures operating in privileged mode can execute this routine (see Privileged Mode
on page 15-1).
3. The EpTAL compiler does not support this routine.
4. The pTAL compiler does not support this routine.










