0xreversed/with.ai
Games and modsWorksSource available
Target: PlayStation 1 games

PS1Recomp

by Dellareti Repository3 views
Platform
Linux, macOS
Outcome
Works

Evidence at a glance

Based on the linked sources. The author's reported result and independent confirmation are separate checks.

AI involvement
Model not reported. Tools: ps1Analyzer, ps1Recomp, ps1Runtime, ps1Interface, Ghidra, CMake, SDL2, OpenGL. The writeup below describes the work attributed to AI.
Reported result
Works. This is the directory's source-based outcome classification.
Independent confirmation
Not reported.
Human work and limitations
The project uses a hash-based detection system for PsyQ middleware, which the author notes is the primary divergence from prior recompilation efforts. The runtime uses HLE for BIOS and middleware to avoid legal issues associated with original ROM code.

Original sources

What was done

PS1Recomp is a static recompiler that converts PlayStation 1 game binaries into native C++ executables. It uses a hardware simulation runtime to achieve full CPU speed without traditional emulation, featuring automated analysis, PsyQ middleware HLE, and a GUI studio.

PS1Recomp is a static recompiler designed to translate PlayStation 1 MIPS R3000A machine code into native C++ for PC execution. Unlike traditional emulators that interpret instructions at runtime, this project performs static recompilation at compile time, linking the resulting code against a hardware simulation runtime. The architecture includes a ps1Analyzer for parsing binaries and identifying PsyQ SDK signatures, a ps1Recomp engine for MIPS-to-C++ translation, and a ps1Runtime that simulates hardware components such as the GPU, SPU, and CD-ROM. The project includes a GUI studio, ps1Interface, for function inspection and configuration management. AI-assisted debugging is supported via an MCP server. The author reports that the project successfully boots and plays games like Crash Bandicoot, reaching level 3. Testing is facilitated by 557 unit and integration tests covering all runtime subsystems. The project is documented at https://raw.githubusercontent.com/ps1recomp/ps1-recomp/HEAD/README.md.

Reproduce it

setup
Clone the repository with submodules, install dependencies (cmake, build-essential, libsdl2-dev, libgl-dev), and build using: cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j$(nproc). Run tests using: ctest --test-dir build --output-on-failure -j$(nproc).