pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-67
$MOVENONDUP
$MOVENONDUP
$MOVENONDUP moves words from one location to another until it encounters two
adjacent identical words.
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 16-bit words are moved. When $MOVENONDUP
completes, srcaddr is the address after which $MOVENONDUP read the
last byte it moved.
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.
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










