# SM2-Emu

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/sm2/

SM2-Emu emulates Sega Model 2. It reads 3 files, 3 of them required: without a required file it does not start games.

**About this profile**

| Detail | Value |
|---|---|
| Type | libretro |
| Classification | Community fork |
| Source | [https://github.com/Zer0one/sm2-emu-libretro](https://github.com/Zer0one/sm2-emu-libretro) |
| Upstream | [https://github.com/dmanlfc/sm2-emu](https://github.com/dmanlfc/sm2-emu) |
| Version | 0.9.56.1, stated in [`src/libretro/core.cpp`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp) |
| Revision | [Zer0one/sm2-emu-libretro@6b282b94e781](https://github.com/Zer0one/sm2-emu-libretro/commit/6b282b94e781e20b2b6d522d0dcef5974b7a5d84), [dmanlfc/sm2-emu@8bb80c157b29](https://github.com/dmanlfc/sm2-emu/commit/8bb80c157b294c1229bd8c1054d13f87daab52c0) |
| Run by | [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-11-09 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/sm2.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/sm2.json) |
| Cores | sm2 |
| Systems | [Sega Model 2](https://abdess.github.io/retrobios/systems/sega/#model-2) |

**Install this emulator's files**

The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.

**Windows:**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator sm2
```

**macOS:**

Press Cmd+Space. Type **Terminal**, press Return. Click Copy. Press Cmd+V. Press Return.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator sm2
```

**Linux:**

Open a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator sm2
```

**Steam Deck:**

Hold power, pick **Switch to Desktop**. Open **Konsole**. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator sm2
```

**Android (Termux):**

Install **Termux**, a terminal app. Paste the line. Press Enter. Accept the Python install and allow the storage access Android asks for.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator sm2
```

**On the device:**

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator sm2
```

**Technical notes**

A libretro port of dmanlfc's SM2-Emu, a Sega Model 2 emulator. The port shares dmanlfc's history up to 8b3a468 (2026-09-09) and has taken later upstream releases by hand, up to 0.9.56. ref: [`src/libretro/core.cpp:956-959`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp#L956-L959)

The game list is games.xml, read from <system>/sm2-emu/. The core refuses to load any game without it. It names every set, its parent and device sets, the chips of each region and their CRC32. The content is a MAME set in .zip or .7z. Its chips are matched by CRC32, or by name when the ROM CRC Verification core option is off. A clone also reads its parent beside the content. ref: [`src/libretro/core.cpp:634-641`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp#L634-L641), [`src/libretro/core.cpp:977-1001`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp#L977-L1001), src/rom/rom_loader.cpp:195-206, src/rom/rom_loader.cpp:765-781, [`src/libretro/core_options.h:196-202`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core_options.h#L196-L202)

Daytona USA, its clones and Desert Tank name the model1io device set, Virtua Cop and its clone model1io2. The device archive is looked for in <system>/sm2-emu/ and then beside the content, and its chips win over the copies a game set carries. A game set that holds the I/O board ROM runs without the device archive. ref: data/games.xml:1004-1010, data/games.xml:1442-1448, data/games.xml:5846-5852, src/rom/game_db.cpp:463-475, src/rom/game_db.cpp:813, src/rom/rom_loader.cpp:784-812

Gun games read custom crosshair images from <system>/sm2-emu/crosshairs/, named after the set, its parent or default, with -p1 or -p2 or without. They are artwork the user adds, and a built-in crosshair is drawn without them. ref: [`src/libretro/core.cpp:1009`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp#L1009), [`src/libretro/crosshair.cpp:137-146`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/crosshair.cpp#L137-L146)

## Files

**3 files**: 3 required, 0 optional.

By kind: 1 BIOS and 2 BIOS ZIPs.

In this collection: 3 in repo and 0 missing.

## Required

### `games.xml` required in repo

SM2-Emu game database

- Path: `sm2-emu/games.xml`
- System: [Sega Model 2](https://abdess.github.io/retrobios/systems/sega/#model-2)
- The data/games.xml of the core's own tree, at the revision of the build. Without it no game loads.

- Collection copy: [`bios/Sega/Model 2/sm2-emu/games.xml`](https://abdess.github.io/retrobios/systems/sega/#sha1-e21c396bf7eb)

**Source**

- Source: [`src/libretro/core.cpp:987-998`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/libretro/core.cpp#L987-L998)

### `model1io.zip` required in repo BIOS ZIP

Sega Model 1 I/O board device set

- Path: `sm2-emu/model1io.zip`
- System: [Sega Model 2](https://abdess.github.io/retrobios/systems/sega/#model-2)
- Named by daytona and desert, and by the daytona clones through their parent. Also read as model1io.7z or beside the content. Those games do not start without the chip, unless their own set carries it.

- Collection copy: [`bios/Arcade/Arcade/model1io.zip`](https://abdess.github.io/retrobios/systems/arcade-arcade-3/#sha1-1587dcdbe3fa)
- Platforms: `bios/model1io.zip`: [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#arcade)

**Source and 1 member**

- Source: [`data/games.xml:1004-1010`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/data/games.xml#L1004-L1010), [`data/games.xml:1027-1029`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/data/games.xml#L1027-L1029), [`src/rom/rom_loader.cpp:784-799`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/rom/rom_loader.cpp#L784-L799)

- `epr-14869c.25`: CRC32 `24b68e64`

### `model1io2.zip` required in repo BIOS ZIP

Sega Model 1 advanced I/O board device set

- Path: `sm2-emu/model1io2.zip`
- System: [Sega Model 2](https://abdess.github.io/retrobios/systems/sega/#model-2)
- Named by vcop, and by vcopa through its parent. Also read as model1io2.7z or beside the content. Those games do not start without the chip, unless their own set carries it.

- Collection copy: [`bios/Arcade/Arcade/model1io2.zip`](https://abdess.github.io/retrobios/systems/arcade-arcade-3/#sha1-18666368c9ff)

**Source and 1 member**

- Source: [`data/games.xml:5846-5852`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/data/games.xml#L5846-L5852), [`data/games.xml:5897-5899`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/data/games.xml#L5897-L5899), [`src/rom/rom_loader.cpp:784-799`](https://github.com/Zer0one/sm2-emu-libretro/blob/6b282b94e781e20b2b6d522d0dcef5974b7a5d84/src/rom/rom_loader.cpp#L784-L799)

- `epr-17181.6`: CRC32 `1add2b82`

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
