Basic memory optimisation :
Code: Select all
320 LET Z$=" "
(...)
4050 PRINT ,,Z$( TO 6);O$
Hi,
The purpose of these small samples of modifications is not to denounce problems in this game, but to show that the basic standard can very well be adapted on the Zx81, but with small tricks specific to the machine.
Z$( TO 6) = 11 bytes.
" " = 8 bytes !
320 LET Z$=" " = 32bytes in basic and 32bytes in the VARS = " "
This routine is good to use it Z$... up to 4 times to save memory.
In this case, Z$ is OK.
But in case of O$, the variable can be deleted, and the line room saved.
4040 LET O$="-------------------"
On the Sinclair Basic, you MUST chaine all unneeded line…
10 PRINT "HELLO"
20 PRINT "WORLD"
Juste use "HELLO",,"WORLD"
You save the Basic line header and the $76 in the end of the other line. (Only 5 bytes saved… But, on several lines)