Mail Archives: djgpp/2007/12/21/16:45:09
On Dec 17, 3:27 pm, "Gerrit van Niekerk" <gerri DOT DOT DOT AT gpvno DOT co DOT za> wrote:
> > On 15 Dec 2007 at 9:28, rugx DOT DOT DOT AT gmail DOT com wrote:
> > Can you post your example (or a simplified version at least) or even an .EXE?
>
> Here is a simple example which shows the problem. Of course you have to run it on
> a machine without a floating point unit by setting emu387:
Confirmed. I tested on both a P166 under pure DR-DOS 7.03 (had to "set
387=n" first) and a 486 Sx/25 under pure MS-DOS 6.22. For whatever
reason, running under DOSBox 0.72 or Win XP or Vista doesn't respect
the "387=n" environment setting. (Oh, and I linked with -lemu or -
lwmemu for the below binaries. Plus, I UPX'd 'em, if you're curious.)
------------------------------------------------------------------------------------------------
C:\TEMP\*.*
fptest c 252 fp203emu exe 41,380
fp204emu exe 47,000 fp204wm exe 52,236
[ MS-DOS ] Fri 12-21-2007>fp203emu
String 1.23 Floating value 1.230000
[ MS-DOS ] Fri 12-21-2007>fp204emu
String 1.23 Floating value 0.000000
[ MS-DOS ] Fri 12-21-2007>fp204wm
String 1.23 Floating value 1.230000
[ MS-DOS ] Fri 12-21-2007>scrndump a:\fp-486.txt
------------------------------------------------------------------------------------------------
D:\TEMP\*.*
. (DIR) .. (DIR)
fptest c 252 fp203emu exe 41,380
fp204emu exe 47,000 fp204wm exe 52,236
[ DR-DOS ] Thu 12-20-2007>set 387=n
[ DR-DOS ] Thu 12-20-2007>fp203emu
String 1.23 Floating value 1.230000
[ DR-DOS ] Thu 12-20-2007>fp204emu
String 1.23 Floating value 0.000000
[ DR-DOS ] Thu 12-20-2007>fp204wm
String 1.23 Floating value 1.230000
[ DR-DOS ] Thu 12-20-2007>scrndump a:\fp-p166.txt
------------------------------------------------------------------------------------------------
P.S. Wouldn't it be better if DJGPP.ENV set EMU387 automatically
(might save some DOS environment space??)?
Oh, and I still say it's legal to include WMEMU387.DXE without GPLing
your code, but if you're worried either make the end user download it
themselves if needed or try to find the author (W. Metzenthen) for
explicit permission. (BTW, a simple "make" doesn't work anymore, yuck.)
- Raw text -