<!-- Canonical page: https://reversedwithai.com/p/playstation-2-emotion-engine-e1827779 -->
Canonical page: https://reversedwithai.com/p/playstation-2-emotion-engine-e1827779

# Recompiled PlayStation 2 executables into native C++ with ps2n

> A static recompiler for PlayStation 2 Emotion Engine executables.

ps2n is a static recompiler that translates PlayStation 2 ELF executables into native C++ code. It aims to run games by linking them against a custom runtime that emulates the console's hardware and kernel. No game is currently fully playable.

## Key facts

- Target: PlayStation 2 (Emotion Engine)
- Category: Firmware and hardware
- Platform: Windows x64
- Models: Claude
- Tools: clang-cl, MSVC, CMake, SDL2
- Outcome: Research
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: luisbraganca
- Added: 2026-10-30
- Updated: 2026-10-30
- Sources reviewed: 2026-11-20 (editor)

## What was done

PS2Native (ps2n) is a static recompiler designed to translate PlayStation 2 Emotion Engine (R5900) ELF executables into native C++ code. The recompiler maps instructions to C++ and links the output against a runtime that simulates the EE kernel, hardware registers, GS, and IOP. The project is in early development. While the recompiler covers the full EE instruction set, the runtime remains incomplete. The author reports that 007: Agent Under Fire (SLES-50539) reaches its menus at full speed, but starting a mission is untested and the driving missions' executable is not yet recompiled. The project is developed and tested on Windows x64 using clang-cl and MSVC. The author notes that one missing item, such as the newer FILEIO protocol, can stop most games. The project documentation is available at [https://raw.githubusercontent.com/luisbraganca/ps2n/HEAD/README.md](https://raw.githubusercontent.com/luisbraganca/ps2n/HEAD/README.md).

## Human work and limitations

The project uses a progress-tracking system where individual components are checked off. The author explicitly notes that the project is in early development and no game is fully playable yet.

## What the commit history shows

None of the 29 commits in the public repository credits an AI. Many tools add no credit, so this does not show the AI was not used.

Measured by this site from public git history.

## AI use in the original source

- "| Games playable | `░░░░░░░░░░` 0% | 0 / 1 | Agent Under Fire reaches its menus; a mission is untested |" ([source](https://raw.githubusercontent.com/luisbraganca/ps2n/HEAD/README.md))

Excerpts checked against the source on 2026-10-30.

## Sources

- [Repository](https://github.com/luisbraganca/ps2n)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: luisbraganca (2026). Recompiled PlayStation 2 executables into native C++ with ps2n. Reversed with AI. https://reversedwithai.com/p/playstation-2-emotion-engine-e1827779
