From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Nearptr putpixel method? Date: Sun, 29 Aug 1999 22:37:53 -0500 Organization: Rose-Hulman Institute of Technology Message-ID: <7qcucs$78c$1@solomon.cs.rose-hulman.edu> References: <199908242311 DOT TAA09745 AT delorie DOT com> <7q0kfa$rot$1 AT news DOT adamastor DOT ac DOT za> <7q19jj$ajq$1 AT news DOT adamastor DOT ac DOT za> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 935984348 7436 137.112.205.227 (30 Aug 1999 03:39:08 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 30 Aug 1999 03:39:08 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Legolas tried to putpixel() in mode 13h (its frame buffer is at absolute address 0x0000a000) using the nearptr hack. After trying to work it out with Dan Gold, Legolas recompiled a day later and it worked fine. > ummm... scratch that. Yes, I was in mode 13h, but it didn't work. Now, > suddenly it does. Speed-wise, there is no improvement over the farptr method That's because the Pentium is doing the same work, just in a different segment selector. > (or maybe an infinitesimal improvement, but not signifigant). It does, > however seem to be a more convenient way of accessing the video memory. No, the nearptr hack is not more convenient. It brings with it general protection faults, page faults, and other things that, if you use nearptr, are your fault, up to and including data loss. > I'll experiment with it over time. Don't if you value your data.