XavSnap wrote: ↑
Sat Apr 18, 2020 1:14 am
In this point, don't store your values in integer format (DIM TABLE(x,y)), but in chars values to preserve memory !
1 DIM T$(10,2)
; 10 values, and 2 chars by value
10 LET X=CODE T$(1,1)
20 LET Y=CODE T$(1,2)
Use CHR$(x) or CHR$(y) to set the value !
In integer format, each value take 6 bytes…
In character format, only 1 byte per value.
yes,,sadly ZX81 can´t define variables as integers,, I miss something like LET A%...
sadly 2 MCODER is not able to mange strings like basic.. I could use REM statements but 126 and 118 values are troublesome... do you know if is there something written about?
I think I can use 32 bytes at PRBUFF to store parameters,, do you think is safe enough? i am not planing to use a printer,, and parameters may be cleared when routines are not called,,, but as you may notice I have just discovered it...