Case study
Prince of Persia 2: statically recompiling the DOS game for Windows
This statically recompiles the DOS executable PRINCE.EXE from Prince of Persia 2 into C and links it with a Windows runtime. Game logic, rendering, the intro, and the music driver stay the original code. VGA, the timer, the keyboard, and Sound Blaster or AdLib are replaced. The launcher is PoP2 Launcher.exe.
- Targets
- Game
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Evidence class
- C1 partial scope or analysis entry
- Stars
- 34
- Last commit
- 2026-09-23
- Language
- C
GitHub data as of 2026-11-10
Evidence

- Observed
- Download and demo observed; the case covers part of the target software.
- Scope
- Partial
- Checked
- 2026-11-09
Requirements & limits
- Clang, llvm-rc, and Python 3. Set POP2_GAMEDIR to the folder that contains PRINCE.EXE, run python recomp/recomp.py recomp/extra_entries.txt, then ./build.sh.
- The README does not name a license.
Cite
BibTeX
@misc{pop2-windows,
title = {{Prince of Persia 2: statically recompiling the DOS game for Windows}},
howpublished = {\url{https://github.com/Supermedo/prince-of-persia-2-windows}},
url = {https://github.com/Supermedo/prince-of-persia-2-windows},
urldate = {2026-11-07},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/pop2-windows/}}
}Plain text
Prince of Persia 2: statically recompiling the DOS game for Windows. https://github.com/Supermedo/prince-of-persia-2-windows (accessed 2026-11-07). Awesome REA entry: https://awesomerea.org/resources/pop2-windows/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · Supermedo/prince-of-persia-2-windows · Revision e2c407f
More in Games
- Project 8 Plus: a native recompilation of Tony Hawk's Project 8 · Case study
- Project Arwing (2): Star Fox 2 recompiled from a matching disassembly · Case study
- Project Arwing: Star Fox recompiled from a matching disassembly · Case study
- Project Gotham Racing 2: an Xbox XBE static recompilation · Case study
- Project Gotham Racing: an Xbox static recompilation for Windows · Case study
- Project Helghast: a static recompilation of Killzone 3 for PC · Case study