Page 1 of 1
Mega Drive dev environment on FreeBSD
Posted: Fri Oct 19, 2007 2:00 pm
by ElBarto
Hello all,
Yesterday I was lazy to switch computer to do a little bit of dev on Mega Drive so I start to setup a dev environment on my FreeBSD desktop.
I've compiled the FreeBSD port m68k-rtems-gcc and it works fine to produce code for the megadrive (using Stef .ld file from his dev kit), I found a Z80 assembler too (z80-asm from Brainsoft).
I'm still searching a 68k assembler cause I totally dislike the gcc-asm syntax, is anyone is using one for FreeBSD or Linux ?
Posted: Fri Oct 19, 2007 5:56 pm
by Chilly Willy
Most folks here use asmx. It'll not only do 68000 using "normal" syntax, it'll do the Z80 for you too!
http://xi6.com/projects/asmx/
Posted: Fri Oct 19, 2007 7:00 pm
by ElBarto
OK, I'll test this tomorow.
Thanks.
Posted: Fri Oct 19, 2007 11:09 pm
by Chilly Willy
No problem. Just for reference, I'm using it in 64 bit Fedora 7 (linux).
Re: Mega Drive dev environment on FreeBSD
Posted: Sat Oct 20, 2007 4:30 am
by 8bitwizard
ElBarto wrote:Hello all,
Yesterday I was lazy to switch computer to do a little bit of dev on Mega Drive so I start to setup a dev environment on my FreeBSD desktop.
I've compiled the FreeBSD port m68k-rtems-gcc and it works fine to produce code for the megadrive (using Stef .ld file from his dev kit), I found a Z80 assembler too (z80-asm from Brainsoft).
I'm still searching a 68k assembler cause I totally dislike the gcc-asm syntax, is anyone is using one for FreeBSD or Linux ?
You can use the "regular" motorola syntax as long as you put the % sign in front of register names and use the pipe for comments. I hate the gnu mnemonics too, but this was good enough for me when doing asm for GCC.
Code: Select all
move.b 0xA10001, %d0 | read hardware version
andi.b #0x0F, %d0 | TMSS present if low 4 bits != 0
beq.b 1f | branch if no TMSS
move.l #0x53454741, 0xA14000 | move "SEGA" to the TMSS register
1:
There's also some special mode that makes it compatible with some old assembler using regular motorola mnemonics, but it also changes all the pseudo-ops too.