Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New LCC Target - Cosmac 1802 8 bit processor

106 views
Skip to first unread message

bill rowe

unread,
Apr 13, 2013, 10:11:48 AM4/13/13
to
For the last few months I've been developing an LCC target for the COSMAC 1802 http://en.wikipedia.org/wiki/RCA_1802 as used in the 1970's ELF Computer and still available as an Intersil part.

The 1802 has a very simple and regular instruction set that makes it fun to program at the machine language level. It was quite easy to get a first crack at a 16 bit integer C subset and from there I've progressed to 32 bit integers and floats. At the same time I've incorporated LCC mods that I've encountered here like support for inline assembler.

The generated code is not optimized but it's rock solid and I'm going to work on post-compile optimization using something like COPT.

My main motivation is to use the C compiler as part of an Olduino project that provides a modern arduino-type development environment for the 1802. I've been able to use LCC1802 with code cribbed from arduino to attach displays, read distances with ultrasonic sensors, and attach to the internet.

The LCC1802 compiler is hosted on google sites https://sites.google.com/site/lcc1802/

The Olduino project is hosted at https://olduino.wordpress.com/

Thanks to the contributors here and to the original LCC developers.


0 new messages