From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20726 invoked by alias); 15 Jan 2002 07:06:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20479 invoked from network); 15 Jan 2002 07:05:26 -0000 Received: from unknown (HELO finch-post-12.mail.demon.net) (194.217.242.41) by sources.redhat.com with SMTP; 15 Jan 2002 07:05:26 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 16QNes-000OWj-0C; Tue, 15 Jan 2002 07:05:22 +0000 From: "Rupert Wood" To: "'Jonathan Simms'" Cc: Subject: RE: Newbie/CS Student - VGA question Date: Mon, 14 Jan 2002 23:06:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D03A9EC@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D2C5981@whale.softwire.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-01/txt/msg00147.txt.bz2 Jonathan Simms wrote: > I'm taking "Advanced C" and my professor is running me through the > graphics BIOS calls. ? The graphics BIOS calls are target and OS specific and, to all intents and purposes, obsolete. (Not what I'd expect from 'Advanced C'.) > Where can i look for information/tutorials/etc. about writing > code that makes use of old-school, 320x200 VGA ROM-BIOS calls? The classic free DOS programming guide would be "Ralf Brown's interrupt list": just throw that into a search engine. That should, amongst many other things, contain documentation of all the VGA interrupts (int 0x10).Most, however, just use the BIOS to set mode and then poke to video memory directly. For that, you probably want search-engine for '"mode x" vga'. > #include "dos.h" : > What library/include files define "REGS"? That's probably in dos.h. It'd be a vendor extension. You can do all of the above (and more, and in a more efficient way) using GCC's inline assembler - see section 5 of the GCC manual. Good luck, Rup.