Prince of Persia 2: The Shadow and the Flame
Game: Prince of Persia 2: The Shadow and the Flame → (DOS, 1993)
A static recompilation of the DOS PRINCE.EXE to C, linked with a small Windows runtime: the game logic, rendering, intro, and music driver are the original code, and only the PC hardware (VGA, timer, keyboard, Sound Blaster/AdLib) is replaced with native code, with no DOSBox or emulator. The repository holds the recompiler, written in Python, which decodes the 8086 code, plus the runtime and the launcher; the game’s C code is generated on your machine from your copy, and the published release ships a prebuilt pop2.exe with no game data, art, or music. It emulates a Sound Blaster Pro: the game’s own FM driver, recompiled, plays the music on an emulated OPL2 no matter how your copy was set up in the DOS SETUP, and effects play as digital samples. It draws with OpenGL, with filters (Sharp, which keeps pixels crisp at any size, Pixel, Soft, and Smooth HQ) and 4:3, stretched, or panorama views, the last stretching only the sides, and supports Xbox, PlayStation, and Switch controllers. All 14 levels, the intro, the endings, saved games, and the 75-minute limit behave just as under DOS; the only addition is optional per-room checkpoints, off by default. Version 1.0 came out on September 23.
You needYour own copy of the DOS Prince of Persia 2: the folder with PRINCE.EXE and the .DAT files. Plus 64-bit Windows 10 or 11. Building it takes clang and llvm-rc (LLVM for Windows) and Python 3.
- How it gets to PC
- Static recompilation
- Console
- MS-DOS
- Architecture
- x86
- Author
- Supermedo
- Original studio
- Brøderbund
- Year
- 1993
- Stars
- 32
- Last activity
- 2026-09-23 · 1 month ago
- Latest version
- v1.0 · 2026-09-23
- Language
- C
Type and pick from the list; if it isn’t there, type it and press Enter. For a launcher, the games it installs; for a generic tool, leave it empty.
Other projects for Prince of Persia 2: The Shadow and the Flame
1
Prince of Persia 2: The Shadow and the Flame (Mac) See all →