video game emulator

term

programmingops culture

Kept in this browser · My desk

A program that imitates a game machine's hardware closely enough that its original software runs on another computer; a tool of preservation, of research and of the makers' own re-releases.

MAME states its purpose as documenting how arcade machines work, so their software does not disappear when the hardware stops. In Sony v. Connectix (2000) a United States appeals court held the copies made while reverse engineering the PlayStation's BIOS to build an emulator fair use. Nintendo's own NES Classic Edition of 2016 is an emulator in a shell.

What it is. An emulator reproduces in software the behaviour of a game machine's processor, graphics and sound chips, memory map and inputs, so that the original program, loaded from an image of its cartridge, disc or read-only memory (ROM) chips, runs unchanged on another computer. MAME, originally the Multiple Arcade Machine Emulator, now describes itself as a multi-purpose emulation framework whose source code is the documentation of the hardware, the playable software serving "primarily to validate the accuracy of the documentation"; after absorbing MESS (Multi-Emulator Super System) and AGEMAME (Arcade Gambling Extensions for MAME) it covers computers, consoles, calculators and gambling machines as well as arcade games, over 32,000 systems from five decades, written in C++.

What it must reproduce. Processor, graphics and sound chips, timing and quirks: an Atari Video Computer System (VCS) game that writes the Television Interface Adaptor (TIA) in mid-line only works if the emulator counts colour clocks as the hardware did. Atari's Stella programmer's guide gives the numbers for the VCS: a frame of 262 lines, each line 228 colour clocks at 3.58 MHz (68 of horizontal blank and 160 visible), and one processor cycle for every 3 colour clocks, so the program has only 76 machine cycles per line. The TIA keeps no picture in memory; the game rewrites its registers as the beam moves, and an emulator a few cycles out of step draws the picture in the wrong place.

What it costs. A console's design rarely matches a personal computer's (PC). The Dolphin project, which emulates the GameCube and the Wii, explains that their IBM PowerPC processor runs instructions a PC cannot, so every basic instruction must be translated into something the PC can execute, at 2 to 100 host clock cycles depending on the instruction; their memory is fast static RAM (random-access memory) shared by processor and graphics chip, which makes operations such as texture uploads cheap on the console and expensive on a PC. Only the processor, the graphics chip and the digital signal processor (DSP) run well in parallel, which is why Dolphin uses three cores. Accuracy is a setting: Dolphin ships per-game files that turn on slower, more accurate options for games that need them, and MAME warns that a supported system is not always perfectly emulated.

The firmware question. A console's basic input/output system (BIOS) is copyrighted code. Connectix had its own BIOS for the Virtual Game Station but used Sony's during development because it contained the CD-ROM (compact disc read-only memory) code its own lacked; MAME and Dolphin ship no original software and ask users to supply images of their own media, Dolphin's frequently asked questions (FAQ) answering where to download games with "you don't. Buy games and dump them".

The law, plainly. An emulator written without the maker's code has been held lawful in the United States (Connectix's Virtual Game Station contained none of Sony's code). Connectix began the Macintosh version about 1 July 1998, announced it at Macworld Expo on 5 January 1999, and was sued on 27 January; the Ninth Circuit (filed 10 February 2000) held the intermediate copies of the PlayStation BIOS made while reverse engineering it a fair use, and the product transformative, a legitimate competitor in the market for platforms on which PlayStation games can be played. In Sony v. Bleem (filed 4 May 2000), over the PlayStation emulator written by Randy Linden, the same court noted that the emulator's legality was not at issue and held Bleem's comparative screenshots of Sony games a fair use; Sony had by then sold more than 60 million consoles. The games and the console firmware are copyrighted works: copying or sharing them without a licence infringes, whatever runs them, and circumventing their access controls is regulated by the Digital Millennium Copyright Act (DMCA) in the United States and by art. 107 of Lei 9.610/1998 in Brazil. The DMCA's own section 1201(f) permits circumvention for the sole purpose of interoperability of an independently created program. Brazil's software law, Lei 9.609/1998, lets the lawful owner make a single backup copy and does not treat as infringement a similarity imposed by a program's functional characteristics; violating a program's rights is a crime punished with six months to two years of detention or a fine, and one to four years when the copy is made for sale.

Preservation. In 2023 the Video Game History Foundation, with the Software Preservation Network, found 87 per cent of classic games released in the United States out of release. The 2024 rule, effective on 28 October 2024, renewed without opposition the exemption for individual play of games whose server support has ended and for preservation by libraries, archives and museums, but refused access away from the institution's premises, citing the market for legacy games: the Register found the greater risk of market harm in removing the premises limitation. Exemptions under the DMCA last three years and must be renewed. The makers sell emulation too: Nintendo's own NES Classic Edition of 2016, a miniature Nintendo Entertainment System, is an emulator in a shell.

What goes wrong. Inaccuracy shows as graphics, sound or timing faults and crashes, and Dolphin's FAQ admits that even with a decade of work it is not a perfect emulator. Legally the line runs between the emulator and the images: MAME's documentation states that ROM images are not abandonware, that copyright has not expired on any software it supports, and that it is against the authors' wishes to sell, advertise or link to illegal copies.

Neighbours. The ROM cartridge and the lockout chip whose behaviour an emulator must copy, the disassembler that reverse engineering relies on, the firmware it replaces or requires, and the DMCA that frames it.

Also known as: emulator, console emulator, game emulation, emulador, emulador de videogame, MAME

Sources

← Back to V Back to the glossary