04-02-2019, 09:27 PM
Just one thing: by default ZX BASIC does not crash by "out of memory" unless you're using the flag --debug-memory (use it only during testing phase before final release, to check for memory leaks o check for out of memory).
When ZX BASIC gets out of memory it silently starts to do weird things, even crash o reset, and not necessarily stop with "Out of Memory".
Are you sure your ASM calls are doing the right thing? (i.e. don't modify the IX register).
Also, you're using strings (SCREEN$, CHR$, STR$) along the program, but has tested them here, and they're all stable.
If you include the library <alloc.bas> you can get the free memory available calling the maxavail() function.
When ZX BASIC gets out of memory it silently starts to do weird things, even crash o reset, and not necessarily stop with "Out of Memory".
Are you sure your ASM calls are doing the right thing? (i.e. don't modify the IX register).
Also, you're using strings (SCREEN$, CHR$, STR$) along the program, but has tested them here, and they're all stable.
If you include the library <alloc.bas> you can get the free memory available calling the maxavail() function.