Memory_Copy
We have Peek for retrieving memory, Poke for writing memory, but no simple memory copy command
Hi,
I think in addition to traditional single task Peek and Poke it would be nice to have function performing memory copy from address x to addres y.
The syntax could look like:
Memory_Copy(sourceAddress, destinationAddress, lengthInBytes)
The functionality would be similar to this ThinBASIC equivalent:
Sub Memory_Copy(sourceAddress As DWord, destinationAddress As DWord, lengthInBytes As DWord)
String sourceData = Peek$(sourceAddress, lengthInBytes)
Poke$(destinationAddress, sourceData)
End Sub
Thanks,
Petr