Posts: 30
Threads: 9
Joined: Nov 2024
Reputation:
0
hello, good day.
where can I find free memory for data on the spectrum 48k if
I have made a program with zxbasic?
I want to move data with memcopy.
thanks.
best regards
Posts: 1,812
Threads: 56
Joined: Aug 2019
Reputation:
25
I'm not sure I did understand.
What are you trying to do?
You can declare DATA (READ, DATA, RESTORE are supported).
You can use alloc.bas library to allocate memory from the heap. And also configure the heap-size with compiling with --heap-size=NNNN being NNNN the size in bytes (the default is a bit more than 4Kb).
It is not recommended to shrink the HEAP below 1K.
Posts: 30
Threads: 9
Joined: Nov 2024
Reputation:
0
hello, thanks for the info.
where is the address of the free storage please?
greetings