From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Video memory access speed!! Date: 7 Aug 1997 06:58:02 GMT Organization: The National Capital FreeNet Lines: 43 Message-ID: <5sbrlq$k7i@freenet-news.carleton.ca> References: <870892283 DOT 283941 AT mn8> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "xIGOO" (jan-erik DOT henriksson AT mailbox DOT swipnet DOT se) writes: > Hello, > > which is the fastest way to access video memory in DJGPP? > > I have tried these two ways: > > 1. > void set_video_mode(int mode) > { > union REGS regs; > regs.x.ax = mode; > int86(0x10, ®s, ®s); > } > > 2. > void set_video_mode(int mode) > { > __dpmi_regs regs; > regs.x.ax = mode; > __dpmi_int(0x10, ®s); > } > > Which of these two is the fastest way to access video memory, or is there a > faster way? Please e-mail me if you have any idea (or comments!). We heard you the first time. (Why do some people repeat their postings three and even five times like this, every few minutes? It's not like phone calls to tech support... I'd wait until at least 24 hours had gone by after making the posting, without anyone replying or following up, before beginning to wonder if the message never got off my server. Many people only check their subscribed groups, and follow up and reply to stuff, once a day... if that often.) In any case, as I recall it's like nearptr and farptr: the non-dpmi is faster but won't work in some environments, like Windows, IIRC. -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh