public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jonathan Simms" <Jonathan@embassynetworks.com>
To: <gcc-help@gcc.gnu.org>
Subject: Newbie/CS Student - VGA question
Date: Mon, 14 Jan 2002 22:29:00 -0000	[thread overview]
Message-ID: <000001c19d8d$f1017a40$0c01a8c0@TWAIN> (raw)

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

             reply	other threads:[~2002-01-15  6:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14 22:29 Jonathan Simms [this message]
     [not found] <616BE6A276E3714788D2AC35C40CD18D2C5981@whale.softwire.co.uk>
2002-01-14 23:06 ` Rupert Wood
2002-01-15  4:46   ` Jonathan Simms

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001c19d8d$f1017a40$0c01a8c0@TWAIN' \
    --to=jonathan@embassynetworks.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).