Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where can I find free memory for data on the spectrum 48k if
#4
I don´t understand what do you mean by "address of the free storage".
ZX Spectrum is a very limited machine, it does not have an storage drive or disk.

If what you´re trying to do is to allocate a free block of memory (in the HEAP, dynamically) and get its address, you can do that with the alloc.bas library:

Code:
#include <alloc.bas>

Dim block As Uinteger
block = malloc(1024) : REM allocates 1k of mem, address in block

POKE block + 3, 5  : REM stores byte 5 at Block + 3
Reply


Messages In This Thread
RE: where can I find free memory for data on the spectrum 48k if - by boriel - 11-13-2024, 11:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)