🇨🇭 Switzerland
Joined: 7/17/2012
Posts: 569
Location: 🇨🇭 Switzerland
GitHub
PS2Recomp is a tool designed to statically recompile PlayStation 2 ELF binaries into C++ code that can be compiled for any modern platform. This enables running PS2 games natively on PC and other platforms without traditional emulation. Features Translates MIPS R5900 instructions to C++ code Supports PS2-specific 128-bit MMI instructions Handles VU0 in macro mode Supports relocations and overlays Configurable via TOML files Single-file or multi-file output options Function stubbing and skipping How It Works PS2Recomp works by: Parsing a PS2 ELF file to extract functions, symbols, and relocations Decoding the MIPS R5900 instructions in each function Translating those instructions to equivalent C++ code Generating a runtime that can execute the recompiled code The translated code is very literal, with each MIPS instruction mapping to a C++ operation. For example, addiu $r4, $r4, 0x20 becomes ctx->r4 = ADD32(ctx->r4, 0X20);. Requirements CMake 3.20 or higher C++20 compatible compiler (I only test with MSVC) SSE4/AVX support for 128-bit operations
My Citra 3DS rerecording movie files test repositery: https://cutt.ly/vdM0jzl Youtube playlist "Citra Tests": https://cutt.ly/AdM0wg9 http://www.youtube.com/user/phoenix1291
🇨🇭 Switzerland
Joined: 7/17/2012
Posts: 569
Location: 🇨🇭 Switzerland
Has anyone tried it with LibTAS, for example? Since it's now more about “translation” than “emulation,” it should work like a “native” Linux or PC game, right?
My Citra 3DS rerecording movie files test repositery: https://cutt.ly/vdM0jzl Youtube playlist "Citra Tests": https://cutt.ly/AdM0wg9 http://www.youtube.com/user/phoenix1291
Spikestuff
They/Them
Editor, Expert player (3387)
Location: The land down under.
Joined: 10/12/2011
Posts: 6633
Location: The land down under.
There's no title that has been done (completed) with the PS2 Recomp project yet, so there hasn't been any testing.
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Strong for yourself and also others.