| delorie.com/archives/browse.cgi | search |
| From: | Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Disabling Protected Mode |
| Date: | Mon, 30 Dec 1996 07:24:01 -0800 |
| Organization: | Academic Computer Centre Utrecht, (ACCU) |
| Lines: | 20 |
| Message-ID: | <32C7DE91.5152@stud.warande.ruu.nl> |
| References: | <5a7r11$o1n$1 AT mhafn DOT production DOT compuserve DOT com> |
| NNTP-Posting-Host: | warande1078.warande.ruu.nl |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
John Savage 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>
void foo()
{
char *VidPtr;
__djgpp_nearptr_enable();
VidPtr = (char *)(0xa0000 + __djgpp_conventional_base);
// Do whatchalike
__djgpp_nearptr_disable();
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |