pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
destination
the identifier, with or without an index, of the variable to which the copy operation begins. It
can be a simple variable, array, simple pointer, structure, structure data item, or structure
pointer, but not a read-only array.
=':='
specifies a left-to-right sequential move. It starts copying data from the leftmost item in source.
='=:'
specifies a right-to-left sequential move. It starts copying data from the rightmost item in source.
source
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:
Units CopiedData TypeSource Variable
Bytes
Words
STRING
INT
Simple variable, array, simple
pointer (including structure item)
Doublewords
Quadruplewords
INT(32) or REAL
FIXED or REAL(64)
WordsNot applicableStructure
BytesNot applicableSubstructure
Bytes
Words
STRING
INT
Structure pointer
count-unit
is the value BYTES, WORDS, or ELEMENTS. count-unit changes the meaning of count
from that described previously to the following:
Copies count bytes. If both source and destination have word addresses,
BYTES generates a word move for (count + 1) / 2 words.
BYTES
Copies count words. (WORDS is 16 bits)WORDS
Move 219