Years and years ago I had bought this copy of Language Systems Fortran for MacOS with the intention of using my Quadra to build Dungeon for MacOS. Except I couldn’t figure out the first thing about MPW, and life was always busy and I never did figure it out. Well after getting GCC to compile something on MacOS, I thought I’d dig up some images I made of the disks, and without the benefit of having the manuals anymore see if I could figure it out.
FORTRAN Dungeon 2.5.6 on MacOS
And much to my amazement it compiled without any real issues. All the EOF markers in the files had to be fixed up, and gdt.f for some reason was mangled at the end, but it was trivial to repair. I didn’t bother trying to integrate the gettime call, so the clock and any clock events don’t work correctly. I guess I should make the seconds increment by 15 between calls, or something. Oh well I don’t think anyone will really care. I compiled it for the 68020 with 68881 hooks, although I doubt it even makes any calls. It runs for me.
I just saw mention of my Snoopy on Fortran over on hawk.ro. He’s in the process of formatting it to run on a REAL VAX. So this will have to do for the placeholder when he shows us what it looks like on paper!
So with all the excitement with jsDOSBox it was about time I tried to get something from my old java dosbox stuff running again.
As a quick note, as of right now, you cannot boot into a disk image… Nor can you really run bat files, or any kind of drivers beforehand. It’s basically either use a script that adds files one by one, or use an image file which gets mounted, and you run your exe/com file from that.
So here we go, back again is the old Fortran Dungeon (zork) compiled with QuickC for Windows, running on the working model version of Windows 3.0.
Its been a while since I’ve added a new port of Dungeon (zork!) so here we go!
Building f2c was a snap on the x68000, it just took a while..
Getting data into the VM was easy, just make an ISO image, and mount it.. Getting data out was.. a challenge, as the floppy doesn’t work under NetBSD, and it didn’t seem to want to see my other hard disks, just my root. Well thankfully it’s virtual so I just did a:
tar -cvf /dev/sd0c dungeon.tar.gz
NEVER do that on a real machine kids!!!
Anyways here you go, for anyone who loves zork & the m68k!
I forget how I got linked back to this, but I figured in the new year vogue, I’d make a video to show how … convaluted it is to build dungeon via f2c.
As you can see, first I have to compile f2c as a Windows QuickWin exe as the MS-DOS version just runs out of memory without some kind of DOS Extender, and Windows 3.0 makes a suitable extender..
Next, I had to make a ‘list’ program that then exectued f2c against the Fortran converting them to C. Then finally I just compile the libf2c components, then statically add in the Dungeon source that was just converted. There is some ‘out of range’ case statement, not sure why, but it works… as you can see.
It builds/runs in 286 enhanced mode and beyond.. Obviously the more memory the better.
This was on Qemu 0.15.0 with MS-DOS 4.01 & Windows 3.0