I wrote a jack code where I tried to access (using Memory.poke() function) a memory location 1024 for writing but when I ran the compiled VM code on the VM Emulator. This poke() function gave an error saying:
A built-in function tried to access the memory outside the Heap or Screen range.
Is this error due to my writing on some read-only memory?
How can I remove this error?
The code if needed is also attached.snakegame.zip