This ZIP file contains the programs and code samples from ZXzine issue 8, the newsletter by Tim Swenson (November 2021). It holds a prime-number benchmark, two helper tools that run on a PC, and a large set of astronomy programs in C for the ZX81.
What’s in the download
primebench.candpbench81.p: a prime-number benchmark. The C version (Z88DK) prints the primes between 29000 and 32767; the BASIC version tests odd numbers from 32767 down to 32000, prints a dot for each prime and then DONE.Astro.zip: about 97 files of astronomy routines in C for the ZX81 (Z88DK), with compiled.Pfiles and test programs: day of week and day of year, Julian Day conversions, Easter, equinoxes and solstices, Moon phase, sunrise and sunset, Sun position, sidereal time (GST), hours-minutes-seconds conversion and the moons of Jupiter. Several routines come in numbered versions.zxpaint2.c: a PC program that converts the output of the zxpaintyone screen editor into the characters zxtext2p uses for ZX81 block graphics.tsmake.sh: a shell script that swaps the T/S 2068 keywords SOUND, ON ERR, RESET, STICK and FREE for the characters zmakebas expects, then runs zmakebas to build a.tap. The script notes that the words are also changed inside strings.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.