pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
YesSets condition code
YesSets $CARRY
NoSets $OVERFLOW
only-if-locked
input
sINT:value
is an INT value. If only-if-locked is greater than or equal to zero, the page will always
be locked. If only-if-locked is less than zero, the page will be locked (that is, lock
count will be incremented) only if it is already locked.
lock-count
input
sINT:value
is the total number of bytes to lock in the page.
virtaddr
input
EXTADDR:value
is the beginning virtual address to lock. $LOCKPAGE calculates the page associated with
virtaddr.
Example 277 $LOCKPAGE Routine
INT only_if_locked;
INT lock_count;
EXTADDR virtaddr;
$LOCKPAGE(only_if_locked, lock_count, virtaddr);
$MAX
$MAX returns the maximum of two signed values.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
expression
is a signed INT, INT(32), FIXED(fpoint ), REAL, or REAL(64) expression. Both expressions
must be of the same data type.
326 Built-In Routines