# Beetle SuperGrafx

> 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/mednafen_supergrafx/

Beetle SuperGrafx emulates NEC PC Engine. It reads 4 files, 1 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/libretro/beetle-supergrafx-libretro](https://github.com/libretro/beetle-supergrafx-libretro) |
| Upstream | [https://mednafen.github.io/](https://mednafen.github.io/) |
| Version | v1.29.0, stated in [`libretro.cpp`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/libretro.cpp) |
| Revision | [libretro/beetle-supergrafx-libretro@9c11dcd213a7](https://github.com/libretro/beetle-supergrafx-libretro/commit/9c11dcd213a79d57d2c86313971631af801f2cdc) |
| Run by | [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/), [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/), [EmuELEC](https://abdess.github.io/retrobios/platforms/emuelec/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/), [Recalbox](https://abdess.github.io/retrobios/platforms/recalbox/), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/), [ROCKNIX](https://abdess.github.io/retrobios/platforms/rocknix/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/mednafen_supergrafx.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/mednafen_supergrafx.json) |
| Cores | mednafen_supergrafx, beetle_supergrafx, beetle-supergrafx |
| Systems | [NEC PC Engine](https://abdess.github.io/retrobios/systems/nec/#pc-engine) |
| Checks the file by | existence |

**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 mednafen_supergrafx
```

**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 mednafen_supergrafx
```

**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 mednafen_supergrafx
```

**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 mednafen_supergrafx
```

**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 mednafen_supergrafx
```

**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 mednafen_supergrafx
```

**Technical notes**

Port of Mednafen's pce_fast module with SuperGrafx and CD support. The card image is read from the system directory by HuC_LoadCD() at CD-ROM load time ([`mednafen/pce_fast/huc.cpp:221-245`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/pce_fast/huc.cpp#L221-L245)), and the load fails when the file cannot be opened. Core option "sgx_cdbios" selects which image to use (default: System Card 3). With "sgx_detect_gexpress" enabled (the default), DetectGECD() recognises Games Express discs and loads gexpress.pce whatever the selection ([`mednafen/pce_fast/pce.cpp:453-454`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/pce_fast/pce.cpp#L453-L454)). DetectSGXCD() detects SuperGrafx CD titles via magic bytes. Arcade Card emulation is always on ([`mednafen/settings.cpp:90-91`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/settings.cpp#L90-L91)). HuC_LoadCD() strips a 512-byte header and copies at most 262144 bytes. No hash or size validation on BIOS load.

## Files

**4 files**: 1 required, 3 optional.

In this collection: 4 in repo and 0 missing.

## Required

### `syscard3.pce` required in repo

CD-ROM System Card 3.0 (Japan)

- Default value for sgx_cdbios option.

- Collection copy: [`bios/NEC/PC Engine/syscard3.pce`](https://abdess.github.io/retrobios/systems/nec/#sha1-79f5ff55dd10)
- Platforms: `syscard3.pce`: [Batocera](https://abdess.github.io/retrobios/platforms/batocera/#nec-pc-engine), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/#nec-pc-engine), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/#nec-pc-engine), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/#nec-pc-engine), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/#nec-pc-engine), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/#nec-pc-engine). `bios/syscard3.pce`: [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/#nec-pc-engine), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#nec-pc-engine). `PCECD_3.0-(J).pce`: [BizHawk](https://abdess.github.io/retrobios/platforms/bizhawk/#nec-pc-engine-cd). `tg16/syscard3.pce` and `turbografx-cd/syscard3.pce`: [RomM](https://abdess.github.io/retrobios/platforms/romm/#nec-pc-engine)

**Source**

- Source: [`libretro.cpp:972-973`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/libretro.cpp#L972-L973), [`mednafen/settings.cpp:37`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/settings.cpp#L37)

## Optional

### `syscard2.pce` optional in repo

CD-ROM System Card 2.0 (Japan)

- sgx_cdbios = 'System Card 2'.

- Collection copy: [`bios/NEC/PC Engine/syscard2.pce`](https://abdess.github.io/retrobios/systems/nec/#sha1-88da02e2503f)
- Platforms: `bios/syscard2.pce`: [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/#nec-pc-engine), [EmuELEC](https://abdess.github.io/retrobios/platforms/emuelec/#nec-pc-engine), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#nec-pc-engine). `syscard2.pce`: [Lakka](https://abdess.github.io/retrobios/platforms/lakka/#nec-pc-engine), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/#nec-pc-engine), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/#nec-pc-engine). `tg16/syscard2.pce` and `turbografx-cd/syscard2.pce`: [RomM](https://abdess.github.io/retrobios/platforms/romm/#nec-pc-engine)

**Source**

- Source: [`libretro.cpp:974-975`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/libretro.cpp#L974-L975)

### `syscard1.pce` optional in repo

CD-ROM System Card 1.0 (Japan)

- sgx_cdbios = 'System Card 1'.

- Collection copy: [`bios/NEC/PC Engine/syscard1.pce`](https://abdess.github.io/retrobios/systems/nec/#sha1-a39a66da7de6)
- Platforms: `bios/syscard1.pce`: [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/#nec-pc-engine), [EmuELEC](https://abdess.github.io/retrobios/platforms/emuelec/#nec-pc-engine), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#nec-pc-engine). `syscard1.pce`: [Lakka](https://abdess.github.io/retrobios/platforms/lakka/#nec-pc-engine), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/#nec-pc-engine), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/#nec-pc-engine). `tg16/syscard1.pce` and `turbografx-cd/syscard1.pce`: [RomM](https://abdess.github.io/retrobios/platforms/romm/#nec-pc-engine)

**Source**

- Source: [`libretro.cpp:976-977`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/libretro.cpp#L976-L977)

### `gexpress.pce` optional in repo

Games Express CD Card

- sgx_cdbios = 'Games Express' or auto-detected via DetectGECD().

- Collection copy: [`bios/NEC/PC Engine/gecard.pce`](https://abdess.github.io/retrobios/systems/nec/#sha1-014881a959e0)
- Platforms: `bios/gexpress.pce`: [AmberELEC](https://abdess.github.io/retrobios/platforms/amberelec/#nec-pc-engine), [EmuELEC](https://abdess.github.io/retrobios/platforms/emuelec/#nec-pc-engine), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/#nec-pc-engine). `gecard.pce` and `gexpress.pce`: [Lakka](https://abdess.github.io/retrobios/platforms/lakka/#nec-pc-engine), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/#nec-pc-engine), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/#nec-pc-engine). `PCECD_gecard.pce`: [BizHawk](https://abdess.github.io/retrobios/platforms/bizhawk/#nec-pc-engine-cd). `pcengine/gexpress.pce`: [Recalbox](https://abdess.github.io/retrobios/platforms/recalbox/#nec-pc-engine). `tg16/gecard.pce` and `tg16/gexpress.pce` and `turbografx-cd/gecard.pce` and `turbografx-cd/gexpress.pce`: [RomM](https://abdess.github.io/retrobios/platforms/romm/#nec-pc-engine)

**Source**

- Source: [`libretro.cpp:978-979`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/libretro.cpp#L978-L979), [`mednafen/pce_fast/pce.cpp:330-367`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/pce_fast/pce.cpp#L330-L367), [`mednafen/pce_fast/pce.cpp:453-454`](https://github.com/libretro/beetle-supergrafx-libretro/blob/9c11dcd213a79d57d2c86313971631af801f2cdc/mednafen/pce_fast/pce.cpp#L453-L454)

## 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.
