MAME is software that emulates the circuitry of a wide range of arcade machines—the kind found in game arcades. Its name stands for “Multiple Arcade Machine Emulator.” Distributed free of charge, including its source code, it recreates the electronics of arcade machines on a PC, Mac, or other computer so their games can run. The technology behind this is complex, but users do not need to know about hardware or electronics: install MAME, choose a game, and in seconds you can enjoy hours of free entertainment at home. There are, of course, some limitations, which we’ll cover below.
Classic games such as Galaga are available in MAME.
Break those bricks! (Arkanoid 2)
“1492”—do you know it?
“Afterburner 2” is available too.
How MAME emulates arcade machines
MAME recreates the hardware inside arcade machines. These machines are computers, usually with only a fraction of the processing power of a modern PC. Their components include a processor—such as a 6502, like the one in the Commodore 64; a 68000, found in some Atari systems; or a Zilog Z80—plus RAM and one or more ROM chips holding the game program. Because games are generally small, they can run from ROM without a diskette or hard drive.
The game’s ROM must first be placed in a file that MAME can read. MAME then makes the game behave as though it were running on the original machine by recreating the environment it expects. It takes each instruction written for the arcade machine’s processor, translates it into an instruction the computer can execute, and runs it. A modern computer is much faster and more powerful than arcade hardware, so in almost every case the game runs at the same speed as it did on the original machine.
“Multiple” in MAME’s name refers to its ability to emulate different arcade machines. When this article was written, it supported more than 3,200 games. That does not mean it emulates 3,200 separate machines: one machine could often run several games simply by swapping its ROM chips, much as a computer runs different programs. Even so, MAME covers a wide range of machines, and the project is technically ambitious. Some systems, for example, have more than one processor, which makes them difficult to emulate.
Most of the games are from the 1970s and 1980s. A powerful computer can also run games from the 1990s and even some from this century without difficulty. These are not simulations: they are the original arcade games running on a computer.
Race around the tracks in a Ferrari (OutRun).
The “waka-waka” game (Ms Pacman).
What do you need to run MAME?
A modest computer can run MAME and emulate most games; only the more recent games need a faster machine. A 200 MHz Pentium with 32 MB of RAM, a 4 GB hard drive, a sound card, and a VESA 2.0 or better video adapter should handle 75% of the 3,200 available games without trouble.
For nearly all games, a 500 MHz Pentium III, a 2D accelerator card, 64 MB of RAM, and a Sound Blaster card should be enough. Since the emulated games are not 3D, a high-end graphics card does not help much. MAME may be able to launch a game without guaranteeing that it will be playable on every computer; newer games may struggle even on a Pentium 4. An S-video output can be useful if you want to connect the computer to a large television. We’ll also see how to build a complete arcade machine for your home.
On a Mac, any computer based on the G3 should run MacMAME well. MAME versions are available for almost every operating system: DOS, a good option for older computers; Windows 95, 98, and XP, where the emulator is called MAME32; Linux; Mac; and Amiga. The software is continually improved to emulate more machines, so it is worth updating it periodically. New versions for Mac and PC often appear at the same time, while other platforms can take longer to catch up. At the time of writing, there had also been discussion of MAME versions for some Nokia mobile phones, which would let users run arcade games on them.
MAME really is free, and its source code is freely available. Selling MAME or its source code is illegal.
Pac-Man, an arcade classic.
Golden Axe, emulated by MAME.
Is MAME illegal?
No. Emulating a hardware platform is not illegal, nor is installing MAME on your computer or making it available for download on your website.
ROM images are a different matter. Companies that own the copyrights have contacted many sites hosting ROMs and asked them to take the files offline. To date, no one has ever been sued or prosecuted. Nintendo’s position, for example, is clear: it argues that copying ROM contents is the same as copying any other copyrighted software and is therefore illegal.
There are legal ways to obtain ROM images. You could look for auctions on eBay or elsewhere selling the original arcade circuit boards and buy a ROM reader to copy the chips’ contents into files. Another option is the HotRod Joystick control panel, which includes a CD with MAME and a selection of 100% legal Capcom ROMs. The official MAME site also offers sets of free ROMs in its downloads area.
Several football games are available.
Show off your skills in “Bagman.”
New games and installing MAME
As time goes on, MAME developers—with help from thousands of contributors who send suggestions by email and provide emulator routines—release new versions that make more games available. The project benefits greatly from having public source code: anyone can study it or use it to create another emulator, provided they acknowledge any MAME code they used and do not charge for it. Each emulator release includes a file called GAMELIST.TXT, listing the games it can run.
To install MAME, first get a copy by downloading it from the internet or finding it on CD-ROM. Once the emulator is installed, you’ll need the games themselves—the ROMs—because MAME does not include them. The original article suggests file-sharing programs such as eMule, searching online, or looking for ROM sets in the official MAME site’s “miscellaneous downloads” section. ROM files are usually compressed, and there is no need to unzip them: since version 0.31, MAME can read zipped files automatically. Installation creates a ROMS subfolder inside the game folder; copy the game files there.
Operation Wolf in full swing in MAME.
Just like the original!
Starting a game and setting controls
After installation, open the folder containing MAME’s files and double-click the blue MAME32 icon. You can create a desktop shortcut or add one to the Windows Start menu for convenience. MAME simply unpacks into folders on your hard drive; it does not change the registry or create shortcuts. To remove it, just delete its folder.
When the program opens, it shows the games it can emulate, with a different color marking the ones whose ROMs are present in the appropriate folder. Folders on the left group ROMs by year, favorites, and other categories. A screenshot of the selected game usually appears on the right; double-click it to start the game.
Before a game begins, you may see odd characters flashing across the screen. This is not a software fault: the program in the ROM is checking the hardware before it starts. MAME emulates the original hardware completely, including this startup sequence.
As in an actual arcade, you need to “insert a coin” before you can play. Press 5 to add a coin (you can add several), then 1 to start. In games that support two players, press 2 to start a two-player game, provided you have inserted at least two coins. Most games use the arrow keys, ALT, CTRL, and the space bar, though more complex games may use other keys. Press TAB during a game to open the configuration menu, where you can check the controls and remap them.
Some games show thin black horizontal lines. MAME reproduces the scanned video modes common in arcade machines from 20 years ago. On a low-resolution arcade monitor, the narrow gaps between the electron beam’s scan lines are visible; on modern high-resolution screens, they usually are not. To hide the lines, edit MAME.CFG and change scanlines = yes to scanlines = no.
Select the game to emulate here.
“Asteroids,” a classic vector-graphics game.
Captures and different versions of the same game
Press F12 at any point during a game to take a screenshot. It saves a .PNG snapshot in the MAME folder or in the MAMESNAP subfolder, if that folder exists. Although PNG is not as popular as JPG or GIF, you can print the images or view them in programs such as Paint Shop Pro or the Windows XP Fax and Picture Viewer.
The game list may show several versions of the same title. Games were often licensed to other companies, or became so popular that another company obtained a license to release its own version. For instance, Namco and Midway both sold Pac-Man; Dig Dug was released by Atari and Nazco. MAME can emulate these different versions, so the same game can appear more than once in the list.
Build an arcade machine at home
Who hasn’t dreamed of having an arcade machine in the living room? MAME makes it possible. Many users have built wooden cabinets shaped and sized like the original machines, sometimes painting the sides with the same artwork. The PC and monitor fit inside, with the screen visible through the glass at the front. Controls can be built or bought and connected to the PC’s joystick port; the speakers connect to its sound card. The result is a close replica of an arcade machine, with the advantage that you can easily switch games and play for free.
The website marcianitos.org has a gallery of user-built machines and guides to making one at almost no cost. Since MAME does not need a very powerful PC—a Pentium II is enough, as discussed above—an old computer stored in the attic may do the job. For an authentic look, use a graphics card with TV output and install a 20-inch television or thereabouts as the display.
You can also look on eBay.com for arcade machines. Some are sold as nonworking because their boards have burned out, even though the cabinet, controls, and monitor still work. With a little skill and time, you can fit a computer inside and put more than 3,200 games in your living room.
Inside an arcade cabinet built by an enthusiast.
The finished cabinet looks like this…
Learn how to build your own arcade machine.