delorie.com/archives/browse.cgi | search |
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: | <Xns920CEC3CFFB05adminraf256com AT 213 DOT 180 DOT 128 DOT 20> |
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" <admin AT raf256 DOT com> wrote: >Hello, >what is the fastest way in DJGPP to access conventional memory (video ram) #include <sys/nearptr.h> /* __djpp_nearptr_enable(), __djgpp_conventional_base */ #include <string.h> /* strcpy() */ #include <stdio.h> /* printf() */ #include <crt0.h> /* _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; }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |