pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manualβ€”523746-005
15-65
$MOVEANDCXSUMBYTES
expression
is an INT, INT(32), FIXED(fpoint ), REAL, or REAL(64) expression. Both
expressions must be of the same data type.
$MOVEANDCXSUMBYTES
$MOVEANDCXSUMBYTES moves a specified number of bytes from one memory
location to another and computes a checksum (bytewise exclusive β€œor”) on the bytes
moved.
checksum input,output
uINT:variable
contains an initial value for the checksum. When $MOVEANDCXSUMBYTES
completes, checksum contains the newly computed value.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-58. $MIN Routine
FIXED fixval := -3F;
min := $MIN (fixval, 5F); ! Return -3F
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
$MOVEANDCXSUMBYTES (
checksum
,
),, ;destaddr srcaddr count
VST647.vsd