delorie.com/archives/browse.cgi | search |
From: | lonniem AT nol DOT net |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Disabling Protected Mode |
Date: | Tue, 31 Dec 1996 04:33:10 GMT |
Organization: | Networks On-Line |
Lines: | 23 |
Message-ID: | <5a9u34$2i4$2@news.nol.net> |
References: | <5a7r11$o1n$1 AT mhafn DOT production DOT compuserve DOT com> |
NNTP-Posting-Host: | ip38-1.nol.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
John Savage <102371 DOT 734 AT CompuServe DOT COM> wrote: >I heard there was some way to disable protected mode in DJGPP... >what I really want to do is be able to access video RAM directly. > Is this possible? #include <sys/nearptr.h> int main (void) { __djgpp_nearptr_enable (); ..... /* DO STUFF */ __djgpp_nearptr_disable (); } It doesn't disable protected mode but it is a quick fix for fast graphics. It has it's problems though. It's all in the FAQ. Read it. Lonnie McCullough lonniem AT mail DOT utexas DOT edu
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |