# Daggerfall: matching DOS executable reconstruction and XnGine translation

> daggerfall-decomp reconstructs The Elder Scrolls II: Daggerfall 1.07.213 FALL.EXE with Watcom C 10.0a and separately translates its XnGine assembly engine into C. Its tools compare compiled functions, rebuild the executable, run scripted game scenarios and trace asset use. The author reports all 2,297 game C functions matched and a byte-identical FALL.EXE.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/brotchie/daggerfall-decomp>
- Primary source: <https://github.com/brotchie/daggerfall-decomp/blob/6c82057e90f198c609ccd4aaf5d411f27ef2fe6e/README.md>
- Catalog page: <https://awesomerea.org/resources/daggerfall-matching-decomp-case/>
- Record JSON: <https://awesomerea.org/resources/daggerfall-matching-decomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/daggerfall-matching-decomp-case/index.md)

## Requirements & limits

- **Prerequisites:** Provide your own Daggerfall executable and data, Watcom C/C++ 10.0a, and Borland Turbo Assembler 4.0 for rebuilding XnGine.
- **Prerequisites:** The documented workflow uses DOSBox-X and Python tools.
- **Testing evidence:** The author reports 2,297 of 2,297 game C functions matched in FALL.EXE 1.07.213.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/brotchie/daggerfall-decomp/blob/6c82057e90f198c609ccd4aaf5d411f27ef2fe6e/README.md>
2. <https://github.com/brotchie/daggerfall-decomp/blob/6c82057e90f198c609ccd4aaf5d411f27ef2fe6e/docs/engine/architecture.md>

## More in Games

- [Decomp-no-Me-UN5Decomp: reconstructing Naruto Shippuden 5 functions](https://awesomerea.org/resources/decomp-no-me-un5-case/index.md) · Case study
- [Destruction Derby 64: a matching decompilation of the US ROM](https://awesomerea.org/resources/destruction-derby-64-decomp-case/index.md) · Case study
- [Devil May Cry 3: a matching PlayStation 2 decompilation](https://awesomerea.org/resources/dmc3-decomp-case/index.md) · Case study
- [Diddy Kong Racing: matching N64 decompilation](https://awesomerea.org/resources/diddy-kong-racing-case/index.md) · Case study
- [Digimon Digital Card Battle: a three-region matching decompilation](https://awesomerea.org/resources/dcb-decomp-case/index.md) · Case study
- [Digimon Rumble Arena: matching PlayStation decompilation](https://awesomerea.org/resources/digimon-rumble-arena-decomp-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
