TAL Reference Manual
Statements
TAL Reference Manual—526371-001
12-28
MOVE Statement
source
is the identifier, with or without an index, of the variable from which the copy
operation begins. It can be a simple variable, array, read-only array, simple pointer,
structure, structure data item, or structure pointer.
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 above 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
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 *
INT *
Structure occurrences
Structure occurrences
* For structure pointers, STRING and INT have meaning only in group comparison
expressions and move statements.