Page 1 of 1
Alternative programming languages for Genesis development?
Posted: Sun Apr 21, 2013 8:28 pm
by djcouchycouch
Are there other programming languages available for Genesis homebrew? Assembly, C, C++, and ?
Posted: Sun Apr 21, 2013 8:38 pm
by TmEE co.(TM)
There's the BasiEgaXorz compiler that implements a flavor of BASIC.
Posted: Sun Apr 21, 2013 8:38 pm
by djcouchycouch
TmEE co.(TM) wrote:There's the BasiEgaXorz compiler that implements a flavor of BASIC.
Ah yes, that's right. Forgot about that one.
Any others?
Posted: Sun Apr 21, 2013 10:08 pm
by Chilly Willy
I usually enable building Objective-C/C++ on my toolchain in addition to C/C++. Technically, anything with a XXXXX-to-C/C++ translator could be used as well.
I would love to see an open source BASIC compiler for the MD... while BEX is pretty good, it's got lots of issues... mainly because it's closed source, and not worked on very often, so it's got lots of bugs you have to work around, and very poor documentation.
Posted: Sun Apr 21, 2013 10:23 pm
by TmEE co.(TM)
I'll be working on a assembler+compiler (asspiler

) for MD and one 68K based project of mine, but there's lot of time until I start actually implementing it.
This is the rough spec for now, subject to change as I see fit.
http://www.tmeeco.eu/BitShit/MéSIC.TXT
Posted: Mon Apr 22, 2013 8:27 am
by mic_
I wrote
a Forth compiler long ago, which can generate M68000 code, and I wrote some small test programs for the Genesis using it.
But the M68000 code generator and/or peephole optimizer is a bit buggy IIRC, so I can't really recommend it for others to use.
Code: Select all
\ Write a string to the screen
: puts ( strptr x y -- )
0xE000 swap 6 << + swap 2* + set_vram_addr
begin true while
dup c@ dup 0= ?leave 32 - 0x8000 or #VDPDATA w!
1+ repeat drop drop ;
