# AI-driven decompilation recreates Pool of Radiance source in Turbo Pascal

> **Key takeaway:** Using AI agents, a researcher successfully decompiled a 1988 DOS game into byte-identical Turbo Pascal 6.0 source code.

**Published:** 2026-11-23T15:23:59+00:00 
**Source:** Adafruit Electronics 
**Category:** open-hardware 
**Canonical URL:** https://fosswire.org/news/ai-driven-decompilation-recreates-pool-of-radiance-source-in.html 

## Summary
Researcher Simon Asselin has released a project on GitHub that utilizes AI agents to perform a byte-matching decompilation of the 1988 DOS title Pool of Radiance (version 1.3). The process successfully reconstructed the game's logic into Turbo Pascal 6.0 source code. This reconstructed source is capable of being compiled back into the original machine code with byte-for-byte identity.

Beyond the Pascal reconstruction, the project includes a translation of the code into portable C using an SDL-based host. This C version is compatible with modern systems via CMake and can be ported to platforms like the Tandy Color Computer 3. While the repository provides the tools, methodology, and source code, it does not include the original game assets, executables, or the compiler itself.

## Technical methodology and portability
- **Byte-matching verification:** The Turbo Pascal 6.0 source code is verified through a make target that ensures the resulting binary is identical to the original 1988 machine code.
- **AI-assisted workflow:** The decompilation process was driven by AI agents, with the repository documenting the specific tools and logic used by the agents during the reconstruction.
- **C translation and SDL integration:** A secondary version of the codebase has been translated to portable C, utilizing the SDL library to provide a modern host for the game logic.
- **Build systems:** The C-based port utilizes CMake for compilation, allowing for easier integration into modern development environments compared to the original DOS-era tools.

## Why it matters
This project demonstrates a significant advancement in using AI agents for complex reverse engineering and software preservation tasks. It provides a blueprint for how legacy software can be transitioned from obsolete environments to portable, modern C codebases while maintaining functional integrity.