Table of Contents


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


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.


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