delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/29/01:18:50

From: mlsoftware AT aol DOT com (Mlsoftware)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP & PMODE FEATURES
Date: 29 May 1997 01:49:16 GMT
Lines: 15
Message-ID: <19970529014900.VAA13032@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL http://www.aol.com
References: <337E4CD4 DOT 1DBE AT cs DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

If you don't wish to use Allegro, or read a FAQ, try this.

#include <sys/nearptr.h>

char *video;
video = (char *)(0xa000 + __djgpp_conventional_base);

Use __djgpp_nearptr_enable() before accessing the video buffer.

Don't forget to use __djgpp_nearptr_disable() when you are done with the
buffer...

Later,

ML

- Raw text -


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