Message-ID: <36F815A9.111631F6@inversereality.org> From: Justin Deltener X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Protected Mode graphics is to hard References: <36f40071 DOT 0 AT news DOT ossinc DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 Date: Tue, 23 Mar 1999 16:28:57 -0600 NNTP-Posting-Host: 209.180.57.114 X-Complaints-To: abuse AT uswest DOT net X-Trace: news.uswest.net 922228044 209.180.57.114 (Tue, 23 Mar 1999 16:27:24 CDT) NNTP-Posting-Date: Tue, 23 Mar 1999 16:27:24 CDT Organization: U S WEST Interprise To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You can create a normal char pointer to it if you wish but you would have to turn off memory protection. As long as you know what you're doing, it won't be a problem. void *MK_FP(unsigned short seg, unsigned short ofs) {if(!(_crt0_startup_flags & _CRT0_FLAG_NEARPTR)) if(!__djgpp_nearptr_enable()) return (void*)0; return (void *)(seg*16+ofs+__djgpp_conventional_base); } char* video_ptr = (char*)MK_FP(0xa000,0); And a waaaay you go! -- Justin Deltener (deltener AT inversereality DOT org) HomePage: Inverse Reality (www.inversereality.org)