← Decompilations
DOS

Betrayal at Krondor

Game: Betrayal at Krondor (DOS, 1993)

A reconstruction of Betrayal at Krondor’s source code (Dynamix, 1993) from the DOS binaries that reproduces KRONDOR.EXE, VMCODE.OVL, and SX.OVL byte for byte for two releases from the same code: 1.00 on floppy disks (June 16, 1993) and 1.02 on CD-ROM (March 21, 1994). It builds with the period tools (Borland C++ 3.1, 3.0, and 2.0, and TASM) inside FreeDOS on QEMU, with a Python tool that automates it; the author publishes those tools packaged as a separate download. The only assembly in it is what was already assembly in the original. Its goals are education and preservation: it adds no support for modern systems, which the author plans to do in a separate fork. The byte match is complete, but the code still carries decompilation artifacts and names to fix, and the work continues module by module. It includes a browser-based viewer for exploring the game’s assets and dialogue with your own files. Its contributing guide calls language models useful for this work as long as they are held to evidence, and the repository carries instructions for Claude agents; documentation, by contrast, is written or reviewed by a person. It includes no game data: building a playable executable needs the files from your own copy.

Console
MS-DOS
Architecture
x86
Author
canassa
Stars
34
Last activity
2026-08-02 · 2 months ago
Latest version
toolchain-v1 · 2026-07-21
Language
Assembly
View repository ↗
x86matchingai-assisted