X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: NoEmailAds AT execpc DOT com (Chris Giese) Newsgroups: comp.os.msdos.djgpp Subject: Re: 0xB800:0000 = ... ; Date: Mon, 13 May 2002 03:44:05 GMT Organization: PROPULSION GROUP References: X-Newsreader: Forte Free Agent 1.11/32.235 Lines: 22 Message-ID: <3cdf36ac$0$3335$272ea4a1@news.execpc.com> NNTP-Posting-Host: 9069859f.news.execpc.com X-Trace: DXC=]PVSH4E]kL3EGbod6gi<0?bhiU1EQ[HI=0ICGTaT\Bl==EV;d7?Dn`=09LG=7MR7 AT 4d7jAeL2dO]0]CZJke6S[a0F]oQm9]^\A2 X-Complaints-To: abuse AT execpc DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rafal 'Raf256' Maj" wrote: >Hello, >what is the fastest way in DJGPP to access conventional memory (video ram) #include /* __djpp_nearptr_enable(), __djgpp_conventional_base */ #include /* strcpy() */ #include /* printf() */ #include /* _crt... */ int main(void) { if(!(_crt0_startup_flags & _CRT0_FLAG_NEARPTR)) { if(!__djgpp_nearptr_enable()) { printf("Could not enable nearptr access\n"); return 1; }} /* the alternating spaces are black-on-green attribute bytes */ strcpy((char *)0xB8000 + __djgpp_conventional_base, "H e l l o "); return 0; }