[comp.sys.ibm.pc] Hercules graphics for MSC & QuickC, hgraph.lib V1.01

murphys@cod.NOSC.MIL (Steven P. Murphy) (02/26/89)

	I post the beta version of hgraph.lib about 1 1/2 years ago.  
It was placed in simitel20 archives and on serval BBSs .             
Since then several people have written me with questions and suggestion.
So I have just sent the new release (V1.01) to comp.binaries.ibm.pc it 
should appear in awhile.  In the mean time here is an excerpt from the
documentation.



        HGRAPH.LIB is a collection of subroutines to give Hercules
graphics capability to MSC and QuickC and are better than MSC's &
QuickC's in that they just have to be linked in.  They do not
require a driver to be loaded like with MSC & QC.

        This is version 1.01 release of these routines.  They have
been compiled and tested only on a Leading Edge Model "D" which
has a hercules clone card in it.  The only known difference
between this clone card and a real Hercules card is that this
clone fakes the light pen port (if you try to read its lightpen
port for the graphics state it always returns text mode).


        The lib includes clearing and non-clearing subroutines to
switch between text and graphics modes.  A clear page and show
page for clearing and switching between the two graphics pages.
A pixel routine to read, write, and toggle a pixel.  Two line
subroutines one to draw a line in either white or black and one
to toggle a line.  And three string writing functions, one that
treats the graphics screen as 43 rows and 90 columns while the
other two let you define the upper left corner of where the
string is to be written.  There are also a save screen and a
restore screen, similar to BASIC's BSAVE & BLOAD and a print
screen routine for Epson printers.  All the routines that write
to the graphics screen are written in MSC MASM 5.1 for greater
speed.  The screen dump routines do their own buffering also for
this reason.