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:
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