How to fully use the 1K ZX81
How to fully use the 1K ZX81
39 pages to get every byte out of the 1K ZX81.
If you think you miss something just let a comment here so I can give a reply
If you think you miss something just let a comment here so I can give a reply
Re: How to fully use the 1K ZX81
Thanks Johan !
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Re: How to fully use the 1K ZX81
It’s a great book, that simply states useful information for software development on the ZX81. Thank you.
Re: How to fully use the 1K ZX81
Thanks Dr Beep, thats great seeing it written up.
When I wrote QFrog, the displayfile was loaded as part of the program so I didn't have to set it up or need a CLS routine. Useful when writing games with a set playing field.
Another trick I used is to use a screen width which is easy to multiple with, e.g. 16 chars gives 15 displayed columns plus the 0x76, or 20 (x16 + x4), etc.
An idea I've never tried is to set DFILE to a page boundary, e.g. 0x4300 (I think it needs to be 0x42ff so the first display position is 0x4300). That way only the low byte needs calculating.
Cheers
Paul
When I wrote QFrog, the displayfile was loaded as part of the program so I didn't have to set it up or need a CLS routine. Useful when writing games with a set playing field.
Another trick I used is to use a screen width which is easy to multiple with, e.g. 16 chars gives 15 displayed columns plus the 0x76, or 20 (x16 + x4), etc.
An idea I've never tried is to set DFILE to a page boundary, e.g. 0x4300 (I think it needs to be 0x42ff so the first display position is 0x4300). That way only the low byte needs calculating.
Cheers
Paul
Memotech rules
Re: How to fully use the 1K ZX81
Most of my games have a display, but often compressed or with extra code, but I did use the trick when needed.
True, any not ^2 needs at least 1 extra calculationAnother trick I used is to use a screen width which is easy to multiple with, e.g. 16 chars gives 15 displayed columns plus the 0x76, or 20 (x16 + x4), etc.
I used this trick a bit in RUB-1K. Each visible field is set to be in the same highbyte so in the table only the lowbyte was held.An idea I've never tried is to set DFILE to a page boundary, e.g. 0x4300 (I think it needs to be 0x42ff so the first display position is 0x4300). That way only the low byte needs calculating.
Cheers and happy codingCheers
Paul
Johan "Dr Beep" Koelman
PS I am thinking of writing the entire ZX81-emulator on the ZX Spectrum story as well.
Re: How to fully use the 1K ZX81
I’ve just started reading this. Although we both code the Zeddy for very different types of game styles I’m sure it will be interesting.
I have noticed an error though on page 2, where you state that 2 bytes will be needed to store values up to 655536…
There’s another further down in the Scoring section, where “Even Pacman gaf 10 points for a dot”
I have noticed an error though on page 2, where you state that 2 bytes will be needed to store values up to 655536…
There’s another further down in the Scoring section, where “Even Pacman gaf 10 points for a dot”
Re: How to fully use the 1K ZX81
when storing it as 16 bit values
Gaf (dutch) = gave (english)There’s another further down in the Scoring section, where “Even Pacman gaf 10 points for a dot”
Re: How to fully use the 1K ZX81
Yes, but 655536? Should be 65536, one too many digits.
Re: How to fully use the 1K ZX81
Thank you Johan, as usual GREAT content!!
I've still to apply it, but I see possibility for few more bytes shaved from the 1K real chess
I hope that with this jumpstart introduction more people will start developing on the beautiful and challenging bare 1K ZX81 hardware to exploit it to its fullest!
Happy new year to everyone and as usual happy hacking!
I've still to apply it, but I see possibility for few more bytes shaved from the 1K real chess
I hope that with this jumpstart introduction more people will start developing on the beautiful and challenging bare 1K ZX81 hardware to exploit it to its fullest!
Happy new year to everyone and as usual happy hacking!
Re: How to fully use the 1K ZX81
I remember reading back in the day, in some magazine (I think), how to optimise writing Basic programmes for less memory usage. Can’t remember which magazine it was.
ZX81 (purchased November 1982), my first computer.
ZXpand+, ZX8-CCB.
ZXpand+, ZX8-CCB.