sp00nz 8541026a4c readme: version the project, fix the stale claims, stop duplicating docs
The README had drifted from the code, and in one place contradicted the
repository's own documentation.

**Claims that were wrong, now measured:**

- "the first known static recompilation project targeting the original Xbox" --
  contradicted by docs/technical/ms-fusion-recompiler.md in this same repo.
  Microsoft's Ficl/Fission got there first, shipping Xbox back-compat on the
  360. Reworded to "first *public*", with the pointer to our own study of
  theirs.
- Kernel coverage was "115 of 366 ordinals resolved, 55 with dedicated
  bridges". Counted: 152 of 371 routed, 112 with bridges.
- Every per-module line count was stale (kernel 8,298 -> 11,128; d3d 7,018 ->
  8,838; apu 3,918 -> 4,168; nv2a 4,778 -> 4,892; input 212 -> 360).
- Burnout 3 was still listed as "playable ... main menu at 60fps" three
  sections after a note explaining that build leaned on hand-written
  scaffolding. Says so in one place now, and retires the claim until the
  recompiled path earns it back.
- "handles ~95% of instructions" is not measured anywhere. Replaced with the
  honest signal: an unhandled instruction lifts to a bare comment, so grep the
  generated output.
- The Quick Start skipped `tools.abi_analysis` entirely -- which is exactly what
  issues #1 and #2 both walked into. Now step 6, with a note on what silently
  degrades if it is skipped.
- Dependencies omitted pytest; the tool list omitted five tools that exist.

**Versioning.** v0.6.0 "Credit Where Due", with a changelog back to v0.1.0
reconstructed from commit dates rather than invented -- the feature groupings
and months come from the actual commits that landed them. Per-item attribution
follows ps3recomp's convention, so a contributor can find their work by name.
Replaces the undated "Recent Changes" bullet list, which had no ordering and
no way to tell what shipped when.

**Docs.** "How The Key Pieces Work" restated register-model.md,
memory-layout.md and indirect-calls.md badly and in less detail than the real
documents (246, 303 and 386 lines respectively), and its code snippets had gone
stale -- `PUSH32(val)` has been `PUSH32(sp, val)` for a while, and the register
globals are thread-local now. Replaced with a short index.

The two NV2A sections had no document to point at, so their content moves to
docs/technical/nv2a-shaders.md rather than being dropped.

Also removes four "(NEW)" markers that have survived several releases.

README 494 -> 553 lines, of which the changelog is 120.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZDe6qTWAvohfDtYXbpRyM
2026-08-28 11:31:07 -07:00
2026-08-28 11:18:09 -07:00
2026-08-28 11:18:09 -07:00
2026-07-16 18:13:06 -07:00

xboxrecomp

 #   #  ####    ###   #   #         #####   ###    ###   #       ###
 #   #  #   #  #   #  #   #           #    #   #  #   #  #      #
  # #   ####   #   #   # #            #    #   #  #   #  #       ##
  # #   #   #  #   #   # #            #    #   #  #   #  #         #
 #   #  #   #  #   #  #   #           #    #   #  #   #  #         #
 #   #  ####    ###   #   #           #     ###    ###   #####   ###

 Static Recompilation Toolkit for Original Xbox Games

Turn any Xbox game binary into a native Windows executable. No emulation. No interpreter. Just raw, recompiled C.

Current version: v0.6.0 — "Credit Where Due" (August 2026). See the Changelog for what landed and when.


What Is This?

This is a complete toolkit for statically recompiling original Xbox (2001-2005) games from their retail XBE executables into native Windows programs.

Static recompilation takes the raw x86 machine code from an Xbox binary and translates every function — every mov, every jmp, every call — into equivalent C source code. That C code compiles with MSVC into a native x86-64 .exe that runs on modern Windows. The game's original logic executes directly on your CPU, not through an interpreter or JIT compiler.

This is the first public static recompilation toolkit for the original Xbox. Microsoft got here first: their internal Ficl/Fission recompiler shipped Xbox back-compat on the 360. We have since studied it — see Microsoft's Own Recompiler.

The technique has been proven on other platforms — N64Recomp showed MIPS-to-C was viable, XenonRecomp brought it to Xbox 360's PowerPC — but nobody had tackled the OG Xbox until now. Its x86 architecture makes it both easier (same instruction set family as the host) and harder (variable-length instructions, complex addressing modes, x87 FPU stack) than MIPS or PPC targets.

Why Not Just Use an Emulator?

Emulators are great. Cxbx-Reloaded and xemu do incredible work. But static recomp offers some unique advantages:

  • Native performance — recompiled code runs at full speed, no interpretation overhead
  • Moddability — the output is human-readable C code; you can patch, extend, and improve the game
  • Portability — the C output can target any platform with a C compiler (ARM, RISC-V, WebAssembly...)
  • Preservation — a self-contained native binary is the ultimate form of game preservation
  • Understanding — the process forces you to deeply understand the game at the machine code level

The Pipeline

         YOUR XBOX DISC
              |
              v
    +-------------------+
    |  1. Extract XBE   |     Extract default.xbe from the disc image
    +-------------------+
              |
              v
    +-------------------+
    |  2. Parse XBE     |     Read headers, sections, kernel imports
    +-------------------+     tools/xbe_parser/
              |
              v
    +-------------------+
    |  3. Disassemble   |     Find functions, build control flow graphs
    +-------------------+     tools/disasm/
              |
              v
    +-------------------+
    |  4. Identify      |     Classify: CRT, RenderWare, D3D, game code
    +-------------------+     tools/func_id/
              |
              v
    +-------------------+
    |  5. Lift to C     |     Translate x86 instructions to C statements
    +-------------------+     tools/recomp/
              |
              v
    +-------------------+
    |  6. Build Runtime  |    Kernel shim, D3D translation, memory layout
    +-------------------+     templates/runtime/
              |
              v
    +-------------------+
    |  7. Compile & Run  |    MSVC builds native .exe — game runs!
    +-------------------+

Runtime Libraries

Following the RexGlueSDK pattern (which does the same for Xbox 360 via Xenia), xboxrecomp provides link-time libraries extracted from xemu and purpose-built compatibility layers. Your recompiled game links against these — no emulator needed at runtime.

Library Source What It Does
xbox_kernel Custom Xbox kernel → Win32 (152 of the kernel's 371 ordinals routed, 112 with dedicated bridges: memory, file I/O, threading, sync, crypto, HAL, EEPROM, SMBus)
xbox_d3d8 Custom D3D8 → D3D11 graphics: 4-stage multi-texture FFP pipeline, NV2A register combiner pixel shaders, programmable vertex shaders (NV2A microcode → HLSL), hardware T&L lighting (8 lights), vertex fog, DrawPrimitiveUP ring buffer, texture unswizzling, 20+ format conversions
xbox_dsound Custom DirectSound → software mixer (IDirectSound8/IDirectSoundBuffer8)
xbox_apu xemu (LGPL-2.1+) MCPX APU audio (256-voice processor, ADPCM/PCM, envelopes, HRTF, waveOut output)
xbox_nv2a xemu (regs, LGPL-2.1+) + Custom NV2A GPU (register handlers, MMIO interception, push buffer parsing, PGRAPH → D3D11 translation)
xbox_input Custom Xbox gamepad → XInput

Building the Libraries

cd xboxrecomp
cmake -S . -B build
cmake --build build --config Release

This produces 6 static libraries in build/src/*/Release/. Link your game project against xboxrecomp (umbrella target) or individual libraries.

Integration Pattern

Your recompiled game provides two callback functions that the kernel bridge calls to resolve function addresses:

typedef void (*recomp_func_t)(void);
recomp_func_t recomp_lookup(uint32_t xbox_va);        // Auto-generated dispatch table
recomp_func_t recomp_lookup_manual(uint32_t xbox_va);  // Hand-written overrides

The recompiler output (tools/recomp) generates these automatically. The xboxrecomp libraries handle everything else — memory layout, kernel calls, graphics, audio, and input.

Architecture

┌─────────────────────────────────────────────────┐
│              Your Game (.exe)                     │
│  ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│  │ recomp/  │ │ manual   │ │ game-specific    │ │
│  │ gen/*.c  │ │ overrides│ │ loaders/formats  │ │
│  └────┬─────┘ └────┬─────┘ └────────┬─────────┘ │
│       │             │                │            │
│       └──────┬──────┘────────────────┘            │
│              │ recomp_lookup() / ICALL dispatch    │
├──────────────┼────────────────────────────────────┤
│              │   xboxrecomp libraries             │
│  ┌───────────┴──────────┐                         │
│  │    xbox_kernel        │  Memory layout, file    │
│  │    (kernel_bridge.c)  │  I/O, threading, sync   │
│  └───────────┬──────────┘                         │
│              │                                     │
│  ┌───────┐ ┌┴──────┐ ┌────────┐ ┌──────┐ ┌─────┐│
│  │xbox_  │ │xbox_  │ │xbox_   │ │xbox_ │ │xbox_││
│  │d3d8   │ │dsound │ │apu     │ │nv2a  │ │input││
│  │D3D8→  │ │DSound→│ │MCPX APU│ │NV2A  │ │XPP→ ││
│  │D3D11  │ │mixer  │ │(xemu)  │ │(xemu)│ │XInput│
│  └───────┘ └───────┘ └────────┘ └──────┘ └─────┘│
├──────────────────────────────────────────────────┤
│  Windows 11: D3D11, XInput, waveOut, Win32 API   │
└──────────────────────────────────────────────────┘

Quick Start

Prerequisites

  • Windows 11/10 (D3D11 backend) — or Linux (OpenGL backend; tools/linux/install_deps.sh)
  • Python 3.10+ with capstone (pip install capstone)
  • Visual Studio 2022 (MSVC compiler)
  • CMake 3.20+
  • An original Xbox game disc image (you must own the game)

Step-by-Step

# 1. Clone this repo
git clone https://github.com/sp00nznet/xboxrecomp.git
cd xboxrecomp

# 2. Extract default.xbe from your Xbox disc image
#    (Use xdvdfs, extract-xiso, or similar tool)
mkdir game_files
# copy default.xbe and game data into game_files/

# 3. Parse the XBE — learn what you're working with
py -3 -m tools.xbe_parser game_files/default.xbe
#    Output: section map, kernel imports, entry point, XDK version

# 4. Disassemble — find all functions
py -3 -m tools.disasm game_files/default.xbe --text-only
#    Output: tools/disasm/output/ (functions.json, xrefs.json, strings.json)

# 5. Identify library functions
py -3 -m tools.func_id game_files/default.xbe -v
#    Output: tools/func_id/output/ (CRT, RenderWare, vtables classified)

# 6. Recover calling conventions and parameter counts
py -3 -m tools.abi_analysis game_files/default.xbe -v
#    Output: tools/abi_analysis/output/abi_functions.json
#    Skipping this still "works", but every function falls back to
#    cdecl / 0 params / int-or-void, so the generated signatures are guesses.

# 7. Lift to C — the big one
py -3 -m tools.recomp game_files/default.xbe --all --split 1000
#    Output: src/game/recomp/gen/ (millions of lines of C)

# 8. Set up runtime shims (see docs/runtime/ for templates)
#    - Xbox kernel replacement (152 ordinals routed)
#    - D3D8 -> D3D11 translation layer
#    - Memory layout reproduction
#    - Input system

# 9. Build and run
cmake -S . -B build
cmake --build build --config Release
bin/your_game.exe

What To Expect

The first time you run a recompiled game, it will crash. That's normal. The process is iterative:

  1. Boot — get past the entry point (usually straightforward)
  2. Stub — identify and stub out functions that touch hardware you haven't implemented yet
  3. Fix ICALLs — indirect calls (vtable dispatches, function pointers) are the hardest 10%
  4. Add runtime — implement kernel functions, D3D calls, and input as the game needs them
  5. Debug — use the ICALL trace ring buffer, memory access logging, and your debugger
  6. Iterate — each crash teaches you something about the game. Fix it and move on.

With Burnout 3 (the first game recompiled with this toolkit), the process from "empty repo" to "game boots and renders textured 3D tracks" took about two weeks of iterative development.

Repository Structure

xboxrecomp/
├── README.md                    # You are here
├── CMakeLists.txt               # Top-level build (builds all runtime libs)
├── tools/                       # The recompilation toolchain (Python)
│   ├── xbe_parser/              # XBE file format parser
│   ├── disasm/                  # x86 disassembler + function detector
│   ├── func_id/                 # Library function identifier
│   ├── abi_analysis/            # Calling convention / param recovery
│   ├── recomp/                  # x86 -> C static recompiler
│   ├── debug_symbols/           # Debug-build symbol recovery
│   ├── symbols/ ghidra_naming/  # Optional symbol-name recovery
│   ├── xiso/ xmv/               # Disc image and video container tools
│   └── fusion/                  # MS Ficl/Fission study tooling
├── src/                         # Runtime libraries (C, link-time)
│   ├── kernel/                  # xbox_kernel - Xbox kernel → Win32
│   ├── d3d/                     # xbox_d3d8   - D3D8 → D3D11 graphics
│   ├── audio/                   # xbox_dsound - DirectSound compat
│   ├── apu/                     # xbox_apu    - MCPX APU emulation (xemu)
│   ├── nv2a/                    # xbox_nv2a   - NV2A GPU emulation (xemu)
│   └── input/                   # xbox_input  - Gamepad → XInput
├── include/xbox/                # Public umbrella header (xboxrecomp.h)
├── templates/                   # Starter templates for new projects
│   └── runtime/                 # Runtime shim templates
│       ├── recomp_types.h       # Register model + ICALL macros
│       ├── xbox_memory.h        # Memory layout helpers
│       └── kernel_stubs.h       # Kernel function stub templates
└── docs/                        # Documentation
    ├── pipeline/                # Step-by-step pipeline guides
    ├── technical/               # Deep technical documentation
    ├── formats/                 # Xbox file format references
    └── runtime/                 # Runtime implementation guides

Documentation

Start Here

Per-Module API Reference

  • xbox_kernel — Memory layout, file I/O, threading, sync, crypto, EEPROM, SMBus (11,128 LOC)
  • xbox_d3d8 — D3D8 interface, register combiners, vertex shaders, texture unswizzle (8,838 LOC)
  • xbox_dsound — DirectSound buffers, 3D audio, mixbins (573 LOC)
  • xbox_apu — MCPX APU voice processor, mixer, MMIO (4,168 LOC)
  • xbox_nv2a — NV2A GPU registers, push buffer, PGRAPH→D3D11 (4,892 LOC)
  • xbox_input — Gamepad state, vibration, button mapping (360 LOC)

Pipeline Guides

Technical Deep Dives

Xbox Formats

How It Works

The interesting parts each have their own document rather than a summary here, so there is one place to keep correct:

  • The Register Model — why the guest registers are globals (and thread-local), how the guest stack is simulated, and why every recompiled function is void f(void).
  • Memory Layout — reproducing the Xbox address space with CreateFileMapping + 28 mirror views, and why VirtualAlloc cannot do it (mirrors must alias the same physical pages, not copy them).
  • Indirect Call Dispatch — call [eax+0x10] with no compile-time target. The hardest part of any bring-up.
  • NV2A Shader Translation — register combiners and vertex microcode to HLSL, both translated at runtime and cached.
  • SEH and Exception Handling — how __SEH_prolog/__SEH_epilog are detected per title and bridged.

Games That Work Well As Targets

Based on our experience with Burnout 3, the best candidates for Xbox static recomp share these traits:

Factor Easier Harder
Engine RenderWare (shared patterns) Custom engine (unique quirks)
Threading Single-threaded Multi-threaded with sync
GPU usage Standard D3D8 calls NV2A push buffer microcode
Code size Small .text section Large with LTCG
Online Offline only Xbox Live dependent
PC port No PC version (worth the effort!) Good PC port exists

See docs/technical/candidate-games.md for a detailed list of promising targets.

Projects Using This Toolkit

  • Burnout 3: Takedown — The origin title and most mature target. 22,097 functions lifted. An earlier build was playable to the main menu at 60fps, but leaned on hand-written menu and render scaffolding; that is being replaced with genuinely recompiled code, and the honest bring-up currently reaches engine/RenderWare init. Treat the old "playable" claim as retired until the recompiled path gets back there.
  • Xbox Dashboard — The original Xbox system shell (build 3944). Boots and renders the green orb at 60fps (D3D8→D3D11). Its UI is driven by a VRML97 + JavaScript scene engine (text→bytecode compiler + stack-machine VM + node-class reflection registry) — currently being brought online; demonstrates the toolkit on system software, not just games.
  • Wreckless: The Yakuza Missions — Xbox launch title (2002). Custom engine, 3,407 functions, boots through CRT init into game main. Debugging early gameplay crash.
  • Blood Wake — First-party Microsoft naval combat (2001). Stormfront Studios custom engine. 4,608 functions, 367K lines of C generated (99.1% success). Project scaffolded, working toward first build.

How You Can Help

This is an emerging field. Here's how you can contribute:

  1. Try it on a new game — Pick an Xbox exclusive, follow the pipeline, and see how far you get. Even partial results teach us about the toolchain's gaps.
  2. Improve the lifter — Coverage is good but unquantified; the honest signal is that an unhandled instruction lifts to a bare /* mnemonic */ comment, so grepping generated output for those finds the gaps. Segment prefixes and the rarer x87/SSE forms are where they cluster.
  3. Document Xbox formats — Every game has its own asset formats. Document what you discover.
  4. Build runtime components — Better D3D8 emulation, audio, networking — the runtime layer is where most per-game work happens.
  5. Share your findings — Write up what you learn. The Xbox modding/preservation community benefits from every discovery.

Dependencies

The toolchain is intentionally lightweight:

Python 3.10+
capstone        # x86 disassembly  (pip install capstone)
pytest          # test suite only  (pip install pytest)

That's it for the core pipeline — no IDA, no Ghidra, no proprietary tools. Just the standard library + Capstone. (An optional tools/ghidra_naming helper can use headless Ghidra purely to recover symbol names; it is never required to produce a working build.)

Running the tests

py -3 -m pytest tools/

Fast, and needs no game files — the lifter tests assemble real byte sequences and check the C that comes out. If you fix a lift, add the case.

The runtime libraries (C) use:

  • MSVC (Visual Studio 2022) or MinGW-w64
  • Windows SDK (D3D11, DXGI, XInput, waveOut)
  • CMake 3.20+
  • No external dependencies — all hardware emulation code is self-contained

FAQ

Q: Is this legal? A: This project provides tools and documentation. You must own a legitimate copy of any game you recompile. No copyrighted game code or assets are included in this repository.

Q: How is this different from an emulator? A: Emulators interpret or JIT-compile code at runtime. Static recompilation translates the entire binary ahead of time into native C code that compiles to a regular .exe. There's no CPU emulation at runtime — the recompiled functions execute directly.

Q: Can I use this on Xbox 360 games? A: No. Xbox 360 uses PowerPC (big-endian, different ISA). See XenonRecomp for Xbox 360 static recompilation. This toolkit is specifically for the original Xbox's x86 code.

Q: How long does it take to get a game running? A: It depends on the game's complexity. Burnout 3 went from zero to "boots and renders 3D tracks" in about two weeks. Simple games might be faster; complex ones with custom engines could take longer. The toolchain handles the mechanical translation — the real work is building the runtime shims and debugging indirect calls.

Q: Why C output instead of direct x86-64 binary translation? A: C is portable, debuggable, and the compiler optimizes it for you. You can read the output, set breakpoints in it, and modify individual functions. Direct binary translation would be faster to run but impossible to debug or modify.

License

MIT — see LICENSE. Third-party components keep their original licence:

Component Licence Copyright
the MCPX APU sources in src/apu/ LGPL-2.1-or-later espes; Jannik Vogel; Matt Borgerson
src/nv2a/nv2a_regs.h LGPL-2.1-or-later espes; Jannik Vogel
everything else MIT sp00nz and contributors

The APU and the NV2A register definitions were extracted from xemu and are that project's work, not ours. LGPL-2.1 expressly permits linking them from MIT or proprietary code, so a recompiled game is unaffected; what it asks is that the notices stay, the source stays available, and users can relink against a modified library. LICENSES/LGPL-2.1.txt is the verbatim licence text — shipping it alongside those files is a requirement, not a courtesy.

Not every file under src/apu/ and src/nv2a/ is xemu-derived. See NOTICE for the exact list, each with the copyright it actually carries — including algorithms we implemented ourselves but learned from xemu, credited there even where no licence obligation attaches.

Contributors

xboxrecomp is built by more than one person. See CONTRIBUTORS.md for who did what — including the people who never sent a patch and still moved the project further than a patch would have, by finding the wall everyone else was about to hit.

Thank you, all of you.

Credits

Built with Claude Code (Anthropic) — proving that AI-assisted systems programming can tackle problems previously considered impractical.

Human contributors are credited in CONTRIBUTORS.md; the third-party code we build on is credited in NOTICE.

Changelog

Versions start at v0.1.0 with the initial public release; earlier entries were reconstructed from the commit history, so they are dated by when the work actually landed rather than by any tag that existed at the time.

v0.6.0 — "Credit Where Due" (August 2026)

The first release with contributors other than the maintainer, and the housekeeping that should have been in place before there were any.

Correctness — the silent kind. Every fix here produced C that compiled, linked, ran, and was wrong, with no lifter warning anywhere.

  • Conditional tail calls skipped the frame bridge — jcc to a known function entry is a tail call, but only the unconditional form emitted the bridge, so the taken edge ran with the caller's frame still live. 8,263 call sites across 5,426 functions on the title tested — @NoRain211 (#7)
  • Indirect calls read their target after the return-address push, so call [esp+X] resolved from the wrong slot — @NoRain211 (#7)
  • repe cmpsb / repne scasb folded their flags to a literal 1, so every memcmp/strcmp-shaped loop in the CRT reported "equal" regardless of input — @NoRain211 (#8)
  • NEG carry was dropped before a non-adjacent SBB/ADC, which is the standard 64-bit subtract and sign-extend idiom — @NoRain211 (#8)
  • Signed compares evaluated at 32 bits regardless of operand width, so the sign bit of an 8- or 16-bit operand was never in the right place — @NoRain211 (#8)
  • Packed SSE was lifted as a scalar float — movaps/movups moved 4 of 16 bytes and dropped the upper three lanes (18,439 moves), and packed arithmetic had no pattern at all (561 operations dropped) — @NoRain211 (#9)
  • 904 x87 instructions across 28 mnemonics lifted to comments, desynchro- nising the FPU stack from that point on; FNSTCW/FNSTSW were comments too, so every fcom-derived parity test read a hardcoded true (1,326 sites) — @NoRain211 (#9)
  • XMM was a function-local, so a value written in one lifted block and read in the next was lost — @NoRain211 (#10)

Pipeline

  • tools/abi_analysis now exists. tools.recomp had always looked for abi_functions.json, warned when it was missing, and then fallen back to cdecl / 0 params / int-or-void for every function — because the tool meant to produce that file was never written. Recovers calling convention (including thiscall), parameter count from the ret immediate, return-type hints and frame shape — @DarthSidious666 (#6)
  • The SSE runtime. The lift in #9/#10 emitted 28 XMM_* helpers that nothing defined. Added RecompXmm plus lane-wise implementations, verified by compiling real lifter output under MSVC and checking the cases where x86 disagrees with naive C — MINPS returning its second operand on a tie, ANDNPS being ~dst & src, CMPNEQPS being the unordered form.
  • The research branch merged back: per-title SEH detection, the function-boundary fix, operand-aware x87, the MS Ficl/Fission study, XISO redump support, and indirect-call feedback.

Project

  • CONTRIBUTORS.md — including the people who only ever filed an issue. @Tiptup300 (#1) found that every documented getting-started step was broken, on Linux; that report is why the pipeline was fixed and why this repository has a LICENSE file at all. @M0RSM4LLEO (#2) reproduced it with the detail that made it actionable.
  • LGPL compliance. The xemu-derived APU and NV2A sources always carried their notices, but the repository shipped no NOTICE and no copy of the licence. Both now present, with every affected file listed against the copyright it actually carries.
  • The test suite actually runs. A bare import in tools/symbols aborted pytest collection for the whole tree, so pytest tools/ executed nothing. Now 140 tests.

v0.5.0 — "Fall-Through" (July 2026)

  • Fall-through into the next function was dropped. When the disassembler splits a straight-line run of code at an internal branch target, the earlier function often ends by falling through into the next — which x86 executes. The lifter emitted nothing, so the body ended and skipped the next function's shared epilogue: an esp leak that corrupted callee-saved registers. 4,587 of 35,286 functions in Burnout 3 had this shape.
  • Per-title SEH detection. __SEH_prolog/__SEH_epilog addresses were hardcoded to one game's CRT, so on every other title the ebp read-back was never emitted. Found by signature now.
  • Halo bring-up: debug-build symbol recovery, per-target memory map, x87 correctness, and seven misrouted kernel ordinals.

v0.4.0 — "Portable" (May 2026)

  • Cross-platform layer with an OpenGL D3D8 backend beside the Windows D3D11 path, POSIX path handling, and Linux build deps. Builds with GCC/Clang.
  • ghidra_naming (optional) — headless Ghidra FidDb pass recovers real CRT/XDK symbol names from a stripped XBE. The core pipeline still needs no disassembler.

v0.3.0 — "Fixed Function" (March 2026)

  • Full multi-texture fixed-function pipeline — 4-stage blending with all D3D8 operations and full D3DTA argument resolution, 4 samplers per draw.
  • Hardware T&L lighting — up to 8 lights with materials, global ambient, specular, and world-space normal transform; Blinn-Phong with attenuation and spotlight cones.
  • Vertex fog (linear/exp/exp2) and a 4MB DrawPrimitiveUP ring buffer that removes per-call buffer create/destroy.
  • --seed-functions for iterative disassembly on stripped binaries.

v0.2.0 — "Programmable" (March 2026)

  • NV2A register combiner pixel shaders — full 8-stage plus final combiner translated to HLSL at runtime, with a 128-entry cache.
  • NV2A programmable vertex shaders — 128-bit microcode parser and HLSL generator covering all 14 MAC and 8 ILU operations, 192 constant registers, and relative addressing.
  • Texture unswizzling — Xbox Z-order (Morton) to linear.
  • NV2A PGRAPH → D3D11 translator, push buffer method interception.
  • EEPROM / AV pack / SMBus so games can query region, language, video standard and hardware info.

v0.1.0 — "First Light" (March 2026)

Initial public release: XBE parser, x86 disassembler and function detector, library-function identifier, the x86 → C recompiler, and the runtime libraries (kernel, D3D8, DirectSound, APU, NV2A, input), extracted from the Burnout 3 bring-up that started it.

References

S
Description
Turn any Xbox game binary into a native Windows executable. No emulation. No interpreter. Just raw, recompiled C.
Readme MIT 34 MiB
Languages
C 63.3%
Python 34.5%
CMake 1.3%
Shell 0.6%
Perl 0.1%