X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: rugxulo AT gmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: V2.04 atof() with em387.dxe not working Date: Fri, 21 Dec 2007 13:32:06 -0800 (PST) Organization: http://groups.google.com Lines: 57 Message-ID: References: <476126B6 DOT 22072 DOT 1F8A1AB AT gerritvn DOT gpvno DOT co DOT za>, <0ab65951-727f-4072-b08a-844c374e2647 AT 1g2000hsl DOT googlegroups DOT com> <476705CB DOT 16539 DOT 264EBE5 AT gerritvn DOT gpvno DOT co DOT za> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1198272727 16577 127.0.0.1 (21 Dec 2007 21:32:07 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 21 Dec 2007 21:32:07 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: r60g2000hsc.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Dec 17, 3:27 pm, "Gerrit van Niekerk" 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.)