
About
The programs from The Brain Vol. 1 No. 4, July and August 1986, typed in and on one bootable Xtal BASIC disc.
TEASER is a 3 by 3 peg puzzle. As printed it shows its rules, then stops with an error at line 20, where TQ is printed for TO. TEASER2 has that one word corrected and plays.
BATTLE is Computer Battleships: place six ships, then take turns with the computer to sink each other's. It plays as printed.
PLANET, Model Planetarium, sends the planets and Halley's comet round the sun and plots their orbits. It works as printed.
SPRITES, WALKMAN, ARROW and BOUNCE, from M. Gaut's Basic Graphics Part 4, show EINSTEIN in swaying sprites, a walking man, an arrow moved with Q, A, P and O, and a bouncing ball. They work as printed.
G2INIT.ASM, KSUB1.ASM and G2TEST.ASM, Keith Hook's Bit Mapping, are assembler source for a bit mapped Graphic Mode 2 screen and a routine that prints coloured characters on it, with a test program. Source only.
The listings were printed on pages 13 to 17 and 23 to 40 of our scan of the magazine. The issue itself is on this site as The Brain Vol. 1 (July and August 1986). This disc saves you typing them in.
Running Them
Boot the disc, type XBAS, then for example LOAD "BATTLE" 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 BASIC listings as text and as tokenised Xtal BASIC, the assembler sources with their assembled listings, 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 every one was run and its screens captured; a whole game of Battleships was played to its end. The assembler listings print their object code beside the source, and reassembling each source gives every printed byte, 351 of 351. They were not run: as printed they are separate pieces that need putting together. Not run on real hardware.
Kept as Printed
Everything is as printed except TEASER2, our one word correction. One letter in PLANET, smeared in the binding on our scan, was read from the program's logic; the README gives the detail.
Not on the Disc
The examples inside the text of the Bit Mapping and Assembly Language 2 articles, which are not programs.
The programs are their authors', published in The Brain in 1986.

