From: Elliott Oti 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 void foo() { char *VidPtr; __djgpp_nearptr_enable(); VidPtr = (char *)(0xa0000 + __djgpp_conventional_base); // Do whatchalike __djgpp_nearptr_disable(); }