The other day I got the idea to make the Forth compiler I had previously written output M68000 code so I could use it to program the Megadrive (Genesis). Said and done - it's now at the point where it can output working code for a decent subset of the Forth langauge.
Here are some demos I wrote using my compiler (including sources):
download
The full compiler package including the compiler, its source and demos for all the platforms it supports can be found
here
For the M68000-side of things, it outputs code suitable for the Gnu assembler (m68k-coff-as).
For those of you who don't know, Forth is an old stack based language where you write expressions in reverse polish notation. E.g
Code:
1 2 + 5 * \ Add 1 and 2, then multiply the result by 5
It's not the most practical language to write demos/games in, but a fun challange (me just being nuts is another possibility..
🙂
Enough ranting, check out the demos if you wish. If someone has a flash kit and wants to test them on hardware, that'd be great, since I don't have the necessary equipment myself.