Loading
All articles
Computing History 19 min read

What Is a Video Game Emulator? Old Games on New Machines

A video game emulator imitates old hardware so the original program can run on a new machine. Learn the history, the techniques, and a lawful way to try one.

nbkhope
On this page

What Is a Video Game Emulator? Old Games on New Machines

The cartridge can still be fine. The television, the disk drive, or a custom chip may not be. A video game emulator is software that imitates that old machine closely enough for the original program to run on a computer the game was never built for.

Original illustration of a laptop showing a simple pixel landscape, a stand-in for an old game running on a new computer.

That is a narrower claim than "it plays old games." A remake can feel familiar and still be a new program. A port can keep the title and change the timing. An emulator's distinguishing promise is that the original instructions are the ones being executed, inside a model of the hardware.

Four different answers to an old game

Four teaching categories for running an old game on a new machine: a remake writes new code, a port rewrites the game, an emulator imitates the old chips, and an FPGA core implements the old logic in reconfigurable hardware. Real products sometimes mix them.

A remake is a new game inspired by an old one. The original program never starts.

A port rewrites the game for the new system. The rules may survive, but timing, bugs, and the feel of the controls can change, because the new code is not walking through the old hardware.

An emulator is a program that pretends to be the old chips. The game file is still the original program. The host computer does the pretending.

An FPGA core uses reconfigurable hardware to implement the old logic as circuits, not as a loop of ordinary software. It can be very faithful. It still needs a game file you have a right to use.

Two neighbors are easy to confuse with emulation. A compatibility layer, such as Wine or Proton, translates calls between software interfaces. It is not modeling a game console. A CPU translator such as Rosetta translates one processor's instructions for another. Useful, and related, but not the same job as rebuilding a whole machine, with its video chip, sound chip, and controllers, and keeping them in step.

What happens in one frame

A console is several pieces of hardware sharing a memory map and a clock. The game file is only one of those pieces. The picture on your monitor is the host computer drawing whatever the model produced.

Simplified flow of one emulated frame: the game file feeds a CPU core, which uses a memory map shared with video, sound, and inputs, and the result is sent to the host screen and speakers. A fast computer can still be wrong if the timing is wrong.

Inside a simple CPU model, the work is a loop: read an instruction, decide what it means, do it, then move to the next one.

Four-step loop of a simple interpreter: read the instruction at the program counter, decode it, execute it, then advance. The loop repeats until the program halts. A real console must also service video, audio, and interrupts on time.

Speed is not the same as accuracy. A modern PC can execute the old instructions many times faster than the original chip and still draw the wrong frame, if the video chip was supposed to change the picture halfway down the screen. Some games used those hardware quirks on purpose. A careful emulator spends much of its effort on when things happen, not only on what each instruction does.

A toy you can run

The smallest useful picture of that loop is a program you can run yourself. It is not a Nintendo, Sega, or Sony machine. It is an imaginary screen, 8 pixels wide and 4 pixels tall, with three instructions:

  • 0 means halt.
  • 1 x y lights the pixel at column x, row y.
  • 2 x y turns that pixel off.

Columns and rows start at 0. There is no bounds check. A real emulator has to decide what a bad address does. This toy simply trusts the program.

1def run(program):
2    screen = [0] * 32
3    pc = 0
4    while pc < len(program):
5        op = program[pc]
6        if op == 0:
7            break
8        x, y = program[pc + 1], program[pc + 2]
9        pc += 3
10        index = y * 8 + x
11        if op == 1:
12            screen[index] = 1
13        elif op == 2:
14            screen[index] = 0
15    return screen
16
17
18def show(screen):
19    rows = []
20    for y in range(4):
21        row = "".join("#" if screen[y * 8 + x] else "." for x in range(8))
22        rows.append(row)
23    return "\n".join(rows)
24
25
26program = [
27    1, 1, 1,
28    1, 2, 1,
29    1, 3, 1,
30    1, 4, 1,
31    1, 5, 1,
32    1, 6, 1,
33    1, 2, 2,
34    1, 5, 2,
35    0,
36]
37
38print(show(run(program)))

Save that as toy_emulator.py and run it with python toy_emulator.py. The printed screen is:

1........
2.######.
3..#..#..
4........
An 8 by 4 teaching screen. Six pixels are lit in the second row, and two pixels are lit in the third row. It matches the toy program, and it is not a real console.

Each # in the text is a pale square in the picture. Change a coordinate and the picture changes. That is the practical point. The emulator does not contain the picture. The program decides which pixels turn on. The emulator only carries out the instructions and shows the result.

A save state would be a copy of this emulator's own data, screen and pc, taken at any moment. A battery save, or an in-game save, is different. It is data the game itself writes into its own storage. Saving the emulator is not the same as using the game's save menu, and a save state from one emulator version may not open in another.

Older than the hobby scene

Emulation was a business tool before it was a way to revisit a cartridge.

Selected milestones, not a list of firsts: IBM System/360 in 1964, MAME and NESticle in 1997, UltraHLE in 1999, the Connectix ruling in 2000, Dolphin in 2003, Wii Virtual Console in 2006, a 2023 preservation study, and 2024 legal pressure. Early hobby emulators are harder to date.

In 1964, IBM announced the System/360 family. Programs written for one model could run on the others. The Model 30, the smallest model shipped in 1965, could also emulate the older IBM 1401. That mattered commercially: customers could move to the new machines without throwing away working software. The Computer History Museum's System/360 exhibit records that design.

An IBM System/360 Model 30 console and tape drives, photographed at the Computer History Museum.

Photo: Carlo Nardone / Wikimedia Commons, CC BY-SA 2.0; photographed at the Computer History Museum on November 10, 2007; displayed at reduced size.

The public hobby wave is easier to date from the late 1990s, which does not mean nothing came before. Early amateur emulators are harder to pin down than a company's announcement.

MAME had its early public releases in 1997. Its authors describe a purpose that is easy to miss if you only think about play. MAME is meant to be a reference to how the machines worked, for education and for preservation, so software does not vanish when the hardware dies. Being able to run the software is called a side effect, not the main goal. The project also states that ROM, disc, and hard-disk images are copyrighted. Age does not make them abandonware, and MAME does not include the games. See MAME's own account and its legal notes.

In the same year, NESticle, a freeware NES emulator, put a friendly screen and save states in front of a large audience. The useful idea is the save state: a snapshot of the running machine, separate from any save the game itself offered. ZSNES did the popular job for the Super Nintendo that year. It is a historical name, not the emulator to install now. The console section below says why.

UltraHLE, in 1999, showed a different shortcut. Instead of reproducing every Nintendo 64 chip, high-level emulation intercepted calls into the console's software libraries and answered them with the host PC's graphics hardware. Commercial games became playable on ordinary computers of that year. The cost was fidelity. A game that depended on an odd hardware trick could break even when the picture looked right in another title. Project64, also below, is the later open-source Nintendo 64 emulator most people mean by that name. It is not UltraHLE.

In 2000, a US appeals court decided Sony Computer Entertainment, Inc. v. Connectix Corp., 203 F.3d 596 (9th Cir.). Connectix had made intermediate copies of the PlayStation BIOS while reverse engineering a compatible emulator. The court treated those intermediate copies as fair use, aimed at a new product that did not contain Sony's code. That ruling is not a license to distribute Sony's BIOS, and it is not a license to distribute games. It is also US law, not a worldwide rule. The US Copyright Office lists the case in its fair use index.

Dolphin began as an experimental GameCube emulator in 2003 and became open source in 2008. It is a useful example of a community project that outlasted the console it first targeted, later adding Wii support. Get it from the project, dolphin-emu.org, not from a repacked download.

In 2006, Nintendo's Wii Virtual Console sold older games, generally by software emulation. Publishers use the same family of techniques. An official re-release can be the simplest lawful way to play, and it may still be an emulator behind the menu.

The timeline stops at two recent events because they are easy to misread. In 2023, the Video Game History Foundation and the Software Preservation Network reported that 87 percent of classic games released in the United States were critically endangered, meaning not in commercial release. In March 2024, Tropic Haze, the company behind the Switch emulator Yuzu, settled a lawsuit with Nintendo, agreed to pay $2.4 million, and stopped Yuzu and the 3DS emulator Citra. Later in 2024, Ryujinx's developer said development would stop after contact from Nintendo. That was a project decision, not a published judgment. Neither event is a court holding that every emulator is illegal. The Yuzu complaint alleged copyright infringement and circumvention of the Switch's technical protections. A settlement ends a case. It does not write a general rule for a student interpreter or for a museum's hardware reference.

Fidelity and speed are different goals

A teaching sketch, not a benchmark, placing an interpreter, a dynamic recompiler, high-level emulation, and an FPGA core on axes of hardware fidelity and play speed. A careful interpreter can be more faithful than a fast shortcut.

An interpreter does what the toy does: one guest instruction at a time, in a language the host understands. It is the easiest model to inspect and often the slowest.

A dynamic recompiler translates a block of guest instructions into host instructions while the program runs, then reuses that translation. It can stay close to the hardware and still be fast enough for a later console. The cache of translations has to be thrown out when the game changes its own code.

High-level emulation skips some of the machine. It recognizes a call the game would have made to a console library and answers with host code. That is why UltraHLE could be fast. It is also why "it runs" and "it matches the hardware" are different sentences.

An FPGA core, as in the MiSTer project, loads a hardware description into a reconfigurable chip. The common board is Terasic's DE10-Nano. This is not a Windows program that happens to be quick. The old logic is implemented as digital circuits. It can track the original timing more closely. It still needs a permitted game file, and a core can be unfinished.

RetroArch is another easy mix-up. It is a front end for libretro cores: emulators, engines, and players that share one set of controls and menus. It is not a ROM library, and it does not supply games. If you use it, get the program from retroarch.com and supply only software you have a right to run.

The chart is a sketch for teaching. A careful interpreter can be more faithful than a fast shortcut. A finished FPGA core is not automatically more accurate than a mature software emulator. Read the project's own compatibility notes.

The same idea on a Super Nintendo, a Game Boy, a Genesis, a PlayStation, or a Nintendo 64

The toy is one imaginary machine. A Super Nintendo, a Game Boy, a Sega Genesis, a PlayStation, and a Nintendo 64 are different machines, so they need different models. The names below are emulator programs. They are not sources of games.

Example emulators by machine: Snes9x, bsnes, and ZSNES for the Super Nintendo, SameBoy, mGBA, and VisualBoyAdvance for Game Boy, BlastEm and Genesis Plus GX for the Sega Genesis, ePSXe for PlayStation, Project64 for the Nintendo 64, and Mesen, Dolphin, and MAME for nearby machines. These are programs, not game files.

Super Nintendo / Super Famicom. Snes9x is a long-running freeware emulator. Its site describes it as a portable way to run most SNES and Super Famicom software on a PC. bsnes, originally developed by Near, is another widely used SNES emulator. Some cartridges carried extra chips. An emulator that only models the base console can miss those games. Current bsnes builds can optionally use a faster, higher-level stand-in for several of those chips. That is the same speed-versus-fidelity choice as the chart above.

ZSNES is the name many people still mean by "SNES emulator." Its history starts with a public release on October 14, 1997, by zsKnight and Demo. Much of it was x86 assembly, which made it fast on the PCs of that decade. The original line ended with version 1.51 on January 24, 2007. It approximated the hardware, and old builds have had serious security bugs. The address people remember now hosts a later rewrite. This article is about the 1997 to 2007 emulator, and it does not recommend either one for a new session. Start with Snes9x or bsnes.

Game Boy, Game Boy Color, and Game Boy Advance. SameBoy emulates the Game Boy, Game Boy Color, and Super Game Boy, and is aimed at both everyday use and hardware accuracy. mGBA is a Game Boy Advance emulator that also runs Game Boy and Game Boy Color games. VisualBoyAdvance is the classic name for that Advance job. The continuing project is VisualBoyAdvance-M, which describes itself as the continuation of that emulator. Get it from that site, or from its source repository. One program can cover a family of related machines. That does not make it a Genesis emulator, and a repack that adds games is a different product.

Sega Genesis / Mega Drive. BlastEm focuses on the Genesis, called the Mega Drive outside North America. It also supports related Sega hardware, including the Master System, Game Gear, Sega CD, and 32X. Genesis Plus GX is an accurate, portable emulator for Sega's 8-bit and 16-bit machines, often run as a RetroArch core. The two names are one console.

PlayStation. ePSXe is a long-running PlayStation emulator for Windows and Linux. Its own site still publishes the program. It does not include games, and it does not include the PlayStation BIOS. That BIOS is copyrighted firmware. The Connectix case above is not a license to distribute it, and this article will not explain how to obtain one. If the next step is a BIOS file or a game image from a stranger, stop.

Nintendo 64. Project64 is a free, open-source emulator for the Nintendo 64 and the 64DD, also published on GitHub. It is the program most people mean when they ask for an N64 emulator. UltraHLE was the 1999 high-level shortcut. Project64 is a different model. It does not include the games.

Nearby machines. The NES already appeared here as NESticle. Mesen is a later NES emulator built with accuracy in mind. Arcade boards remain MAME's job. GameCube and Wii remain Dolphin's. RetroArch can host several of these as cores. The core is still a separate emulator, and RetroArch still does not supply the games.

None of these names is permission to download a cartridge image. The lawful session below still applies.

Why the missing games matter

Most people will never repair a 40-year-old board. If the only copy of a game is that board, the game is already hard to study.

Original illustration of a researcher in an archive, examining media beside a computer that shows a simple pixel pattern.
Bar chart of a 2023 study: 13 percent of classic US game releases were commercially available, and 87 percent were critically endangered. The study covers classic games released in the United States, not every game ever made. Source: Video Game History Foundation and Software Preservation Network.

The Video Game History Foundation's 2023 study, done with the Software Preservation Network, looked at classic games released in the United States. In a sample of 1,500 titles, about 13 percent were commercially available and 87 percent were not. The study's margin is about ±2.5 percent. No period they defined reached 20 percent availability. The data are archived at Zenodo.

That chart is not a count of every game ever made, and it is not permission to copy the missing ones. It is evidence that a store page is not a preservation plan. Libraries and archives can keep media and document hardware. In the United States, their ability to lend or display many games is still narrower than their ability to lend a book. Emulation can help a researcher show that a documented machine still runs a documented program, after the original chips fail. The right to do that in public is a legal and institutional question, separate from whether the software technique works.

A lawful first session

The useful practical example is the toy above. You wrote nothing that belongs to someone else, and you can see every instruction.

If you want a real project, stay on the lawful side of the line.

Five steps for a lawful first session: use a program you may run, choose an official re-release or an emulator from its own project site, configure picture and controls, learn the difference between a save state and a battery save, and stop if the next step is a pirated file or a lock bypass. Not legal advice.
  1. Decide what you have a right to run. That can be the toy program, a game you bought in a form the seller allows on that system, or a program whose author released it for this use. An official re-release is the simplest case: the publisher is selling you the experience, and you do not go looking for a separate game file.
  2. Get the tool from the people who make it. For a Super Nintendo, start with Snes9x or bsnes, not an old ZSNES build. For a Game Boy or Game Boy Advance, SameBoy, mGBA, or VisualBoyAdvance-M. For a Genesis or Mega Drive, BlastEm or Genesis Plus GX. For the original PlayStation, ePSXe. For a Nintendo 64, Project64. Arcade boards point to mamedev.org, and GameCube or Wii to dolphin-emu.org. A repacked "emulator plus games" download is a different product, and often a worse one.
  3. Configure picture, sound, and a keyboard or controller. If the picture runs too fast, look for a frame limiter or a speed setting before you assume the game is broken.
  4. Learn the two saves. A save state is the emulator's snapshot. A battery save, or an in-game save, belongs to the game. Use the game's own save when you care about continuing inside the game's rules.
  5. Stop if the next instruction is a pirated file, a BIOS pack from a stranger, or a way to break a lock. This article will not describe those steps. Owning a cartridge does not, by itself, answer the legal question, and MAME's authors say that downloading a ROM for a board you own is unclear and depends on where you live.

Homebrew is a clean middle example. Some authors publish a game they wrote and explicitly allow it to be run in an emulator. Download that file from the author, and follow the license they attached. Do not treat a random archive as the author.

Two columns: an emulator program can be original code that imitates hardware and does not include the games, while a game file or BIOS is usually still copyrighted, is not abandonware because it is old, and is not permitted merely because a website offers it. Not legal advice.

What to remember

An emulator is a model of a machine. The game is a separate work that runs on that model. A remake, a port, a compatibility layer, and an FPGA core answer different questions. A fast result can still be the wrong picture if the timing is wrong. And the oldest practical lesson is the one IBM sold in the 1960s: emulation is how software survives a change of hardware, which is not the same thing as permission to copy it.

Sources

Thanks for reading!

Know someone who would enjoy this? Send it their way.

More articles

Read next

Comments

Be kind and specific. Comments with links from new accounts appear after a moderator reviews them.