PICO-8 Wiki
Advertisement
memcpy( destaddr, sourceaddr, len )
Copies a region of memory to another location in memory.
destaddr
The address of the first byte of the destination.

sourceaddr
The address of the first byte of the memory to copy.

len
The length of the memory region to copy, as a number of bytes.

The memcpy() function quickly copies one region of addressable memory to another. The origin region and the destination region may overlap.

See Memory for information about the memory layout.

Examples[]

memcpy(0x5e00, 0x4300, 128)

See also[]

Advertisement