Date: Wed, 31 Dec 1997 09:49:52 +0200 (IST) From: Eli Zaretskii To: Nat Saiger cc: djgpp AT delorie DOT com Subject: Re: What is __djgpp_conventional_base ?? In-Reply-To: <34A97AB5.14FD6E93@stayfree.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 30 Dec 1997, Nat Saiger wrote: > and it didn't work, so I downloaded a tutorial on video memory under > djgpp, and it used the line > > unsigned char *videoptr = (unsigned char *)0xA0000 + > __djgpp_conventional_base; > > What is __djgpp_conventional_base? There is no mention of it in > Rhide's syntax help and the document didn't explain it. This is explained in the DJGPP FAQ list, section 18.5, and in the DJGPP library reference under __djgpp_nearptr_enable. (The FAQ is available as v2/faq210b.zip from the same place you get DJGPP.) > Also, which is the FASTEST way to access the video memory, enabling > near pointers or emulating far pointers?? (or is there a better way) On most systems, near pointers and far pointers yield the same speed. The FAQ lists several alternatives of accessing conventional memory in section 18.4.