[comp.os.minix] Minix/PC & Graphics

jerry@polygen.uucp (Jerry Shekhel) (08/01/89)

Hello all.  I'm new to Minix/PC and PC world in general, and I'm developing
a low-level graphics library (or driver) for Minix.  I'm looking for working
source code which switches the Hercules card between graphics and text modes.
I've found the file INIT.ASM on my Hercules diskette, but asld does not like
some of the instructions in it -- "lodsb" and "rep stosw", among others.  I
changed "lodsb" to "lodb", and "rep stosw" to "rep" and "stow", not knowing
exactly what I was doing, and the resulting code switches properly into text
mode, but not graphics mode; the hi-res image is distorted into wavy lines.
Also, upon return to text mode, the cursor is an underline, not the usual
Minix block.

If anyone could mail me, or post, working source code which controls the
Hercules card, I would really appreciate it.  Thanks in advance.
---
+--------------------+-----------------------+-------------------------------+
|                    |  Polygen Corporation  |           UUCP:               |
|  Jerry J. Shekhel  |   Waltham, MA 02254   |  {princeton, mit-eddie,       |
|                    |    (617) 890-2888     |  buita, sunne}!polygen!jerry  |
+--------------------+-----------------------+-------------------------------+