0xreversed/with.ai
Tool

PS2Recomp

A PlayStation 2 static recompiler that translates ELF binaries into C++ code with a supporting runtime.

Updated · 7 projects

About PS2Recomp

PS2Recomp is an experimental toolset designed to statically recompile PlayStation 2 ELF binaries into C++ code. The project consists of several modules: `ps2xAnalyzer` for scanning binaries and generating configuration, `ps2xRecomp` for decoding MIPS R5900 instructions and generating C++ output, and `ps2xRuntime`, which provides the execution environment including memory management and hardware stubs. It also includes `ps2xIOP` for R3000A IRX execution via a virtual kernel. The tool translates MIPS instructions into literal C++ operations (e.g., mapping `addiu` to a C++ addition macro) and supports PS2-specific Multimedia Extensions (MMI) and VU0 macros. It handles system calls through a runtime dispatcher and allows for manual address binding or Ghidra-integrated workflows to handle stripped binaries. Development has utilized AI assistance for specific code contributions and bug fixes.

Summarised from the official page linked above.

7 projects

Projects using PS2Recomp

Partial
GitHub · Games and mods

dnb4ever/way-of-the-samurai-decomp

A matching decompilation and native PC port project for Way of the Samurai (PS2).

Model Claude
Partial
GitHub · Games and mods

miguel-apereira/TheGetawayRecomp

A native Windows port of The Getaway (PlayStation 2) via static recompilation.

Model Claude
God of War II (PlayStation 2): Kratos reaches Rhodes as native code; 6,607 functions mapped and counting.
Partial
GitHub · Games and mods

Brought God of War II (PS2) to a playable first zone as native PC code, with Claude Code

Kratos reaches Rhodes as native code; 6,607 functions mapped and counting.

Model Claude
God Hand (PlayStation 2): Clover PS2 brawler runs as native code, tested stage by stage.
Partial
GitHub · Games and mods

Recompiled God Hand (PS2) into a native Windows port, built with Claude Code and Codex

Clover PS2 brawler runs as native code, tested stage by stage.

Model Claude
Burnout Dominator (PlayStation 2, Europe): PS2 MIPS code translated to C++ and driven by a GPU renderer.
Partial
GitHub · Games and mods

Recompiled Burnout Dominator (PS2) into a native PC game, with Claude Fable

PS2 MIPS code translated to C++ and driven by a GPU renderer.

Model Claude Fable 5.1
Shadow of the Colossus (PS2, 2005): A PS2 classic running natively on PC, fully AI-written.
Works
GitHub · Games and mods
Reproducible

Recompiled Shadow of the Colossus into a Windows port with PS2Recomp, fully AI-written

A PS2 classic running natively on PC, fully AI-written.

Model Claude
Killzone (PS2, 2004): A PS2 shooter on PC with mouse aim and 120 fps.
Partial
GitHub · Games and mods

Recompiled Killzone (PS2) into a native Windows port with mouse aim, using Claude Code

A PS2 shooter on PC with mouse aim and 120 fps.

Model Claude
Used PS2Recomp on something?

Share the writeup or repo, and what the AI got right and wrong.

Submit a project