World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0000102786
Reproduction Date:

Title: Mame  
Author: World Heritage Encyclopedia
Language: English
Subject: NO$GBA, Higan (emulator), Dingoo, Amiga, Arcade game
Publisher: World Heritage Encyclopedia


Developer(s) Nicola Salmoria and the MAME Team
Initial release February 5, 1997 (1997-02-05)
Stable release 0.156 (November 26, 2014 (2014-11-26))
Preview release 0.155 (October 15, 2014 (2014-10-15))
Written in C++ (C and Python for some drivers)
Operating system Cross-platform
Type Emulator
License MAME License

MAME (an [2] Joystiq has listed MAME as an application that every gamer should have.[3]

The first public MAME release (0.1) was on February 5, 1997, by Nicola Salmoria. The emulator now supports over seven thousand unique games and ten thousand actual ROM image sets, though not all of the supported games are playable. The project is currently maintained by MESS project leader Miodrag Milanovic.[4]

History and overview

MAME's main menu

The project was started by the Italian programmer Nicola Salmoria. MAME traces its roots to an earlier emulator project called Multi-Pac, but the name was changed as more and more games started to be emulated within the MAME framework. In April 1997, Salmoria stepped down due to his national service commitments, handing stewardship of the project to fellow Italian Mirko Buffoni for a period of half a year. In May 2003, David Haywood took over the job of the coordinator. From April 2005 to April 2011, the project was coordinated by Aaron Giles.[5] Angelo Salese stepped in as the new coordinator.[6] In 2012, Miodrag Milanovic took over.[4] The project is supported by hundreds of developers around the world and thousands of outside contributors. It also has RetroArch/Libretro port.[7]

At first, MAME was developed exclusively for MS-DOS, but it was soon ported to Unix-like systems (X/MAME), Macintosh (MacMAME and later MAME OS X) and Windows (MAME32). Currently, the main development occurs on the Windows platform, and most other platforms are supported through the SDLMAME project, which was integrated into the main development source tree in 2006.[8] In addition, different versions of MAME have been ported to other computers, game consoles, mobile phones and PDAs, and at one point even to digital cameras.[9] In 2012, Google ported MAME to Native Client, which allows MAME to run inside Chrome.[10]

Major releases of MAME occur approximately once a month. Windows executables in both 32-bit and 64-bit fashion are released on the official web site of the development team, along with the complete source code.[11] Smaller, incremental "u" (for update) releases were released weekly (until version 0.149u1) as source Subversion server for those who wish to access it. This is intended only for those who have access to compiler tools and feel comfortable building software from source code.

The architecture of MAME has been extensively improved over the years. Support for both raster and vector displays, as well as multiple CPUs and sound chips, were added to MAME in the first six months of the project. A flexible timer system to coordinate the synchronization between multiple emulated CPU cores was implemented, and ROM images started to be loaded according to their CRC32 hash in the ZIP files they were stored in.[5] MAME has pioneered the reverse engineering of many undocumented system architectures, various CPUs (such as the M6809-derivative custom Konami CPU with new instructions) and sound chips (for example the Yamaha FM sound chips), and MAME developers have been instrumental in the reverse engineering of many proprietary encryption algorithms utilized in arcade games. Examples of these include the Neo Geo, CP System II, CP System III and many others.

The popularity of MAME has well since broken through to the mainstream, with enthusiasts building their own arcade game cabinets to relive the old games, and with companies producing illegal derivative works of MAME to be installed in arcades. Cabinets can be built either from scratch or taking apart and modifying a genuine arcade game cabinet that was once used with the real hardware inside.[13][14] Cabinets inspired by classic arcade games can also be purchased and assembled (with optional PC and MAME preinstalled).[15]

Although MAME contains a rudimentary user interface, the use of MAME in arcade game cabinets and home theater PCs necessitates special launcher applications called front ends with more advanced user interfaces. Front ends provide varying degrees of customization – allowing one to see images of the cabinets, history of the games and tips on how to play, and even video of the game play or attract mode of the game.

The information contained within MAME is free for re-use, and companies have been known to utilize MAME when recreating their old classics on modern systems. Some have gone as far as to hire MAME developers to create emulators for their old properties. An example of this is the Taito Legends pack.[16]


The MAME core coordinates the emulation of several elements at the same time. These elements replicate the behavior of the hardware present in the original arcade machines. MAME can emulate many different central processing units (CPUs) and associated hardware. These elements are virtualized so MAME acts as a software layer between the original program of the game, and the platform MAME runs on. MAME supports arbitrary screen resolutions, refresh rates and display configurations. Multiple emulated monitors, as required by for example Darius, are supported as well.

Individual arcade systems are specified by drivers which take the form of C macros. These drivers specify the individual components to be emulated and how they communicate with each other. While MAME was originally written in C, the need for object oriented programming caused the development team to begin to compile all code as C++ for MAME 0.136, taking advantage of additional features of that language in the process.

Although a great majority of the CPU emulation cores are interpretive, MAME also supports dynamic recompilation through an intermediate language called the Universal Machine Language (UML) to increase the emulation speed. Back-end targets supported are x86 and x64. A C backend is also available to further aid verification of the correctness. CPUs emulated in this manner are SH-2, MIPS R3000 and PowerPC.

Game data

The original program code and graphics and sound data need to be present so that the game can be emulated. In most arcade machines, the data is stored in read-only memory chips (ROMs), although other devices such as cassette tapes, floppy disks, hard disks, laserdiscs, and compact discs are also used. The contents of most of these devices can be copied to computer files, in a process called "dumping". The resulting files are often generically called ROM images or ROMs regardless of the kind of storage they came from. A game usually consists of multiple ROM and PAL images; these are collectively stored inside a single ZIP file, constituting a ROM set. In addition to the "parent" ROM set (usually chosen as the most recent "World" version of the game), games may have "clone" ROM sets with different program code, different language text intended for different markets etc. For example, Street Fighter II Turbo is considered a variant of Street Fighter II Champion Edition. System boards like the Neo Geo that have ROMs shared between multiple games require the ROMs to be stored in "BIOS" ROM sets and named appropriately.

Hard disks, compact discs and laserdiscs are stored in a MAME-specific format called CHD (Compressed Hunks of Data).[17] Some arcade machines use analog hardware, such as laserdiscs, to store and play back audio/video data such as soundtracks and cinematics. This data must be captured and encoded into digital files that can be read by MAME. MAME does not support the use of external analog devices, which (along with identical speaker and speaker enclosures) would be required for a 100% faithful reproduction of the arcade experience. A number of games use sound chips that have not yet been emulated successfully. These games require sound samples in WAV file format for sound emulation. MAME additionally supports artwork files in PNG format for bezel and overlay graphics.

Philosophy and accuracy

The stated aim of the project is to document hardware, and so MAME takes a somewhat purist view of emulation, prohibiting programming hacks that might make a game run improperly or run faster at the expense of emulation accuracy. Components such as CPUs are emulated at a low level (meaning individual instructions are emulated) whenever possible, and high-level emulation (HLE) is only used when a chip is completely undocumented and cannot be reverse-engineered in detail. Signal level emulation is used to emulate audio circuitry that consists of analog components.

MAME emulates well over a thousand different arcade system boards, a majority of which are completely undocumented and custom designed to run either a single game or a very small number of them. The approach MAME takes with regards to accuracy is an incremental one; systems are emulated as accurately as they reasonably can be. Bootleg copies of games are often the first to be emulated, with proper (and copy protected) versions emulated later. Besides encryption, arcade games were usually protected with custom microcontroller units (MCUs) that implemented a part of the game logic or some other important functions. Emulation of these chips is preferred even when they have little or no immediately visible effect on the game itself. For example, the monster behavior in Bubble Bobble was not perfected until the code and data contained with the custom MCU was dumped through the decapping of the chip.[19] This results in the ROM set requirements changing as the games are emulated to a more and more accurate degree.

Portability and genericity are also important to MAME. Combined with the uncompromising stance on accuracy, this often results in high system requirements. Although a 2 GHz processor is enough to run almost all 2D games, more recent systems and particularly systems with 3D graphics can be unplayably slow even on the fastest computers. MAME does not currently take advantage of hardware acceleration to speed up the rendering of 3D graphics, in part because of the lack of a stable cross-platform 3D API, and in part because software rendering can in theory be an exact reproduction of the various custom 3D rendering approaches that were used in the arcade games.

Legal status

Owning and distributing MAME itself is legal in most countries, as it is merely an emulator. Companies such as Sony have attempted in court to prevent other software such as Virtual Game Station, a Sony Playstation emulator from being sold, but they have been ultimately unsuccessful.[20] MAME itself has thus far not been the subject of any court cases. Early coverage of MAME tended to be sensationalist, such as IGN highlighting the use of MAME to pirate console titles.[21]

Most arcade games are still covered by copyright. Downloading or distributing copyrighted ROMs without permission from copyright holders is almost always a violation of copyright laws. However, some countries (including the US)[22] allow the owner of a board to transfer data contained in its ROM chips to a personal computer or other device he owns. Some copyright holders have explored making arcade game ROMs available to the public through licensing. For example, in 2003 Atari made MAME-compatible ROMs for 27 of its arcade games available on the internet site Star ROMs. However, by 2006 the ROMs were no longer being sold there. At one point, various Capcom games were sold with the HotRod arcade joystick manufactured by Hanaho, but this arrangement was discontinued as well. Other copyright holders have released games which are no longer commercially viable free of charge to the public under licenses that prohibit commercial use of the games. Many of these games may be downloaded legally from the official MAME web site.[23] The Spanish arcade game developer Gaelco has also released World Rally for non-commercial use on their website.[24]

The MAME community has distanced itself from other groups redistributing ROMs via the internet or physical media, claiming they are blatantly infringing copyright and harm the project by potentially bringing it into disrepute.[25] Despite this, illegal distributions of ROMs are widespread on the internet.[26][27]


MAME is available at no cost, including its source code. Its software license is a BSD-derivative copyleft license in that redistributions of modified versions (derivative works) must include the complete corresponding source code. However, the license states that "redistributions may not be sold, nor may they be used in a commercial product or activity". The main goal of this is to prevent arcade operators from installing MAME cabinets and profiting from the works of the original manufacturers of the game.[28] Due to the prohibition on commercial distribution MAME does not fulfill the criteria of free software as defined by the Free Software Foundation; nor does it meet the conditions of the Open Source Definition.

See also


  1. ^ Herz, J.C. (1998-03-05). "With Software Sleight of Hand, Video Ghosts Walk".  
  2. ^ "MAME | About MAME". Retrieved 2011-04-11. 
  3. ^ Quilty-Harper, Conrad (2005-12-16). "PC and Mac Applications that Every Gamer Should Have".  
  4. ^ a b Milanovic, Miodrag (2012-04-26). "Passing the torch". Retrieved 2012-04-26. 
  5. ^ a b "MAME Project History". Retrieved 2011-04-23. 
  6. ^ Giles, Aaron (2011-04-05). "Regime Change". Retrieved 2013-07-03. 
  7. ^
  8. ^ "The SDLMAME Homepage". 2006-10-13. Retrieved 2011-04-11. 
  9. ^ IGN Staff (1999-11-03). "But Wait, That's a Camera...".  
  10. ^ Wawro, Alex (2012-01-03). "MAME Runs In Google Chrome, Plays All Your Favorite Arcade Games".  
  11. ^ "MAME Latest MAME Release". Retrieved 2011-04-23. 
  12. ^ "MAME Source Updates". Retrieved 2011-04-23. 
  13. ^ St. Clair, John (2004). Project Arcade: Build Your Own Arcade Machine. Indianapolis, IN: Wiley.  
  14. ^ Roush, George (2008-04-16). "Build Your Own MAME Machine".  
  15. ^ Harris, Craig (2005-11-30). "Dream Arcade Cocktail Kit".  
  16. ^ "Taito Legends manual". Sega. Retrieved 2011-04-23. 
  17. ^ "MAME | src/lib/util/chd.h". Retrieved 2012-12-20. 
  18. ^ Giles, Aaron (2009-07-17). "Aaron Giles at California Extreme 2008 – Part 2". YouTube. Retrieved 2012-12-20. 
  19. ^ Salmoria, Nicola. "Nicola's MAME Ramblings". Retrieved 2013-07-03. 
  20. ^ Glasner, Joanna (2000-02-10). "Court Upholds PlayStation Rival".  
  21. ^ IGN Staff (1998-02-09). "Illegally "Mame" Your Nintendo 64".  
  22. ^ "17 U.S. Code § 117 (a)". U.S. Copyright Office. Retrieved 8 February 2014. 
  23. ^ "MAME ROMs for Free Download". Retrieved 2013-07-03. 
  24. ^ "Gaelco Games at Home!". Retrieved 2013-07-03. 
  25. ^ "FAQ: Roms". MAME development site. Retrieved 28 December 2013. 
  26. ^ "Make The Most of It". PC Magazine. September 2007. p. 61. Retrieved 28 December 2013. 
  27. ^ "Game On". Popular Science. April 2007. p. 78. Retrieved 28 December 2013. 
  28. ^ Salmoria, Nicola. "MAME Legal Information". The MAME Development Team. Retrieved 2009-03-22. 

External links

  • Official website
  • MAMEworld MAME resource and news site
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.