pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-5
TNS Instruction Codes Supported by pTAL Built-In
Routines
$FREEZE
5,6
Y Asserts a system freeze and
halts the system
$HALT
5,6
Y Halts the processor in which
$HALT executes
$INTERROGATEHIO
5
Y Y Stores status information from a
high-priority I/O interrupt
$INTERROGATEIO
5
Y Y Stores status information from an
I/O interrupt
$LOCATESPTHDR
5
Y Y Stores the address of a segment-
page table header
$LOCKPAGE
5
Y Y Y Locks down one physical page of
extended memory
$MOVEANDCXSUMBYTES
Moves, and accumulates an
eight-bit checksum, on bytes in
extended memory
$MOVENONDUP
Y Moves extended memory words
until it encounters two adjacent,
identical words
$READBASELIMIT
5
Y Stores the 32-bit base and 32-bit
limit of extended memory
$READSPT
5
Y Y Stores one entry from a segment-
page table
$READTIME
Returns the number of
microseconds since the last cold
load
$TRIGGER
7
Y Replaces $FREEZE and $HALT
$UDIVREM16
5
Y Divides an INT(32) dividend by
an INT divisor to produce an INT
quotient and INT remainder
Table 18-2. pTAL Built-In Routines That TAL Does Not Support (page 2 of 3)
Routine Name P
1
CC
2
OF
3
C
4
Description
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.