Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Command: Copy words from one region to another in main memory.

((PUBPRI))
    WORDMOVE (DestAddress, SrcAddress, Count )

...

Code Block
VAR
  word Buff1[100]
  word Buff2[100]

PUB Main
  wordmove(@Buff2, @Buff1, 100)  'Copy Buff1 to Buff2 

The first line of the Main method, above, copies the entire 100-word (200-byte) Buff1 array to the Buff2 array. WORDMOVE is faster at this task than a dedicated REPEAT loop.

Excerpt
hiddentrue

Copy words from one region to another in main memory.