pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-16
Variable-Characteristic Routines
Variable-Characteristic Routines
Variable-characteristic routines return INT values that represent various characteristics
of variables.
Procedure-Parameter Routines
Miscellaneous Routines
Table 15-10. Built-In Variable-Characteristic Routines
Routine Returns an INT value that is the ...
$BITLENGTH
Length, in bits, of a variable
$BITOFFSET
Offset, in bits, of a structure data item from the address of the zeroth
structure occurrence
$LEN
Length, in bytes, of a variable
$OCCURS
Number of elements in an array
$OFFSET
Offset, in bytes, of a structure item from the beginning of the structure
$TYPE
Data type of a variable
Table 15-11. Built-In Procedure-Parameter Routines
Routine Description
$OPTIONAL
Controls whether a given parameter or parameter pair is passed to a
VARIABLE procedure or EXTENSIBLE procedure
$PARAM
Checks for the presence or absence of an actual parameter in the call that
called the current procedure or subprocedure
Table 15-12. Miscellaneous Built-In Routines (page 1 of 2)
Routine Description
$CHECKSUM
Returns the checksum of data
$COUNTDUPS
Returns the number of duplicate words in a buffer
$EXCHANGE
Exchanges the values of two variables of the same data
type
$FILL8, $FILL16, and $FILL32
Fill an array or structure with repetitions of an 8-bit, 16-bit,
and 32-bit value, respectively
$INTERROGATEHIO
*,**
Stores cause and status information from a high-priority
I/O interrupt
$LOCATESPTHDR
*,**
Returns the address of the Segment Page Table (SPT)
* Only procedures executing in privileged mode can call this routine (see Privileged Mode on page 15-1)
** The EpTAL compiler does not support this routine.










