4 ms·
I would check out the Andre Lamothe DOS game programming books You will also want to start with a 16-bit C compiler like Borland Turbo C or Microsoft C, a lot
by bluedino 3y ago
I would check out the Andre Lamothe DOS game programming books
You will also want to start with a 16-bit C compiler like Borland Turbo C or Microsoft C, a lot of the code is very different from the 32 but protected mode versions
There's always DJGPP which Quake was written in, but again 16-bit DOS code isn't going to run as-is.
- markus_zhang 3y agoThanks. I used to do some C++/sdl2 game programming just for fun but I think this project needs more study. TBH I don't know if Commander Keen is using protected mode. I do not understand the code and I assume not. I need to know how to program and compile for DOS 16-bit, as you said, and how to inline assembly, and how to use assembly to put pixels on screen using a virtual ega card provided by dosbox.
- bluedino 3y agoIt did not use protected mode https://github.com/keendreams/keen https://github.com/keendreams/keen https://fabiensanglard.net/ega/ https://fabiensanglard.net/ega/
- myth_drannon 3y agoLamothe or Michael Abrash. Archive.org has books from both authors.
- badsectoracula 3y ago> You will also want to start with a 16-bit C compiler like Borland Turbo C or Microsoft C The parent post mentioned they're going to use OpenWatcom which is an actively developed[0] C and C++ compiler that targets 16bit DOS (among others). [0] https://github.com/open-watcom/open-watcom-v2 https://github.com/open-watcom/open-watcom-v2
- bluedino 3y agoAhhh I thought it was 32-bit only, not sure if I ever used their DOS compiler in the old days or not.
- jamesfinlayson 3y agoOh I have an Andre Lamothe book on Windows game programming - I didn't realise he'd written DOS game programming books too.