Mail Archives: djgpp/1997/07/24/16:09:21
From: | bminier AT aol DOT com (Bminier)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Direct video access.
|
Date: | 24 Jul 1997 17:22:20 GMT
|
Lines: | 17
|
Message-ID: | <19970724172200.NAA00440@ladder02.news.aol.com>
|
NNTP-Posting-Host: | ladder02.news.aol.com
|
Organization: | AOL http://www.aol.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello, I am trying to write directly to the video without using bios or
dos. But
everytime I try this following program, I get a SIGSEGV (which i am
guessing means a segment violation?) I attempted to re declare vidptr as
char far *vidptr but DJ does not recognize it. So, what am I doing wrong?
int
main (void)
{
char *vidptr = (char *) 0xB8000000;
*vidptr = 'a'; /* Write a to screen. */
*(vidptr + 1) = (char) 1; /* In blue. */
return 0;
}
- Raw text -