[23 Dec 94, Eyal Lebedinsky, eyal@ise.canberra.edu.au]

This is a small demo of how to do SVGA graphics. It is mostly C, the
only asm is where it is absolutely needed (like the unusual call to the
VBE bank switching and the interrupts on/off).

This is a direct extract from Fly8, my flight simulator, which is also
available on the same ftp site.

The main program is svga.c which has the SVGA functions and the main()
demo.

vgr.c is a general purpose program for doing graphics into banked memory
(and SVGA is one such animal) of a 64KB bank size. It includes functions
to draw lines and ellipses (or circles).

grstat.c is simply a program that prints the statistics gathered by the
other programs (not really necessary).

I have asm/86 implementation of the same logic which does run faster but
is much harder to read, hope this one helps you.


Note that the demo is slowed down on purpuse, or else it would be too
fast to appreciate.

The above three programs (and associated headers and makefile) are
hereby released into the public domain.

Warning: Doing any video mode switching CAN damage your system (and
especially your monitor) so be carefull.

You wil need a VBE compliant bios to get full functionality. If you do
not have one (many modern cards come with one) then gram the shareware
UNIVBE package (available on most popular ftp sites). Not having proper
VBE support will cause the program to flicker and probably will fail to
oproperly switch pages and banks.


Enjoy,
	Eyal Lebedinsky
