From Wikibooks, open books for an open world
Jump to navigation Jump to search

BlockMove[edit | edit source]

Statement[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax[edit | edit source]

BlockMove sourceAddr&, destinationAddr&, numberBytes&

Description[edit | edit source]

Copies a range of bytes which begin at address sourceAddr&, to the address range that begins at address destinationAddr&. The numberBytes& parameter specifies the number of bytes which are to be copied. The copying works correctly even if the source and destination ranges overlap.

Example[edit | edit source]

dim src%(79999), dst%(79999)            '80000-element arrays
'Copy one array to the other:
BlockMove @src%(0), @dst%(0), 160000

Notes[edit | edit source]

For copying small amounts of data (80 bytes or less) into a variable, it is more efficient to use the var;length = address syntax of the let statement. See the let statement for more details.

See Also[edit | edit source]

let; varptr

Language Reference