pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-38
$PROCADDR
maxwords input,output
sINT:variable
is the maximum number of 16-bit words to move. When $MOVENONDUP
completes, maxwords is the number of words not moved because
$MOVENONDUP found a duplicate, or, if a duplicate was not found, maxwords is
zero.
lastword input,output
uINT:variable
holds the 16-bit word against which the first word at srcaddr is compared. When
$MOVENONDUP completes, lastword contains the last word moved.
$PROCADDR
$PROCADDR converts an INT(32) expression to a PROCADDR address.
Figure 18-15. TAL Code Equivalent to $MOVEANDCXSUMBYTES Routine
CCODE(STRP 7);
STACK destination, source, maxwords, latestword;
CODE(MNDX);
CODE(STRP 5);
STORE latestword, maxwords, source, destination;
Example 18-26. Call to $MOVENODUP Routine
INT .EXT source;
INT .EXT destination;
INT maxword;
INT latestword;
$MOVENONDUP(@destination, @source, maxword, latestword);
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
$PROCADDR
( identifier )
VST031.vsd