ZXzine Issue 1 ZIP file

Products: ZXzine Issue 1
Developer(s): Tim Swenson
Date: August 2015
Type: Program
Platform(s): TS 1000
Tags: Magazine

This ZIP file contains the programs and code samples from ZXzine issue 1, the newsletter by Tim Swenson (2015). Most are ZX81 BASIC programs written as text and turned into .p files with zxtext2p; the line-drawing example is also given in C for the Z88DK compiler. Six of the programs follow algorithms from Jean Meeus’s Astronomical Formulae for Calculators.

What’s in the download

  • dayofweek.bas / .p: asks for a date and prints the day of the week (Meeus, chapter 3).
  • easter.bas / .p: works out the date of Easter Sunday for a given year (Meeus, chapter 4).
  • greg2jd.bas / .p and jd2greg.bas / .p: convert a Gregorian date to a Julian Day number and back (Meeus, chapter 3).
  • jupiter.bas / .p: shows the positions of the four major moons of Jupiter for a given date (Meeus, section 36).
  • moonphase.bas / .p: gives the phase of the Moon for a date, from its Julian Day.
  • solstice.bas / .p: works out the dates of the solstices and equinoxes for a year (Meeus, chapter 20).
  • line.bas / .p: Bresenham’s line algorithm in BASIC, drawing the four diagonal directions from one point with PLOT.
  • line.c / line_C.P: the same line routine in C for Z88DK, with the compiled program.
  • zxplot.c: plot and unplot routines for Z88DK that call the ZX81 ROM’s PLOT code, used by line.c (from the article “Plotting with Z88dk”).

The .bas files use zxtext2p’s text format, with # comment lines and @label line references, so they need converting before they can be loaded.

Related Products

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.