🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Having played it (great job!), this actually could be optimized all the way down to an 8088, as the playfield doesn't scroll.  A challenge for the next CGA JAM, perhaps.  :)

Thanks Jim!

This certainly could be worked to run on a 8088, but I only have a 486 at my disposal. Also, I'm still not sure if modern versions of DJGPP are still capable of generating real mode code (used GCC 7, cross compiling from Ubuntu).

Anyway, I'm certainly not done with DOS Game Development :)


You have a few options in 2017 for making 16-bit DOS games coming from a 32/64-bit GCC background:  An old 16-bit compiler like Borland C or Turbo C; OpenWatcom which can compile to a 16-bit output; or probably the best option, a newly-released toolchain based on GCC 6.2 available here: https://blogs.mentor.com/embed... (if the link didn't make it through, google for "Sourcery CodeBench Lite for IA16").

My DOS retrocoding is in a mix of Turbo Pascal and assembler, as the TP IDE allows coding/debugging on the old hardware itself.  But I'm old, and quite insane.

Took me a while, but I finally got GCC-IA16 to work well and even display some basic CGA graphics.

The lack of far pointers leads me believe I will have to rely on ASM for that, right?

Considering I already have to do it for keyboard anyway..

From the primary author of GCC-IA16: "This is true of the Mentor version. Since then, TK Chia has made some patches to add far pointer support. I haven't tried them yet and don't know where to get a binary (perhaps I'll try to make a new release at the start of April). I have heard that the FreeDOS folks have had some success with Chia's version and can now use that to build instead of Watcom, so if you can track down one of those guys they might have a good lead. Searching twitter for gcc ia16 might be a good start. "

My personal advice is to try to work within near pointers.  Far pointers is something you do because you have to, not because you want to.

I actually had a chance to talk to one of the FreeDOS/DOSEmu guys personally during FOSDEM last week and, by his advice, I have filled a ticket with TK Chia's repo. I'm facing some difficulties building it and thus have been trying to get by with Mentor's version.

Maybe I misunderstood something about CGA memory, but I was under the impression that I needed far pointers to copy stuff there. Information on anything but VGA is sadly hard to come by these days (with the CGA being, oddly enough, somewhat easier to get stuff than EGA).

Anyway...gonna try harder then. Procuring a machine has been a quite daunting task in itself, So plenty of time until I'm able to try anything =) 

Thanks for answering such old topic.


You're correct, you need a FAR pointer to access memory at arbitrary locations, such as CGA at B800:0000.  If you can inline assembler, this becomes a lot easier, as you can just set ES:DI directly to B800:0000 and DS:SI to the source of your graphics.  Good luck!