pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-22
$ABS
$ABS
$ABS returns the absolute value of its argument. The returned value has the same
data type as the argument.
$TRIGGER
1,2,4
Replaces $FREEZE and $HALT,
which are available only for code
generated for the TNS/R architecture
$TYPE
Returns an INT value that represents
the data type of a variable
$UDBL
Converts an unsigned INT value to an
INT(32) value
$UDIVREM16
Divides an INT(32) dividend by an INT
divisor to produce an INT quotient and
INT remainder
$OVERFLOW
$UDIVREM32
Divides an INT(32) dividend by an INT
divisor to produce an INT(32) quotient
and INT remainder
$OVERFLOW
$UNLOCKPAGE
1,2,3
Unlocks one page of memory Condition code
$WADDR_TO_BADDR
Converts a WADDR address to a
BADDR address
$WADDR_TO_EXTADDR
Converts a WADDR address to an
EXTADDR address
$WRITEPTE
1,2,3
Writes a segment-page table entry $CARRY
$XADR
Converts a standard address to an
EXTADDR address
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW Yes
Table 15-13. Built-In Routines for Nonatomic Operations (page 6 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.
expression
( )
VST072.vsd
$ABS










