
About
The programs from Einstein Magazine and All Micro News No. 94, summer 1999, typed in and on one bootable Xtal BASIC disc.
BATTERY, Ted Cawkwell's battery voltage program, reads the analogue port and shows the voltage of a small battery.
ADCREAD, his ADC port reader, calibrates an analogue input at its minimum and maximum, then reads it in your own units, as with the article's home made thermometer.
COMPASS, Point the Way with Compass, unsigned on the editor's page, draws a compass needle you set to a bearing and turn with the keys.
VRAM and BBAA, from Ted Cawkwell's "All-electronic AABBBBAA Switch", show "the second way": seven bytes of machine code kept in spare video RAM, then copied out and run. Together they print VRAM, the author's joke. AABBSW.ASM is the same article's 26 byte Z80 routine that drives No. 92's user port drive switch, as printed in hex and mnemonics, as a text file.
The listings were printed on pages 2 to 4, 8 to 10 and 12 of the magazine, which is on this site as Einstein Magazine No. 094. This disc saves you typing them in.
Running Them
Boot the disc, type XBAS, then for example RUN "COMPASS". BATTERY and ADCREAD need something wired to the analogue (joystick) socket to give real readings. The switch routine runs and returns, but the switching needs the No. 92 hardware.
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, the switch routine as text, 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. All five BASIC programs were loaded into BASIC and saved back, giving the same bytes as our files. With MAME's analogue input set to known values, BATTERY and ADCREAD gave the readings their formulas predict; COMPASS draws, turns, lengthens and shortens its needle; VRAM then BBAA print VRAM. Neither machine code block has a printed checksum; both are short and disassemble completely, and the 26 bytes match No. 92's ABBA BASIC program line for line. Not run on real hardware.
Kept as Printed
Nothing on the disc is ours except the arrangement; no corrected versions were needed. The method of patching the 26 bytes into a disc's DOS track is a change to Tatung's DOS made with MOS commands, not a program, so it is not on the disc. No addresses are in the listings.
The programs are their authors', published in Einstein Magazine in 1999.


