delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/26/06:39:54

Date: Thu, 26 Jul 2001 13:34:06 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Nilesh Modi <nilesham38 AT rediffmail DOT com>
cc: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: can we eliminate dpmi ?
In-Reply-To: <20010726101002.32519.qmail@mailweb15.rediffmail.com>
Message-ID: <Pine.SUN.3.91.1010726132824.96B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 26 Jul 2001, Nilesh Modi wrote:

> So can anyone guide me how can i do such thing with djgpp to say it not 
> to use dpmi and generate pure bios functions using exe ?

Fasten your seat belt: you are in for a bumpy ride ;-)

You will need to:

  - rewrite the program startup code to not issue DPMI calls, and instead 
    use whatever is available on your target platform to allocate memory for 
    the program, set up code, data, and stack segments, etc.;

  - either not use any of the library functions which call DOS or BIOS, 
    or rewrite those you do use to use other means;

  - modify the exceptions setup to not use DPMI functions and not to 
    peek/poke BIOS data in low memory.

The sources for all this stuff are in djlsr203.zip.

Good luck!

- Raw text -


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