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

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-07
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/Supermedo/prince-of-persia-2-windows>
- Primary source: <https://github.com/Supermedo/prince-of-persia-2-windows/blob/e2c407fa8409ad891bf78c8e98c3e052dd00869b/README.md>
- Catalog page: <https://awesomerea.org/resources/pop2-windows/>
- Record JSON: <https://awesomerea.org/resources/pop2-windows/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/pop2-windows/index.md)

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

## Primary sources

1. <https://github.com/Supermedo/prince-of-persia-2-windows/blob/e2c407fa8409ad891bf78c8e98c3e052dd00869b/README.md>

## More in Games

- [Project 8 Plus: a native recompilation of Tony Hawk's Project 8](https://awesomerea.org/resources/project-8-plus-case/index.md) · Case study
- [Project Arwing (2): Star Fox 2 recompiled from a matching disassembly](https://awesomerea.org/resources/project-arwing-2-star-fox-2-recomp-case/index.md) · Case study
- [Project Arwing: Star Fox recompiled from a matching disassembly](https://awesomerea.org/resources/project-arwing-star-fox-recomp-case/index.md) · Case study
- [Project Gotham Racing 2: an Xbox XBE static recompilation](https://awesomerea.org/resources/pgr2-recomp-case/index.md) · Case study
- [Project Gotham Racing: an Xbox static recompilation for Windows](https://awesomerea.org/resources/project-gotham-racing-recomp-case/index.md) · Case study
- [Project Helghast: a static recompilation of Killzone 3 for PC](https://awesomerea.org/resources/project-helghast-killzone-3-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
