Shadowrun SNES Recomp
Shadowrun SNES Recomp is a native recompilation of Shadowrun for the Super Nintendo Entertainment System that includes all three commercial releases and supports mouse and keyboard.
- Type: PC port
- Game: Shadowrun
- Runs on Windows, Linux and macOS
- By MrWeedster
- Source: https://github.com/mrweedster/ShadowrunSNESRecomp
README
Shadowrun (SNES) — native recompilation
An ahead-of-time recompilation of Shadowrun for the SNES — Beam Software's 1993 action-RPG, published by Data East (PAL: Laser Beam Entertainment), adapted from FASA's tabletop RPG — into native C: the game's 65816 code is analyzed and re-emitted as compiled functions that run directly on your CPU, with the SNES hardware (PPU, SMP, cartridge chip) emulated around them. One executable carries all three commercial releases — USA, German and Swedish — as separately linked program modules; the launcher verifies the dump you own and selects the right one at boot.
This is an unofficial port. It ships no ROM: you must own the game. The recompiled C is generated locally from your own dumps (see BUILDING.md) and is not a copy of ROM bytes. Code is under the PolyForm Noncommercial License 1.0.0.
Play it
Grab the archive for your platform from the
latest Release and verify it against the shipped
.sha256 (shasum -a 256 -c <file>.sha256):
| Release asset | Accepts |
|---|---|
shadowrun-universal-0.1.0-windows-x64.zip | USA, Germany, Sweden dumps |
shadowrun-universal-0.1.0-linux-x64.tar.gz | USA, Germany, Sweden dumps |
shadowrun-universal-0.1.0-macos-universal.tar.gz / .dmg | USA, Germany, Sweden dumps |
shadowrun-usa-*, shadowrun-de-*, shadowrun-sv-* | that one release only |
Unzip, run, point the launcher at your .sfc dump — the built-in identity
check tells you which release it is and whether the dump is the exact one the
port was qualified against. Mouse and keyboard map natively; the game's
cursor is drawn by the host, not emulated into the video output.
Linux needs glibc ≥ 2.38 (Debian 12+/Ubuntu 24.04+); the binaries otherwise
carry no shared-library dependencies beyond libc/libm.
Why is the executable so big?
Because the whole game is compiled in. Each commercial release recompiles to roughly 2.4 MB of machine code, and the universal build links all three releases plus the hardware emulation and a statically linked SDL3 into one binary:
| artifact | on disk | download |
|---|---|---|
| universal, Windows x64 | 8.4 MB | 2.7 MB |
| universal, Linux x64 | 7.8 MB | 2.4 MB |
| universal, macOS (arm64 + x86_64 in one file) | 17 MB | 5.0 MB |
The current builds were also shrunk honestly — dead-section elimination and,
on Windows, linker ICF folding the byte-identical functions duplicated across
the three edition cores (11.0 MB → 8.4 MB), with debug/symbol tables stripped
at packaging. Every shrinking step was proven behavior-neutral by replaying a
4,475-frame route and comparing frame-by-frame output hashes; the streams are
identical across Windows, Linux and macOS hosts. Details in
docs/PORT.md and evidence/.
Build it
Three steps on any platform — regenerate the compiled game from your own dumps, configure, build:
tools/regen.sh "Shadowrun (USA).sfc" "Shadowrun (Germany).sfc" "Shadowrun (Sweden).sfc"
cmake -B build -DSNESRECOMP_ROOT=../snesrecomp
cmake --build build
Full per-platform instructions, tool lists and the framework pin (a fork at
mrweedster/snesrecomp, pinned in
framework_pins.txt) are in BUILDING.md. The .github
workflow builds the same tree on Windows, Linux and macOS runners.
What was done, in brief
- Analysis & regeneration — every bank of all three releases decompiled
and re-emitted as C, with a Rust analyzer pass; per-edition generated trees
(
src/gen*) linked as runtime-selectable program modules. - Emulation core — PPU/SMP/cartridge emulation with correctness fixes along the way, including the recent guest-register restore fix that eliminated the title-screen and morgue visual glitches present in earlier builds.
- Behavioral verification as the acceptance bar — scripted input routes
replayed across platforms with frame-CRC streams compared byte-for-byte
(
evidence/), rather than "it compiled" as the bar. - Desktop integration — launcher with ROM identity verification, native mouse, savestates/rewind, mod staging, per-platform packaging with checksums and stripped, size-optimized binaries.
The long technical history — analysis gaps, cycle-accuracy work, the
multi-edition module design, every verification round — lives in
docs/PORT.md and the dated records under evidence/.
Repository layout
src/ port source (generated game code is regenerated locally, git-ignored)
recomp/ analyzer configuration per bank
tests/ scripted input routes, probes, and the doc-quote audit
tools/ regeneration, packaging (package_desktop.py), framework patches
scripts/ macOS bundle packaging
mods/ preloaded mod package staging
docs/PORT.md the full port write-up (the original README)
BUILDING.md build instructions
evidence/ dated verification records and frame-stream captures
framework_pins.txt the exact framework commit these builds were qualified against