Higher level language with old mc6800/6802/6808 mpu?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Higher level language with old mc6800/6802/6808 mpu?

2,270 Views
Old8Bit
Contributor I

Hi all:

 

I'm into pinball machines and have the dream of generating custom code for an old 1980's era pinball machine.

The particular machine uses an old Motorola 6802 processor.  So here's the question... do I have to write in assembly or are there higher level language options?  I've found C compilers for the 68hc11, 6805 and 6809 but nothing for a mc6800/6802/6802.  I'm not surprised as the 6800/6802/6808 processors are much older but I'm hoping someone knows of something... Perhaps written by a hobbyist.

 

The other option is to find a newer cpu with a same or similar pinout but so far no dice on that either... any ideas?

 

Thanks!

Tim

Labels (1)
0 Kudos
3 Replies

1,144 Views
celsoken
Contributor V

Dear Tim,

 

Motorola in old times released small C for some processors. Maybe it's a good starting point.

The release had source code for the compiler and I think it was not targeted specifically for the HC11.

 It was probably ported from older stuff.

 

If you dont find it on the web I can try do dig on my legacy stuff.

I'm quite sure I saw it on Motorola User's Group.

 

Good luck,

 

Celso

0 Kudos

1,144 Views
xiaolaba
Contributor I

GCC for MC68HC11 may be the only possible solution with minimum effort & cost.

 

you can try to port to 6802 by mapping those instruction sets and C-struct

 

http://www.gnu.org/software/m68hc11/m68hc11_pkg_zip.html

 

0 Kudos

1,144 Views
bigmac
Specialist III

Hello,

 

the HC11 has more available instructions than the 6802.  How do you prevent the GCC compiler from making use of the unavailable instructions?

 

Regards,

Mac

 

0 Kudos