0xreversed/with.ai
Games and modsWorksSource available
Target: Star Fox 2

Project Arwing (2): Star Fox 2 recompiled from a matching disassembly

by carlosrmz009 Repository0 views
Star Fox 2: A static recompilation and PC port of Star Fox 2 with quality-of-life improvements.
Image: Source: raw.githubusercontent.com

Evidence at a glance

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

AI involvement
Reported models: Claude Opus 5.5. Tools: Python, SDL2, FreeType, Visual Studio 2022 Build Tools, Xcode. 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 combination of static analysis and runtime coverage logging to identify code versus data. It maintains a cycle-for-cycle identical execution path compared to the interpreter for the majority of gameplay.

Original sources

What was done

Project Arwing (2) provides a PC port of Star Fox 2 by statically recompiling the game's 65816 and SuperFX code into C. It requires a user-provided SNES Classic ROM and features HD 3D rendering, CRT filters, and improved frame pacing.

Project Arwing (2) is a static recompiler and PC port of the SNES game Star Fox 2. The project utilizes a coverage-seeded, recursive-descent disassembler to process all 32 ROM banks, producing a byte-identical ROM. The static recompiler translates 65816 and SuperFX instructions into C, allowing the game to run natively on Windows, macOS, and Linux without an emulator loop for the majority of execution. The README documents that the resulting C code is a mechanical translation rather than hand-decompiled. While the project is playable, it remains a work in progress; for instance, HD 3D rendering currently recovers sub-pixel positions for approximately 66–90% of vertices, as only one of several projection routines has been hooked in src/hd.c. Commit logs credit Claude Opus 5.5 as a co-author for the implementation of frame rate and pacing improvements. Users must provide their own Star Fox 2 ROM from the SNES Classic release (SHA-1 1135a2a6cb786ac7523e81dd553dc81aaa266f51). Further details are available at the official repository.

Reproduce it

setup
python tools/build.py path/to/starfox2.sfc