Recommended assembly tools & docs for beginning with ASM

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
Zontar
Very interested
Posts: 55
Joined: Fri Oct 21, 2011 8:58 pm

Recommended assembly tools & docs for beginning with ASM

Post by Zontar » Sat Jun 23, 2012 6:08 pm

Information on getting started with Genesis 68k programming appears to be scattered all about the web, together with what tools you would need for a Linux system. Many links I follow are also dead links, and I can't find a coherent set of documents that would enable me to get right into assembly programming for the Genesis.

So, being that I'd like to move onto assembly programming from C, what tools and documents would I need to get started? I have a 68k manual, that's about it. In particular, I'm mostly looking for a document that tells me everything that needs to be done for initialization (what sequence of routines to pass TMSS, initialize VDP, etc.), and also, the recommended assembler for someone using 64-bit Linux.

For those of you who develop directly using 68k ASM, what assembler do you use, and what documents tell you everything you need to initialize (and program) the Genesis?

BigEvilCorporation
Very interested
Posts: 209
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Post by BigEvilCorporation » Thu Sep 13, 2012 12:18 pm

Hi! I recently started learning too, and I've blogged the entire process here:

http://bigevilcorp.wordpress.com/2012/0 ... g-started/

http://bigevilcorp.wordpress.com/2012/0 ... uage-then/

http://bigevilcorp.wordpress.com/2012/0 ... the-beast/

It's by no means a tutorial, just a blog of my experiences learning how to program the Genesis, but it might help you get started!
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Thu Sep 13, 2012 12:27 pm

BigEvilCorporation wrote:Hi! I recently started learning too, and I've blogged the entire process here:

http://bigevilcorp.wordpress.com/2012/0 ... g-started/

http://bigevilcorp.wordpress.com/2012/0 ... uage-then/

http://bigevilcorp.wordpress.com/2012/0 ... the-beast/

It's by no means a tutorial, just a blog of my experiences learning how to program the Genesis, but it might help you get started!
Wow, your website is a very complete and nice tutorial for Genesis (ASM only) development ! It should definitely be referenced :)

sega16
Very interested
Posts: 251
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Thu Sep 13, 2012 8:37 pm

BigEvilCorporation wrote:Hi! I recently started learning too, and I've blogged the entire process here:

http://bigevilcorp.wordpress.com/2012/0 ... g-started/

http://bigevilcorp.wordpress.com/2012/0 ... uage-then/

http://bigevilcorp.wordpress.com/2012/0 ... the-beast/

It's by no means a tutorial, just a blog of my experiences learning how to program the Genesis, but it might help you get started!
Wow checked out your blog and I have to say that you have some very well written tutorials. I can tell that you have done your research before writing them too! Great job I hope it gets more people into genesis development.

BigEvilCorporation
Very interested
Posts: 209
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Post by BigEvilCorporation » Thu Sep 13, 2012 8:54 pm

sega16 wrote:
BigEvilCorporation wrote:Hi! I recently started learning too, and I've blogged the entire process here:

http://bigevilcorp.wordpress.com/2012/0 ... g-started/

http://bigevilcorp.wordpress.com/2012/0 ... uage-then/

http://bigevilcorp.wordpress.com/2012/0 ... the-beast/

It's by no means a tutorial, just a blog of my experiences learning how to program the Genesis, but it might help you get started!
Wow checked out your blog and I have to say that you have some very well written tutorials. I can tell that you have done your research before writing them too! Great job I hope it gets more people into genesis development.
Thank you so much :)

I must stress that they're not tutorials per se (although I try to go into as much detail as possible in the hope that it helps other people get started), so expect mistakes and contradictions and incompleteness.

If anything, writing it all down helped everything sink in properly. Assembly has finally become second nature to me, which is what I wanted :D
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

WayneK
Newbie
Posts: 7
Joined: Tue Apr 17, 2007 8:58 pm

Post by WayneK » Fri Sep 21, 2012 9:30 pm

Yes, nice + clearly written tutorials you've made there!

However I would recommend using something like VASM (http://sun.hasenbraten.de/vasm/) which is still maintained/bug-fixed, and has lots of nice features that the ancient & now obsolete SNASM assembler lacks (not to mention it's more compatible with modern OSes and a billion times faster).

BigEvilCorporation
Very interested
Posts: 209
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Post by BigEvilCorporation » Fri Sep 21, 2012 10:56 pm

WayneK wrote:Yes, nice + clearly written tutorials you've made there!

However I would recommend using something like VASM (http://sun.hasenbraten.de/vasm/) which is still maintained/bug-fixed, and has lots of nice features that the ancient & now obsolete SNASM assembler lacks (not to mention it's more compatible with modern OSes and a billion times faster).
I've found a few decent assemblers since starting my blog, but I've recently got hold of a Cross Products MegaCD kit with all the ISA cards, software and docs, so I'm sticking with SNASM since it's compatible with the debugger (in theory - I haven't yet got it fully running).

I haven't had any trouble running it on either Windows 7 or Windows 8, and I'm not sure why speed would ever be a concern on a processor built 20 years after the assembler was designed ;)
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

kubilus1
Very interested
Posts: 237
Joined: Thu Aug 16, 2012 2:25 am
Contact:

Post by kubilus1 » Sat Sep 29, 2012 4:44 pm

Linux, huh? I would take a look at the GNU assembler: http://sourceware.org/binutils/docs/as/

This works with a *ton* of different systems, and you only need to know the idiosyncrasies of each instead of a whole new assembler platform.

Oerg866
Very interested
Posts: 211
Joined: Sat Apr 19, 2008 10:58 am
Location: Frankfurt, Germany
Contact:

Post by Oerg866 » Sat Sep 29, 2012 6:27 pm

Hi,

if you ever get into sound programming, I'd be interested in figuring out the learning curve for the Echo sound driver, so I can make it easier for future users by covering big problems when you first try to use it.

Let me know if you're interested.

Post Reply