Mail Archives: djgpp/1999/02/01/06:35:15
On Fri, Jan 29, 1999 at 03:05:58PM -0500, Fleet Teachout wrote:
> The scanner contains a 386 CPU, 640K RAM (470K useable as a RAM disk).
> When I attempted to run the program I developed in the scanner, I got
> "load error: no DPMI". (or something real close to that).
DJGPP programs require a DPMI server to run. You need one that
uses low memory though, since there's no high memory in the system.
I don't know much about that.
> The assumption I have made (and I'll freely admit I may be WAAAAY off) is
> that I need to use code that will run in a 16-bit environment.
The number of bits isn't the problem, it is that djgpp programs
use DPMI to get their memory.
> The question(s) is/are: Can I generate 16-bit code using DJGPP operating
> in a 32-bit environment - and if so, how?
You can generate 16 bit code but I don't recommend it and doubt
that it will help you much. For one thing you'd have to write
in assembler and not use the standard stub or any of the C
library... In the end you wouldn't really be using djgpp for
anything other than development.
Since you'd have to write in assebler anyway, if you know Intel
syntax you might be better off playing with NASM. Not having any
high memory, you might be better off sticking to real mode if you
can't get a DPMI server to run your program in low memory.
--
George Foot
- Raw text -