Hi-Rez Graphics Dump

See all articles from Sinc-Link v7 n5
Author(s): Rene Bruneau
Publication: Sinc-Link
Pub Details: Sinc-Link v7 n5 (Volume 7, Issue 5)
Date: September/October 1989
Pages: 21-22

(Original article from ZX Computing for the Spectrum, adapted for the ZX81)

This is a small machine code routine that can be added to the Entended Hi-Rez Basic Core program developed by Fred Nachbaur and Gregory Harder for the ZX81/TS1000 with static RAM in the 8-16K block of memory. The routine resides in a REM statement that is placed between the Hi-Rez Core program and your Basic program.

The machine code is not relocateable (that is, it has fixed addresses and calls) and therefore the 64 column and fast load routines (line 2 & 3) must remain. If time permits we will see if the m/c can be made relocateable or provide a loader program to do the relocation.

Start by entering a Line 4 REM statement with at least 160 bytes in it. Check that the REM statement is in the correct address by PEEKing address 21023. You should read a value of 234 which stands for the character “REM”. Use a hex loader and input data from addresses 21024 to 21173.

The m/c is called by RAND USR 21098 from within your program or you can BREAK and call it up directly.

The program as shown is configured for the Smith-Corona Fastext 80 and Tasman interface but is easily set up for any dot-matrix printer that allows graphics printing.

Graphic set-up codes are located in addresses 21139 to 21146. Please refer to Fred Nachbaur’s “Universal Printer Driver“ program and Stan Lemke‘s series of articles on bit image graphics for more info.

Hi-Rez screen dump: PAINT USING THE "HLINE" COMMAND
Hi-Rez screen dump: PAINT USING THE "HLINE" COMMAND
Hi-Rez graphics dump machine code listing, 521E-52CB (hex dump and disassembly)
Hi-Rez graphics dump machine code listing, 521E-52CB (hex dump and disassembly)