|
CompareMemory | ||
Result = CompareMemory(SrcAddress, DestAddress, NumberOfBytes) | ||
Parameters: SrcAddress = The Starting address in memory to compare DestAddress = The destination address to compare NumberOfBytes = The Number of bytes to compare |
||
Returns: Result = The if the two chunks of memory are the same then the function will return a True(1), it not, it'll return false(0) |
||
The CompareMemory function compares if two sections of the memory are the same or not. FACTS: * CompareMemory is dealing with raw memory, as such, PB can not protect you from making mistakes. Thus CompareMemory assumes the memory addresses you give it are valid, if not, you should expect your program to crash ! * CompareMemory is the fastest way of comparing runs of bytes in PlayBASIC. Mini Tutorial: This sample creates two banks of memory, fills one bank then copies that data to the second bank then uses CompareMemory to validate it.
This example should output.
|
Related Info: | CopyMemory | FillMemory | FindMemoryRunLength | PeekByte | PokeByte : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |