
About
The programs from The Brain Vol. 1 No. 3, May and June 1986, typed in and on one bootable Xtal BASIC disc.
Three games come from For The Basic Buff. PONTOON is Pontoon against the computer: Twist, Stick, Buy or Fold. It works as printed. TWONKY, a hidden maze chase, runs as printed, but a slip in one line means it cannot be won; TWONKY2 has two lines corrected and plays as the instructions describe. DOGRACES, greyhound betting for up to eight players, plays as printed but stops with an error when everyone is broke; DOGRACE2 has the missing colon added.
MUSIC.COM is the sound demonstration from Assembly Language 2, assembled from the printed source as the article directs. It plays a tune straight to the sound chip from DOS. MUSIC.ASM is its Zen source as printed.
WRITEREC.MAC and READREC.MAC, M. Gaut's Disc Handling 2, are MACRO 80 routines to write and read a 128 byte record by number. Source only.
The listings were printed on pages 14 to 18 and 24 to 37 of our scan of the magazine. The issue itself is on this site as The Brain Vol. 1 (May and June 1986). This disc saves you typing them in.
Running Them
Boot the disc, type XBAS, then for example LOAD "PONTOON" and RUN. MUSIC runs from the DOS prompt: type MUSIC.
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 BASIC listings as text and as tokenised Xtal BASIC, the assembler sources and MUSIC.COM, 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 with Xtal BASIC 4.2. Every BASIC program, loaded and saved back, gives the same program bytes as our files, and all were played. The listings print their object code beside the source, and reassembling gives every printed byte: 536 for MUSIC, 160 and 126 for the record routines. MUSIC.COM's output to the sound chip was logged and matches its tune data exactly. The record routines were run from DOS inside a small test program of ours and wrote and read back their records. One line of MUSIC's listing, line 57, is cut off the bottom of our scan; it is recovered from its offset image on the facing page and fixed exactly by the code's own jump addresses. Not run on real hardware.
Kept as Printed
PONTOON, TWONKY, DOGRACES, MUSIC.ASM and the record routines are as printed. TWONKY2 and DOGRACE2 are ours, each fixing a slip in the printed listing, and MUSIC.COM is ours, assembled as the article tells the reader to do. The README says exactly what changed.
Not on the Disc
The printer handshaking patches on pages 27 and 28, which alter Xtal BASIC and Zen themselves; the MOS steps in a reader's letter for editing the DOS system track; and the one line examples in the assembly language article.
The programs are their authors', published in The Brain in 1986.

