After I write data to a memory location, I can read it once and it returns correctly but read it again and the content changes.
The following demonstrates
Code: Select all
*memoryid=AllocateMemory(10)
If Not *memoryid:Debug "Could not allocate memory":End: EndIf
For a=0 To 9
PokeU(*memoryid+a,a)
Debug PeekU(*memoryid+a)
Next
For c=0 To 9
Debug PeekU(*memoryid+c)
Next
What am I doing wrong?
Many thanks in advance