pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-4
TNS Instruction Codes Supported by pTAL Built-In
Routines
Table 18-2. pTAL Built-In Routines That TAL Does Not Support (page 1 of 3)
Routine Name P
1
CC
2
OF
3
C
4
Description
$ASCIITOFIXED
Y Y Converts ASCII digits to a binary
quadrupleword integer
$ATOMIC_ADD
YY YAn atomic operation that adds
two INT values
$ATOMIC_AND
Y An atomic operation that
performs a bitwise logical “and
on two INT values
$ATOMIC_DEP
Y An atomic operation that
performs a bit deposit into an INT
variable
$ATOMIC_GET
An atomic operation that gets
(returns) the value of a 1-, 2-, or
4-byte variable
$ATOMIC_OR
Y An atomic operation that
performs a bitwise logical OR on
two INT values
$ATOMIC_PUT
An atomic operation that puts
(stores) a 1-, 2-, or 4-byte value
into a variable
$CHECKSUM
Performs a 16-bit logical OR on
consecutive words in extended
memory
$COUNTDUPS
Returns the number of duplicate
words at the beginning of an
extended memory buffer
$EXCHANGE
Exchanges the contents of two
variables
$EXECUTEIO
5
Y Y Executes an I/O operation
$FIXEDTOASCII
Y Converts a 64-bit integer to
ASCII digits
$FIXEDTOASCIIRESIDUE
Y Converts a 64-bit integer to
ASCII digits and stores the
residue
1. Y specifies that a process must be privileged to execute this built-in routine.
2. Y specifies that the built-in routine alters the condition code.
3. Y specifies that the built-in routine alters the overflow indicator.
4. Y specifies that the built-in routine alters the carry indicator.
5. The EpTAL compiler does not support this routine.
6. The EpTAL compiler allows the name of this routine as a DEFINE name. $TRIGGER replaces this routine.
7. The pTAL compiler does not support this routine.