Skip to content

title: "MemCpyFast" description: TRSE built-in method (from IDE help)


MemCpyFast

Systems: MOS6502, Z80, Z180, PX86
Parameters: a,b,a,b


MemCpyFast( [address1 source], [byte1 offset], [address2 destination], [byte2 total] );

  • [address1 source] - Source address to copy from
  • [byte1 offset] - offset to start copying from
  • [address2 destination] - destination address to copy to
  • [byte2 total] - number of bytes to copy

Description

memcpyfast - the same as memcpy, but a bit faster however you can only copy up to 127 bytes.

Copies 0-127 (parameter 4) bytes of memory from source address (parameter 1 + parameter 2) to destination address (parameter 3).

Example

// copies 40 bytes of data from my_data to the first row of the screen (bank 0) MemCpy(my_data, 0, ^$0400,40);