
About
The programs from All Micro News Vol. 2 No. 1, about spring 1993, typed in and on one bootable Xtal BASIC disc: chapter 2 of Dave Arts's Graphically Dumping series, which puts the picture you drew with chapter 1's mouse program onto paper. A short machine code routine rearranges the screen into the columns of dots a printer head wants, and BASIC sends them to a dot matrix printer in bit image mode, in about a minute.
GDUMP is the loader: it loads the plotfile routine and your picture, then runs GRAFP. GRAFP builds the plotfile and prints the picture on a dot matrix printer in ESC K bit image mode. PLOTF.OBJ is the machine code that turns the saved screen into printer columns.
GDUMP2 and GRAFP2 are ours: GDUMP2 runs GRAFP2, which is GRAFP with its two faults corrected.
The listings were printed on pages 19 and 20 of the magazine, which is on this site as All Micro News Vol. 2 No. 1 (About spring 1993). This disc saves you typing them in.
Running Them
Boot the disc, type XBAS, then RUN "GDUMP2", or RUN "GDUMP" for the listing exactly as printed, answer Y, and give the picture's name with .OBJ, for example CREATION.OBJ. The article says CREATION.GRA, which Xtal BASIC refuses with File Type Error. It needs a picture saved by the mouse program on the All Micro News Vol. 1 No. 12 disc, or any 6144 byte screen file saved from &B000 to &C7FF as a .OBJ, and a printer that understands ESC K. The printer codes are for a Brother HR5; other printers need their own.
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 machine code with the hex as printed and its disassembly, 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. Both BASIC programs, loaded into Xtal BASIC 4.2 and saved back, give the same program bytes as our files. PLOTF.OBJ has no printed checksum; it was checked by its ASCII column, a full disassembly and a run. The whole dump was run with MAME's printer writing to a file, on a test picture of ours that is not on the disc: it took about a minute, as the article says, and every plotfile byte reached the printer as an independent calculation says it should. On our two test pictures, one holding every possible byte value, GRAFP2's printer output was byte for byte what it should be. The swap disc route and a real printer were not tried. Not run on real hardware.
Kept as Printed
GDUMP, GRAFP and PLOTF.OBJ are as printed. GRAFP as printed has two faults, both explained in the README: a byte 09h in the picture is printed by Xtal BASIC as a run of spaces (a TAB), which shifts that strip of the printout, and the ESC K count is 259 rather than 256, so the line spacing command is printed as three columns of dots. Our GRAFP2 puts both right with four small changes.
The programs are their author's, published in All Micro News in 1993.