TAL Reference Manual
Statements
TAL Reference Manual—526371-001
12-29
Usage Considerations
If count-unit is not BYTES, WORDS, or ELEMENTS, the compiler issues an error. If
you specify BYTES, WORDS, or ELEMENTS for
count-unit, that term cannot also
appear as a DEFINE or LITERAL identifier in the global declarations or in any
procedure or subprocedure in which the move statement appears.
constant
is a numeric constant, a character string constant, or a LITERAL to copy.
If you enclose
constant in brackets ([ ]) and if destination has a byte address or is a
STRING structure pointer, the system copies
constant as a single byte regardless
of the size of
constant. If you do not enclose constant in brackets or if destination
has a word address or is an INT structure pointer, the system copies a word,
doubleword, or quadrupleword as appropriate for the size of
constant.
constant-list
is a list of constants to copy. Specify constant-list in the form shown in Section 3,
Data Representation.
next-addr
is a variable to contain the location in destination that follows the last item copied.
The compiler returns a 16-bit or 32-bit address as described in Usage
Considerations.
&
is the concatenation operator. It lets you move more than one source or constant-
list, each separated by the concatenation operator.
Usage Considerations
The compiler does a standard or extended move (which is slightly less efficient)
depending on the addressing modes of the data involved in the move operation.
The compiler does a standard move and returns a 16-bit
next-addr if:
•
Both source and destination have standard byte addresses
•
Both source and destination have standard word addresses
The compiler does an extended move and returns a 32-bit
next-addr if:
•
Either source or destination has a standard byte address and the other has a
standard word address
•
Either source or destination has an extended address