delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/26/10:30:54

From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP and old VGA feature
Date: Tue, 26 Aug 2003 08:56:13 CDT
Organization: Rice University, Houston, TX
Lines: 25
Message-ID: <3f4b66fd.sandmann@clio.rice.edu>
References: <d2ad330a DOT 0308260425 DOT 67eef84f AT posting DOT google DOT com>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1061906710 25382 128.42.105.3 (26 Aug 2003 14:05:10 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: Tue, 26 Aug 2003 14:05:10 +0000 (UTC)
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> 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.

Using standard DPMI 0.9 features (which are all that are available on
most DPMI servers) you can't emulate this feature.

Using a full DPMI 1.0 server which implements most features you could
do this emulation.

I've also demonstrated how this feature could be implemented using
CWSDPMI.  It was a fun exercise, but it does have a speed penalty so
most people are not interested in it.  There are several good 
libraries that handle this automatically and much faster.

> 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.

Direct access to the vga buffer can be done using near pointers, but
you would still need to do the bank switching yourself.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019