pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Table 67 Built-In Variable-Characteristic Routines (continued)
Returns an INT value that is the ...Routine
Offset, in bytes, of a structure item from the beginning of the structure$OFFSET
Data type of a variable$TYPE
Procedure-Parameter Routines
Table 68 Built-In Procedure-Parameter Routines
DescriptionRoutine
Controls whether a given parameter or parameter pair is passed to a VARIABLE
procedure or EXTENSIBLE procedure
$OPTIONAL
Checks for the presence or absence of an actual parameter in the call that called
the current procedure or subprocedure
$PARAM
Miscellaneous Routines
Table 69 Miscellaneous Built-In Routines
DescriptionRoutine
Returns the checksum of data$CHECKSUM
Returns the number of duplicate words in a buffer$COUNTDUPS
Exchanges the values of two variables of the same data type$EXCHANGE
Fill an array or structure with repetitions of an 8-bit, 16-bit, and 32-bit value,
respectively
$FILL8, $FILL16, and $FILL32
Stores cause and status information from a high-priority I/O interrupt$INTERROGATEHIO*,**
Returns the address of the Segment Page Table (SPT)$LOCATESPTHDR*,**
Moves bytes from one memory location to another and computes a checksum
(bytewise exclusive “or”) on them
Declaring Arrays in Structures
Moves words until it encounters two adjacent identical words$MOVENONDUP
Returns the current setting of the system clock$READCLOCK
Returns (copies) an entry from the Segment Page Table (SPT)$READSPT*,**
Returns the number of microseconds since the last cold load$READTIME
Allocates a block of memory on the stack and returns the address of the block$STACK_ALLOCATE
* Only procedures executing in privileged mode can call this routine (see Privileged Mode (page 274))
** The EpTAL compiler does not support this routine
Table 70 Built-In Routines for Nonatomic Operations
Can Set ...DescriptionRoutine
$OVERFLOWReturns the absolute value of its
argument
$ABS
Tests for an alphabetic character$ALPHA
Converts an ASCII value to a FIXED
value
$ASCIITOFIXED Condition code
$OVERFLOW
286 Built-In Routines