pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manualβ€”523746-005
15-20
Miscellaneous Routines
$INTR Converts the low-order 16 bits of an
INT, INT(32), or FIXED value to an
INT value
Converts a REAL or REAL(64) value
to a rounded INT value
$OVERFLOW
$LEN
Returns the length, in bytes, of a
variable
$LFIX
Converts an unsigned INT value to a
FIXED(fpoint ) value
$LMAX
Returns the maximum of two unsigned
INT values
$LMIN
Returns the minimum of two unsigned
INT values
$LOCATESPTHDR
2,3
Returns the address of the Segment
Page Table (SPT)
$CARRY
$LOCKPAGE
1,2,3
Locks one page of memory Condition code
$CARRY
$MAX
Returns the maximum of two signed
values
$MIN
Returns the minimum of two signed
values
$MOVEANDCXSUMBYTES
Moves bytes from one memory
location to another and computes a
checksum (bytewise exclusive β€œor”) on
them
$MOVENONDUP
Moves words until it encounters two
adjacent identical words
Condition code
$NUMERIC
Tests for a numeric character
$OCCURS
Returns the number of elements in an
array
$OFFSET
Returns the offset, in bytes, of a
structure item from the beginning of
the structure
$OPTIONAL
Controls whether a given parameter or
parameter pair is passed to a
VARIABLE procedure or
EXTENSIBLE procedure
Table 15-13. Built-In Routines for Nonatomic Operations (page 4 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.