pTAL Reference Manual (H06.03+)

Statements
HP pTAL Reference Manual523746-005
12-29
Move
count
is an unsigned INT arithmetic expression that defines the number of units in
source to copy. If you omit count-unit, the units copied (depending on the
nature of the source variable) are:
count-unit
is the value BYTES, WORDS, or ELEMENTS. count-unit changes the meaning
of count from that described previously to the following:
Source Variable Data Type Units Copied
Simple variable, array, simple pointer
(including structure item)
STRING
INT
INT(32) or REAL
FIXED or REAL(64)
Bytes
Words
Doublewords
Quadruplewords
Structure Not applicable Words
Substructure Not applicable Bytes
Structure pointer STRING
INT
Bytes
Words
BYTES Copies count bytes. If both source and destination have
word addresses, BYTES generates a word move for
(count + 1) / 2 words.
WORDS Copies count words. (WORDS is 16 bits)
ELEMENTS Copies count elements as follows (depending on the nature of
the source variable):
Source Variable Data Type Units Copied
Simple variable
Array
Simple pointer
(including structure
item)
STRING
INT
INT(32) or REAL
FIXED or REAL(64)
Bytes
Words
Doublewords
Quadruplewords
Structure Not applicable Structure occurrences
Substructure Not applicable Substructure
occurrences
Structure Pointer
(STRING and INT
have meaning only
in group
comparison
expressions and
move statements.)
STRING
INT
Structure occurrences