Skip to content
Brandon Blodget edited this page Aug 23, 2017 · 10 revisions

Steps to build from source on Ubuntu

git clone [email protected]:mamedev/mame.git
cd mame
make REGENIE=1 TOOLS=1 -j5

The REGENIE option is kind of like "make clean" it make sure all the object files are regenerated.

The "TOOLS" option makes sure all the tools like "imgtool" are built.

MAME setup

The "mame64" executable and all the tools are built in the source directory. I add this directory to my path in my .bashrc file.

I created a "roms" directory in my mame64 source directory. In my ~/.mame/mame.ini file I updated "rompath" to point at this directory. I also set "natural" to 1. This maps the keys from my laptop to the emulated coco2 better.

Running mame64 for the first time I went to Configure Options->General Inputs->User Interface and set UI Toggle to INSERT (it was SCRLOCK). This makes the INSERT key toggle you between full emulated mode and partial emulated mode (instead of the SCRLOCK which my laptop does not have). In partial emulated mode some keys are remapped for MAME purposes. For example TAB will bring up a MAME menu, and ESC will quit MAME.

When you save the configuration it saves it in the "cfg" directory in a file called "default.cfg". The "cfg" file is located in the directory where you started mame64. So if you start mame64 from a different directory it will not have the configuration saved from the other directory.

I want to use the same cfg directory, no matter which directory I start mame64 in. I updated my mame.ini file to set cfg_directory to be $HOME/.mame/cfg

One other special key combo is Alt-Enter. This will toggle between MAME in full screen and window mode. It works in full and partial emulated modes.

Sample command line invocations

mame64 coco2 -skip_gameinfo -window -cass $CASS_DIR/bb_lowsr.wav
mame64 coco2 -skip_gameinfo -window -cart $CART_DIR/colorforth.ccc
mame64 coco2 -skip_gameinfo -window -flop1 $DISK_DIR/DISK0.DSK
mame64 coco2 -skip_gameinfo -window -debug -flop1 $DISK_DIR/DISK0.DSK

Resources

MAME compile Instructions for compiling MAME from source.

archive.org Has repositories of MAME roms.

imgtool doc imgtool is part of the mame distribution. It is used to create coco2 disk images.

MAME command line options

MESS FAQ This page helped me figure out how to exit the mame emulator.

Clone this wiki locally