pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-17
Miscellaneous Routines
$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
$READCLOCK
Returns the current setting of the system clock
$READSPT
*,**
Returns (copies) an entry from the Segment Page Table
(SPT)
$READTIME
Returns the number of microseconds since the last cold
load
$STACK_ALLOCATE
Allocates a block of memory on the stack and returns the
address of the block
Table 15-13. Built-In Routines for Nonatomic Operations (page 1 of 6)
Routine Description Can Set ...
$ABS
Returns the absolute value of its
argument
$OVERFLOW
$ALPHA
Tests for an alphabetic character
$ASCIITOFIXED
Converts an ASCII value to a FIXED
value
Condition code
$OVERFLOW
$AXADR
1,2,3
Converts a standard address or a
relative extended address to an
absolute extended address
$BADDR_TO_EXTADDR
Converts a BADDR address to an
EXTADDR address
Condition code
$BADDR_TO_WADDR
Converts a BADDR address to a
WADDR address
Condition code
$BITLENGTH
Returns the length, in bits, of a
variable
$BITOFFSET
Returns the offset, in bits, of a
structure data item from the address
of the zeroth structure occurrence
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.
Table 15-12. Miscellaneous Built-In Routines (page 2 of 2)
Routine Description
* 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.










