First post, by calguy19
I'm interested in running some of the old DOS applications, including Fortran. I have 2 Fortran compilers on my PC. MS Fortran 5.1 and Ryan MacFarland ProFort. Both work. I installed a few of the DOSBOX apps from the google market to my phone, and they all run great. Using Fortran has 2 parts - running the exe files and installing the complilers on the phone. I've done both, Can run exe files made on the PC or on the phone. All run.
There is ONE problem. Some of the program output does not display properly on the phone console. The number 1.0 displays as 0.0 (all the other numbers I've seen so far seem ok). With the MS compiler, replacing the PRINT statement with WRITE (to console) fixes the problem, and writing to a text file also works. With my 2nd compiler, neither fix works. 1.0 is always displayed as 0.0.
There seem to be several routines in DOSBOX that handle output from programs. Depending on which one is called, the output can be as it should be, or it can have the above problem. Does anyone know what's going on in DOSBOX and if it can be patched? I've already talked to 3 developers who looked into this, but didn't come up with a solution. They suggested I try this blog.
calguy19