
About
The programs from Einstein Magazine & All Micro News No. 79, 1996, typed in and on one bootable Xtal BASIC disc.
LOTWIN, by Ted Cawkwell, keeps a record of National Lottery draws and picks out the numbers drawn least and unseen longest. LOTNUMS, from the same article, builds its data file from a printed table of draws; a starter data file is included so LOTWIN runs straight away.
FUEL, by David Williams, works out a gas, electricity or oil bill from the meter readings, the tariff, the standing charge and the VAT rate, and catches readings entered the wrong way round.
The listings were printed on pages 10 to 12 and 17 to 18 of the magazine, which is on this site as Einstein Magazine & All Micro News No. 079. This disc saves you typing them in.
Running Them
Boot the disc, type XBAS, then LOAD "LOTWIN" or LOAD "FUEL", and RUN.
What Is in the Download
A zip holding the disc image as a DSK, the same disc as an MFI for MAME to write to, the listings as BASIC text and as tokenised Xtal BASIC, a README with the full account of each program, and the screen captures and MAME scripts used to test them.
Verified
Transcribed from the page images and run on the Einstein in MAME 0.289 with Xtal BASIC 4.2. Every program was loaded into BASIC and saved back, giving the same bytes as our files. FUEL worked out a gas bill and an electricity bill and caught readings entered the wrong way round. LOTWIN was run through all four menu options from the starter file, and LOTNUMS through all 147 entries to make that file. Not run on real hardware.
Kept as Printed, and One Addition
LOTNUMS.DAT, the starter data file with no draws in it, is our addition, made by running the magazine's own loader; the magazine expects you to build it from a year of draws. As printed, LOTWIN keeps new draws in memory only, because the author REM'd out the lines that rewrite the file until the rest was proven; the README says which lines to un-REM. The GDUMP machine code from the same issue's "Graphic Dumps Revisited" is a hex dump with no checksums and is not included. No addresses are in the listings.
The programs are their authors', published in Einstein Magazine in 1996.

