Celestial BASIC – Lunar Eclipses
I used my Pico MZ-80K emulator to create a version of the ECLIP program from Celestial BASIC by Eric Burgess. The code correctly predicts that the next lunar eclipse is due on 14th March 2025.

I’ve tidied the output somewhat and there are clearly other optimisations that could be made. For example, there’s a calculation on line 530 that is always constant. However, for that true retro feel I’ve left the code largely unchanged.
It’s also been run through my mzfview program – a good test, as there’s both an exponentiation operator and a pi constant used in the code (lines 360 and 240 respectively).

The mzf file for this program is in my Sharp MZ-80K programs repository.