[Coco] [Color Computer] SDCC

James Diffendaffer jdiffendaffer at yahoo.com
Mon Jul 18 01:31:44 EDT 2005


First of all... there seems to be a post missing in action. 
Yahoo strikes again.

I had the 6808 docs.  It and the 68hc08 are very different.  The 6808
would have been pretty close.  The hc08 isn't.  The code looked really
odd when using a guide to the 6808 and looking at a 68hc08 register
map.  After seeing that I searched some more and found the right info.
 Everything made sense after the switch to the 68hc05 docs.  

The code is data driven so I can support the 6803/6809/6309 from the
same code.  At least as long as the 6803 doesn't reqire differences
the code genarator.  If it does I'll just call the appropriate
routines via tables of pointers.
6309 support should work as soon as the 6809 though and the
differences are already complete!

SDCC will generate better code than the Small C compiler and the ones
that grew out of Small C.  A 6309 version is worth doing and I'm
already working on it and 6803.  The code works off of a register data
table so it's not that bad... just point at the table you want and set
the number of registers.  The code generation may need a little work
to deal with minor differences the 6803 has... not sure yet.

As for SDCC on OS-9... I just want to get some initial 6809 code
generated with the least amount of changes first.  Once that's
complete I can worry about OS-9 specific details.

Here's the status of what I've already identified as needing changes.
I'd be further along but I stopped to watch a John Wayne movie that's
never been on TV. :D

1. Update make and project files.  Done (?)
2. Update include file with new funtion names Done (?)
3. Register maps for 6803/6809/6309. Done! Implemented in the same
manner as the Z80/GBZ80 compiler
4. Register assignment. Under way... should finish most of it tonight.
5. New defaults and "AssemblerPreamble" 0%
6. Update main Globals.  50% (?)
7. Update code generator.  5% (?)
8. Remove hc08 code setting up CPU.  OS-9 or RS-DOS does this. 0%
9. Output OS-9 or CoCo format 0%
10. New command line options to select CPU target. 0%






Brought to you by the 6809, the 6803 and their cousins! 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ColorComputer/

<*> To unsubscribe from this group, send an email to:
    ColorComputer-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 






More information about the Coco mailing list