Mail Archives: djgpp/2001/07/26/06:39:54
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 -