pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-37
$MOVENONDUP
$MOVENONDUP
$MOVENONDUP moves 16-bit words from one location in extended memory to
another until $MOVENONDUP encounters two consecutive words with the same
value.
destaddr input,output
EXTADDR:variable
is the address to which words are moved. When $MOVENONDUP completes,
destaddr is the address after which $MOVENONDUP stored the last byte.
srcaddr input,output
EXTADDR:variable
is the address from which words are moved. When $MOVENONDUP completes,
srcaddr is the address after which $MOVENONDUP read the last byte it moved.
Example 18-25. Call to $MOVEANDCXSUMBYTES Routine
INT checksum;
INT .EXT source;
INT .EXT dest;
INT(32) count;
checksum := 0;
$MOVEANDCXSUMBYTES(checksum, @dest, @source, count);
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code Yes
Sets $CARRY No
Sets $OVERFLOW No
$MOVENONDUP (
destaddr
,
,
) ;maxwords
VST648.vsd
,
srcaddr
lastword