

I have setup a nice little compiling environment on my Mac that I will explain how to replicate below. The latest update was only a month ago so Pierre is still actively improving the compiler even though it is already quite complete. CMOC can compile code for other 6809 environments but it is geared towards the CoCo. I learned that there is a ‘C’ compiler called CMOC written by Pierre Sarrazin that actually takes ‘C’ source code and compiles it and the output can be executed on a CoCo under RSDOS. But I think playing with them and seeing how the code runs on my CoCo will give me an added incentive to finally grasp ‘C’. I’ve dabbled with ‘C’ language for years but can’t wrap my head around the structured format especially arrays and pointers. RSDOS is where I learned to program BASIC and assembly and that was what I enjoyed most about my CoCo. The CoCo has had ‘C’ under OS-9 but I’ve never really enjoyed OS-9 like I did RSDOS. I thought maybe I could port some newer games to it and thought it would be neat to use C on the CoCo. This led me back to using MAME to emulate my favourite old computer the TRS-80 Color Computer (also known as the CoCo).

Below I will explain how to easily setup an environment for compiling C language programs and executing them on a TRS-80 Color Computer.Īfter compiling the latest MAME on my Raspberry Pi I started getting into retro computing.
