delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/01/04:32:51

Message-ID: <3f2a2474$0$171$cc7c7865@news.luth.se>
From: Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se>
Subject: Re: Mapping DOS base memory under 1 meg
Newsgroups: comp.os.msdos.djgpp
References: <84e4e2a9 DOT 0307311826 DOT 6a107b0c AT posting DOT google DOT com>
User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha))
Date: 01 Aug 2003 08:27:32 GMT
Lines: 18
NNTP-Posting-Host: speedy.ludd.luth.se
X-Trace: 1059726452 news.luth.se 171 130.240.16.13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Joel <jbs30000 AT aol DOT com> wrote:
: I'm writting some SVGA code which uses banked modes if a linear mode
: is not availible.  Now, I had an idea of, when using _farpokeb instead
: of adding segment << 4 to the offset, which is usually A0000 + offset,
: I would make a selector for the A000 - AFFF graphics memory buffer. 

...

: So, is there a reliable way to make a base memory selector other than
: just using the __djgpp_nearptr_enable() ?

You already have a selector for conventional memory in _dos_ds (or
perhaps __dos_ds). I think this one covers addresses 0 to 1MiB+64kiB.


Right,

						MartinS

- Raw text -


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