First post, by dobiz
Hi:
I use Dosbox 0.73 to run old scientific software once developed under Borland Pascal (BP7) for MS-Dos. By the way, thanks a lot to the developers of DosBox!
I came recently across a problem related to the use of FPU (Floating Point Unit 8087/80287) simultaneously with DPMI (Protected mode). I can run my program only 3 times, and the 4th time it crashes with a divide by zero.
Then I have quit DosBox and to rerun it, which allows me to run my program 3 times again!
I could simulate the same error with the following 4-lines program:
{$N+,E-}
begin
WriteLn(1.:1:0);
end.
This program works fine three times (screen output is "1"), and then bugs (screen output "0").
The problem does not appear if compiled in real mode. It does not appear either if compiled without FPU (i.e. with option $N-).
Thanks