Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

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.

(+1)

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!