# PCE.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/pce-emu/

PCE.emu emulates NEC PC Engine, NEC PC Engine CD and NEC SuperGrafx. It reads 2 files, 1 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Community fork |
| Source | [https://github.com/Rakashazi/emu-ex-plus-alpha](https://github.com/Rakashazi/emu-ex-plus-alpha) |
| Upstream | [https://mednafen.github.io/](https://mednafen.github.io/) |
| Version | 1.5.85, stated in [`EmuFramework/metadata/conf.mk`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/EmuFramework/metadata/conf.mk) |
| Revision | [Rakashazi/emu-ex-plus-alpha@1c12fac5ce49](https://github.com/Rakashazi/emu-ex-plus-alpha/commit/1c12fac5ce49badaadff2e2f210dcc30b89f4943) |
| Profiled | 2026-08-12 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/pce-emu.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/pce-emu.json) |
| Cores | pce-emu, PCE.emu, pceemu, com.PceEmu |
| Systems | [NEC PC Engine](https://abdess.github.io/retrobios/systems/nec/#pc-engine), [NEC PC Engine CD](https://abdess.github.io/retrobios/systems/nec/#pc-engine-cd), [NEC SuperGrafx](https://abdess.github.io/retrobios/systems/nec/#pc-engine) |
| Checks the file by | existence |

**Technical notes**

Android and desktop application by Robert Broglia built on EmuFramework, vendoring Mednafen's pce_fast and pce modules. Both are compiled and selectable at runtime, and pce_fast is what an unset core option resolves to ([`PCE.emu/src/main/system.ccm:125`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/system.ccm#L125)). HuCard content (.pce, .sgx) loads with no external file. CD content (.cue, .toc, .ccd, .chd) requires a System Card image: loadContent throws "No System Card Set" when the path is unset or the file is gone ([`PCE.emu/src/main/Main.cc:88-91`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/Main.cc#L88-L91)). The System Card is a single path the user picks through a file browser filtered to .pce and .sgx ([`PCE.emu/src/main/EmuMenuViews.cc:176-191`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/EmuMenuViews.cc#L176-L191)), stored as CFGKEY_SYSCARD_PATH. No filename is fixed and no directory is scanned. MDFN_GetSettingS returns an empty string for pce.cdbios, pce_fast.cdbios and pce.gecdbios, and MDFN_MakeFName answers every MDFNMKF_FIRMWARE request with that one path ([`PCE.emu/src/main/options.cc:275-301`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/options.cc#L275-L301)), so the Games Express branch reads whichever image the setting points at. Mednafen's settings table still carries the syscard3.pce and gecard.pce defaults but settings.cpp is not compiled, so they are never read. A path with an archive extension is opened as an archive and the first member ending in .pce, .bin or .bios is used (MDFNFILE.cc:41-76). Neither module hashes the image. pce_fast skips a 512-byte copier header then reads a fixed 262144 bytes (huc.cpp:299-302), while pce reads min(rounded length, length) and accepts any size (huc.cpp:225-316). HuC_Load is always called with SYSCARD_3, or SYSCARD_ARCADE when Arcade Card emulation is on (pce.cpp:653). SuperGrafx is enabled by the .sgx extension, by a CRC match against the built-in sgx_table (pce.cpp:345, 382-395), or by DetectSGXCD on disc. HES playback is compiled out (pce.cpp:76) and cheats are disabled ([`PCE.emu/src/main/options.cc:245-246`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/options.cc#L245-L246)).

## Files

**2 files**: 1 required, 1 optional.

In this collection: 2 in repo and 0 missing.

## Required

### `syscard3.pce` required in repo

Super CD-ROM2 System Card 3.0

- min_size comes from the fixed 262144-byte read in pce_fast (huc.cpp:302) with Stream::read throwing on a short file (Stream.h:88). A 262656-byte dump passes through the copier-header skip at huc.cpp:299. The pce module imposes no minimum.

- Size: min 256.0 KB (262,144 bytes)
- 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)

**Validation and source**

- Validation: existence, size
- Source: [`PCE.emu/src/main/Main.cc:80-91`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/Main.cc#L80-L91) (throws without it), [`PCE.emu/src/main/options.cc:275-301`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/options.cc#L275-L301) (path resolution), [`PCE.emu/src/main/EmuMenuViews.cc:176-191`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/main/EmuMenuViews.cc#L176-L191) (selection), [`PCE.emu/src/pce_fast/pce.cpp:477-483`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce_fast/pce.cpp#L477-L483), [`PCE.emu/src/pce_fast/huc.cpp:284-304`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce_fast/huc.cpp#L284-L304) (default module load), [`PCE.emu/src/pce/pce.cpp:645-653`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/pce.cpp#L645-L653) (accurate module load), [`PCE.emu/src/pce_fast/pce.cpp:663`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce_fast/pce.cpp#L663), [`PCE.emu/src/pce/pce.cpp:1094`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/pce.cpp#L1094) (name)

## Optional

### `gecard.pce` optional in repo

Games Express CD Card

- Reached only when the accurate module runs and DetectGECD matches the disc, since pce_fast has no Games Express branch. Served through the same System Card setting, so the user points it at this image to boot those discs.

- 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)

**Validation and source**

- Validation: existence
- Source: [`PCE.emu/src/pce/pce.cpp:512-551`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/pce.cpp#L512-L551) (DetectGECD), [`PCE.emu/src/pce/pce.cpp:644-646`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/pce.cpp#L644-L646) (gecdbios branch), [`PCE.emu/src/pce/huc.cpp:225-316`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/huc.cpp#L225-L316) (size-agnostic read), [`PCE.emu/src/pce/pce.cpp:1095`](https://github.com/Rakashazi/emu-ex-plus-alpha/blob/1c12fac5ce49badaadff2e2f210dcc30b89f4943/PCE.emu/src/pce/pce.cpp#L1095) (name)

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