mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-04 09:38:16 +00:00
309bfbedfc
docs/INDEX.md stays the one index. Every page gets one navigation line under its title that points back to it, and runtime/ gets a reference page for the environment variables. docs/runtime/environment-variables.md lists every RECOMP_* switch the runtime and tools read: its default, its effect and the source file that reads it, grouped as bring-up, kernel, pushbuffer executor, video, audio and input. Fifty-one of them were not in the docs at all. docs/INDEX.md links it from "Start Here". No page is renamed, moved or rewritten, and no other index is added. Checked: every RECOMP_* name read by getenv, env_on, apu_env_on, env_int or xa2_env_int in src/, tools/, templates/ and include/ is on the page, and every name on the page is in the source. All relative links in docs/ resolve (0 broken, as at v0.16.0). The 34 existing pages change by insertion only: 68 lines added, none removed. docs/INDEX.md gains one line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7.9 KiB
7.9 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
- Environment Variables — Every
RECOMP_*switch: default, effect, and the source file that reads it - 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 |