-
Notifications
You must be signed in to change notification settings - Fork 10
DOS
Why? I don't know. I wanted to see if I could do it, and I did.
A system running MS-DOS, FreeDOS, or your other favorite DOS variant; or, any version of Microsoft Windows that supports running 16-bit code. (However, anyone running Windows Vista or newer should use the Windows builds instead!)
The binary release is compiled for the Intel 8086, so it will run on anything from the oldest IBM PC to the latest x86 processors. The x86S architecture is not supported by the DOS build.
I had to make some sacrifices to get this to compile for DOS. Namely, all APRS-IS support is automatically disabled when compiling on DOS.
Additionally, due to filesystem limitations, the compiled binary should be called APRSWX.EXE.
- Download and install the OpenWatcom compiler.
- Download and extract the source code.
- Run MAKE.BAT.
There are some things that I'd like to add to the DOS build, but are beyond my skill set.
DOS does not have native networking support. However, I know that things like mTCP exist. If anyone knows how to port my GNU-compatible socket code to run on mTCP instead, submit a pull request!
Because OpenWatcom only supports C89, I had to redefine the C99 math functions that my code uses. When compiling on DOS (or, in fact, any system that's lacking C99 support), my custom c99math.h
and c99math.c
libraries will be compiled and linked. This introduces the possibility of me creating software bugs. Is there a better way to do this?