mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-06 10:29:40 +00:00
fd33d97def
pushbuffer-executor.md covers what sits around the v0.13.0 rasteriser: the DMA-engine walk, answering the title while it runs, fixed-function transform and lighting, anti-aliased surfaces, index width and the back-end interface. d3d8ltcg-device-context.md gains the semaphore hand-off for a title whose fence wait is replaced while the executor runs, and the PGRAPH 0x400B10 wait. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7.8 KiB
7.8 KiB
Documentation Index
Every document in the toolkit, in one place. The README's Documentation section lists where to start; this page lists everything, and then the same pages again by the problem in front of you — because a title under bring-up rarely announces which subsystem it is stuck in.
Start Here
- Getting Started — End-to-end walkthrough from XBE to a running title
- Decompilation Guide — Using the toolkit as a function splitter instead: one byte-exact
.sper function, with signatures and the call graph - Runtime Implementation Guide — The four pillars every title needs: memory layout, kernel, graphics, input
- Contributing — Setup, where to focus, code style, how to submit
Pipeline Guides
One per stage, in the order you run them.
- Step 1: Extracting and Parsing XBE Files
- Step 2: Disassembly and Function Detection — including the four ways the detector misses or merges functions
- Step 3: Function Identification
- Step 4: x86 to C Lifting — including jump tables the pattern match misses, and privileged registers
- Step 5: Building the Runtime — manual overrides (replace, don't wrap), and
RECOMP_ABI_CHECKwiring - Step 6: Iterative Debugging — including the ABI checker's standing reports, and guest registers in cdb
Technical Deep Dives
Recompiled code
- The Register Model — Why global registers work and how the stack is simulated
- Indirect Call Dispatch — The RECOMP_ICALL problem and how to solve it
- SEH and Exception Handling — Structured exception handling in recompiled code
- Recovering a Split Function — When the detector splits one function at an interior branch target:
--coalesce-functions - MSVC RTTI Recovery — Class names, vtables and virtual methods from a title's RTTI, as seeds for disassembly
- Conformance Testing — Lifted C against the real CPU, the oracle that cannot be wrong
Runtime
- Memory Layout Reproduction — CreateFileMapping, mirror views, and address space tricks
- Xbox Kernel Replacement — Mapping Xbox kernel ordinals to Win32, and the gotchas
Graphics
- D3D8 to D3D11 Translation — Bridging Xbox's graphics API to modern DirectX
- NV2A Shader Translation — Register combiners and vertex microcode to HLSL
- D3D8LTCG Device Context — Device field map, PB ring management, stub calling conventions
- Pushbuffer Executor — Executing a statically linked XDK D3D title's pushbuffer: DMA-engine walk, answering the title, fixed-function transform and lighting, anti-aliased surfaces, render back ends
Microsoft's own recompiler
- Microsoft's Own Recompiler — White-room analysis of Ficl/Fission: pipeline, address map, HLE boundary
- Ficl/Fission Codegen Teardown — What both translators emit, and how it reframes the roadmap
- Ficl/Fission Across Four Titles — What the recompiler does, separated from what one title needed
- Adopting the Crimson Skies Findings — Working plan and status
- SVOD Extraction — Getting the guest XBE out of a BC package, and the gate that catches a plausible-looking bad extraction
Project
- Lessons Learned — What worked, what didn't, mistakes to avoid
- Gap Analysis vs xemu — What's implemented, what's missing, prioritized roadmap
- Candidate Games — Choosing a target, tiered by difficulty
- Burnout 3 Reunification — Bringing the origin title back onto the extracted toolkit
- xemu GDB Debugging — xemu's GDB stub as a reference debugger for runtime state
Xbox Formats
- XBE File Format — Xbox executable format reference
- Xbox Kernel Exports — Kernel functions, prototypes and Win32 equivalents
- Xbox Disc Images — Disc image formats and extracting game files
Per-Module API Reference
- Runtime Libraries — Architecture, build instructions, integration guide
- xbox_kernel — Memory layout, file I/O, threading, sync, crypto, EEPROM, SMBus
- xbox_d3d8 — D3D8 interface, register combiners, vertex shaders, texture unswizzle
- xbox_dsound — DirectSound buffers, 3D audio, mixbins
- xbox_apu — MCPX APU voice processor, mixer, MMIO
- xbox_nv2a — NV2A GPU registers, push buffer, PGRAPH→D3D11
- xbox_input — Gamepad state, vibration, button mapping
Tools
- Tools Reference — Usage for every pipeline tool
- Ghidra Naming — Real names from Ghidra headless, and triage without the GUI
- IDA Naming — The same job through IDA
- Debug Symbol Recovery — Which source file each function came from, from a debug build's assert strings
- MSVC under Wine — The conformance suite's compiler on a non-Windows host
By Symptom
Where to look when a title does something and says nothing about why.
| The title… | Look at |
|---|---|
| exits cleanly after two kernel calls | a thread start routine with no dispatch entry: tools/seed_from_log, Functions the Detector Misses |
logs [ICALL] Failed to resolve VA between two functions |
Reached only through a pointer |
| splits one function at an interior branch target | Recovering a Split Function |
| logs it for an address inside a function | Back-to-back functions, merged, or a jump table the lifter missed |
| starts no CRT thread at all | A no-return call swallows the next function |
| crashes on its first movie | Library sections with no functions at all |
fails to build on dr0–dr7 |
Privileged Registers |
ignores an override in recomp_manual.c |
Replace, Don't Wrap, Registers in recomp_manual.c |
duplicates NtCurrentThread() forever |
Pseudo-Handles Are Negative |
| runs out of memory as the CRT heap grows | The Heap Grows Only on 487 |
| slows to 1 FPS some minutes into a level | Counters Outlive 32 Bits |
| reports ABI violations in CRT helpers | Reports RECOMP_ABI_CHECK Always Gives |