Newbie/CS Student - VGA question

Jonathan Simms Jonathan@embassynetworks.com
Mon Jan 14 22:29:00 GMT 2002


Hi everybody,

This is my first time posting to this list, so please be gentle...

I'm taking "Advanced C" and my professor is running me through the
graphics BIOS calls. The only problem is that the book we're using as a
language reference is for Borland's Turbo C 2.01...but i'm doing my
compilation with gcc.


Being new to this, i know that i'm about to ask one of those sprawling,
"i don't know a thing about what i'm talking about" questions, but if
some kind soul out there could just aim me in a direction, I'd
appreciate it.

Where can i look for information/tutorials/etc. about writing code that
makes use of old-school, 320x200 VGA ROM-BIOS calls? 

one of the program examples uses the following:

#include "dos.h"
...
main()
{
    union REGS regs;
    int row, col;
    for(row=0; row < MAXR; row++)
        for(col=0; col < MAXC; col++)
        {
            regs.h.ah = WDOT;               /* write dot service */
            regs.x.dx = row;                /* row in DX */
            regs.x.cx = col;                /* column in CX */
            regs.h.al = col/80;             /* col chng every 80 rows */
            regs.h.bh = 0;                  /* page number */
            int86(VIDEO, &regs, &regs);     /* call video services */
        }
}


What library/include files define "REGS"? 

I'm totally lost, so any leads would be most helpful.

Thanks for your time,
Jonathan


----------------------------------------------
Jonathan Simms
Embassy Networks



More information about the Gcc-help mailing list