Table of Contents

MEMSHIFT

PET VIC-20 C64 C16 Plus/4 C128 X16 M65

Syntax

MEMSHIFT <source_address>, <destination_address>, <length>

The MEMSHIFT command calls a built-in routine that copies length number bytes in memory from source_address to destination_address.

Note

MEMSHIFT uses fast Direct Memory Access (DMA) on the M65.

The routine is overlapping-safe upwards only. Use it if

  • The source and destination ranges don't overlap, or
  • The destination range is higher in memory

For copying overlapping areas downwards, see MEMCPY.

See also