Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming Environment for a Motorola 68000 in Linux

Greetings all,

I am taking a Structure and Application of Microcomputers course this semester and we're programming with the Motorola 68000 series CPU/board. The course syllabus suggests running something like Easy68K or Teesside Motorola 68000 Assembler/Emulator at home to test our programs.

I told my prof I run x64 Linux and asked what sort of environment I would need to complete my coursework. He said that the easiest environment to use is a Windows XP 32bit VM with one of the two suggested applications installed, however, he doesn't really care what I use as long as I can test what I write at home.

So I'm asking if there exists some sort of emulator or environment for Linux so I can test my code, and what sort of caveats I will run into by writing and testing my code in Linux.
Also, I plan to do my editing in Vim, which probably isn't a problem, but I would like any insight into editors for 68000 assembly, if you have any.

Thanks!

EDIT: Just to clarify - I don't want to install Linux on the board at all - I want to program on my home machine, test the code locally, and then bring it onto the board for grading/running.

like image 482
Nick Presta Avatar asked Sep 12 '09 01:09

Nick Presta


2 Answers

I am taking a similar course at university, and I'm studying m68k too, althought in great delay, here are my findings (other people could appreciate):

  1. Easy68k runs quite smoothly in GNU/Linux using Wine, unless you use two monitors.

  2. I managed to set up a virtual Debian/68k environment, in order to be able to ditch Easy68k and use GNU/Emacs to write code. Here are my notes about this thing: http://santoro.tk/blog/?p=346 . Note: this method has a main downfall: unless you're writing code in kernel-space (very unlikely for those kind of courses) you'll always be using m68k in user mode, that is, mode U. Standard GNU/Linux toolchain is available here (binutils etc).

like image 71
znpy Avatar answered Oct 12 '22 22:10

znpy


I code for 68000 (predominantly Atari ST) and use VASM (http://sun.hasenbraten.de/vasm/) as my cross-assembler of choice. Linux, Mac and Windows builds exist.

like image 29
Rob Cowell Avatar answered Oct 13 '22 00:10

Rob Cowell