A C compiler that can compile for dragon 32?

A place to discuss everything Dragon related that doesn't fall into the other categories.
User avatar
Bosco
Posts: 333
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: A C compiler that can compile for dragon 32?

Post by Bosco »

I have a copy of bin2cas.exe in the folder where my binaries live.

I then just do the following using a batch file, (substitute `prog' for the name of your file). :)

Code: Select all

bin2cas -o prog.cas -C prog.bin
bin2cas -o prog.wav -C prog.bin
I should add I'm running Windows not Linux.
Alastair
Posts: 669
Joined: Fri Jul 18, 2008 11:33 pm

Re: A C compiler that can compile for dragon 32?

Post by Alastair »

Assuming that I am reading it correctly, the CMOC manual states that without switches CMOC creates CoCo RS-DOS executables. In which case I guess the switches for Bin2Cas should be:

Code: Select all

./bin2cas.pl -C main.bin -o main.cas
or

Code: Select all

./bin2cas.pl -C main.bin -o main.wav
Edit. Whilst I was reading the CMOC manual and Bin2Cas help file Bosco answered the query! Personally I would follow Bosco's advice since he has experience of the programs.
lukeoftheaura
Posts: 14
Joined: Sat Apr 29, 2017 7:13 pm

Re: A C compiler that can compile for dragon 32?

Post by lukeoftheaura »

Bosco wrote:I have a copy of bin2cas.exe in the folder where my binaries live.

I then just do the following using a batch file, (substitute `prog' for the name of your file). :)

Code: Select all

bin2cas -o prog.cas -C prog.bin
bin2cas -o prog.wav -C prog.bin
I should add I'm running Windows not Linux.
It's now working fine, thanks!
also, do you happen to know any way to use graphics from CMOC programs?
User avatar
Bosco
Posts: 333
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: A C compiler that can compile for dragon 32?

Post by Bosco »

Great stuff! Glad things came together for you. :D

I'm not familiar with C or CMOC but maybe other users on this forum can help you further?

Failing that, maybe try contacting CMOC's author? He's written a number of sample programs, including graphical card games, (which you'll find the source for on his website).
lukeoftheaura
Posts: 14
Joined: Sat Apr 29, 2017 7:13 pm

Re: A C compiler that can compile for dragon 32?

Post by lukeoftheaura »

The only ways I can really think of drawing graphics would be either writing asm to d ogrpahics inline with my C programs or somehow using them alongside BASIC, both I don't really want to do. The demos on the site look interesting but seem to rely on tandy colour basic being used(?)
Post Reply