[Coco] Found strangeness in C compiler (bug)

Mark McDougall msmcdoug at iinet.net.au
Tue May 21 21:57:59 EDT 2019


On 22/05/2019 12:02 am, Mathew Boytim via Coco wrote:

> Sdcc might be a good choice - it supports the TRS-80 but I'm
> not sure for which machine and which DOS (didn't work for my test). 

I don't think you'll get an executable for any TRS-80 DOS out of SDCC. 
It'll produce a binary or hex output that you can then convert to CAS or 
disk file as you prefer.

Here's a project that uses it that would probably be a good template, 
though building for a cassette might have to be tweaked for suitable 
loading addresses that won't clobber DOS...
<https://github.com/voidware/trek14>

Trying to recall the last time I used SDCC myself... I think it was for 
an old Cypress USB device chip which from memory had an 8051 core. There 
were a few caveats but nothing major IIRC.

Can't quite recall if I ever tried targeting a Z80 system with SDCC... I 
want to say I did but can't recall any details so maybe it's just 
wishful thinking?

Regards,

-- 
Mark McDougall
<http://retroports.blogspot.com.au>


More information about the Coco mailing list