www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/20/01:23:25

Xref: news2.mv.net comp.os.msdos.djgpp:4032
From: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: graphics
Date: Sun, 19 May 1996 23:49:26 +0100
Organization: The University of York, UK
Lines: 23
Message-ID: <Pine.SGI.3.91.960519233624.11794A-100000@tower.york.ac.uk>
NNTP-Posting-Host: tower.york.ac.uk
Mime-Version: 1.0
In-Reply-To: <4nnen5$5k1@newsbf02.news.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 19 May 1996, Watcom353 wrote:

> But I can't get a pixel on the screen.  I've tried
> unsigned char *scr=0xa000;
> with many different amounts of 0s after the a.  But I always get a GPF. 

You can't do that in protected mode: you have to use far pointers or the 
fat DS trick. Read the FAQ, or Brennan's VGA tutorial 
(http://www.rt66.com/~brennan/djgpp/how_to_access_vga.html).

> (Any suggestions for setting the mode without bios would also be 
> appreciated)

Why on earth would you want to do that? The BIOS is there to make life 
easier for you: it seems pretty silly not to use it :-)


/*
 *	Shawn Hargreaves.        Why is 'phonetic' spelt with a ph?
 *	Check out Allegro and FED on http://www.york.ac.uk/~slh100/
 */


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019