Skip to content
Developing for the Sega Mega Drive using 68k assembly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Learning 68k Assembly for the Sega Mega Drive

These programs are the result of following Big Evil Corporation's amazing series on developing for the Mega Drive, with some assistance from René Richard's 68k tutorials repo.

Running the Examples

I've been using asmx multi-CPU assembler due to its support for Unix and 68k assembly language. You'll need to compile it from source, but this is achievable with GCC. Note that you'll need to grab version 2.0 beta 5, as this is the only version to support end-to-end binary output, rather than merely providing object code.

To assemble the hello world example:

$ cd helloworld
$ asmx -e -b -C 68k main.asm

The produced binary (main.asm.bin) can be loaded by any emulator or even run on real hardware. I'm using BlastEm due to its 64-bit Linux support and debugging tools.

You can’t perform that action at this time.