Can't make anything fit into 1K... or is it me?
Posted: Thu Apr 29, 2021 9:24 pm
I'm trying to port a little dice program for the Commodores to the ZX81, and I've squeezed it as much as I could, but I can't seem to make it fit in 1K.
In the ASCII editor I'm using,it is under 800 characters including line numbers and spaces, but when I compile it with zxtext2p it grows to a 1.7 KB .p file, and when I try to load it in the emulator (sz81 with the "-u" switch, which is supposed to emulate a 1K machine) it fails to load (it takes me straight back to the prompt and LIST reveals it hasn't been loaded).
Am I missing something? Is it normal that less than 800 bytes become twice as much when compiled? It's a 21 line program and I can't think of a way to shrink it any further.
Thanks!
In the ASCII editor I'm using,it is under 800 characters including line numbers and spaces, but when I compile it with zxtext2p it grows to a 1.7 KB .p file, and when I try to load it in the emulator (sz81 with the "-u" switch, which is supposed to emulate a 1K machine) it fails to load (it takes me straight back to the prompt and LIST reveals it hasn't been loaded).
Am I missing something? Is it normal that less than 800 bytes become twice as much when compiled? It's a 21 line program and I can't think of a way to shrink it any further.
Thanks!