|
CopyMemory | ||
CopyMemory SrcAddress, DestAddress, Size | ||
Parameters: SrcAddress = The source address we'll copy from DestAddress = The destination address we'll copy the data to Size = The number of bytes to copy |
||
Returns: NONE | ||
CopyMemory will copy a section of memory from one location to another. FACTS: * CopyMemory is dealing with raw memory, as such, PB can not protect you from making mistakes. Thus CopyMemory assumes the memory addresses you give it are valid, if not, you should expect the program to crash ! * CopyMemory does not support copying overlapping address areas. * CopyMemory is the fastest way to duplicate blocks of memory in PlayBASIC. Mini Tutorial: This example fills a bank with some values, then copies this to second bank via CopyMemory.
This example would output.
|
Related Info: | FillMemory | GetArrayPtr | PeekByte | PeekFloat | PeekInt | PeekString | PeekWord | PokeByte | PokeFloat | PokeInt | PokeString | PokeWord : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |