Propeller Manual

Table Of Contents
2: Spin Language Reference – LONGMOVE
LONGMOVE
Command: Copy longs from one region to another in main memory.
((PUB PRI))
LONGMOVE (DestAddress, SrcAddress, Count )
DestAddress is an expression specifying the main memory location to copy the first
long of source to.
SrcAddress is an expression specifying the main memory location of the first long of
source to copy.
Count is an expression indicating the number of longs of the source to copy to the
destination.
Explanation
LONGMOVE is one of three commands (BYTEMOVE, WORDMOVE, and LONGMOVE) used to copy blocks
of main memory from one area to another.
LONGMOVE copies Count longs of main memory
starting from SrcAddress to main memory starting at DestAddress.
Using LONGMOVE
LONGMOVE is a great way to copy large blocks of long-sized memory. For example:
VAR
long Buff1[100]
long Buff2[100]
PUB Main
longmove(@Buff2, @Buff1, 100) 'Copy Buff1 to Buff2
The first line of the Main method, above, copies the entire 100-long (400-byte) Buff1 array to
the
Buff2 array. LONGMOVE is faster at this task than a dedicated REPEAT loop is.
Propeller Manual v1.1 · Page 135