Date: Tue, 26 Aug 2003 09:36:19 -0400 Message-Id: <200308261336.h7QDaJYS031854@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (cbramix AT libero DOT it) Subject: Re: DJGPP and old VGA feature References: Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Long (long...) time ago I was using a very useful feature of DJGPP. > I'm talking about the linear frame buffer emulation for video cards > with bank switching function only. > Now this feature has been removed and I thought it was caused by DPMI > server (no functions available for doing that). > But after reading the functions available in DPMI I got the impression > it could be done, at least a small part. > I think it would be interesting to add a new selector by default, > maybe called _vga_ds, in addition to _dos_ds, _my_ds, etc. > Or I could be simply wrong and this method can't be done right now. You want near pointers, see The thing that made the old linear frame buffers work so well was that we could trap the page accesses (page faults) and remap video memory to "catch" them. For today's cards, the best we can hope for is that the card itself maps its memory into a linear frame buffer.