---
title: "DeepSeek V4.1 Flash 使用 REA 逆向工程一款 1984 年 DOS 遊戲，並以 0.68 美元將其重建為 Chrome 版本"
url: "https://reamcp.dev/zh-tw/cases/deepseek-v4-1-flash-used-rea-to-reverse-engineer-a-1984-dos--229f34"
source: "https://www.reddit.com/r/DeepSeek/comments/1xr3g3i/deepseek_v41_flash_used_rea_to_reverseengineer_a"
source_type: "reddit"
author: "pzarevich"
author_handle: "pzarevich"
stars: 0
category: "應用功能重現"
categories: ["app-recreation"]
tags: ["binary-decompilation", "dos-game", "game-port", "ghidra", "html5-canvas"]
added: "2026-11-09T04:41:30.169Z"
updated: "2026-11-08T17:11:39.000Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# DeepSeek V4.1 Flash 使用 REA 逆向工程一款 1984 年 DOS 遊戲，並以 0.68 美元將其重建為 Chrome 版本

一名開發者描述如何將 REA 作為 MCP 伺服器與 Ghidra 搭配使用，反編譯 1984 年 Sopwith DOS 二進位檔，擷取精靈圖、地形與遊戲資料表，並將其重建為 HTML/Canvas 遊戲，文中附有儲存庫連結與方法論。

## Description

這篇 Reddit 貼文詳細說明了一套具體的 REA 工作流程：DeepSeek V4.1 Flash 使用 REA（一個執行 Ghidra 的 MCP 伺服器）反編譯一個 43 KB 的 DOS 遊戲二進位檔，還原其遊戲迴圈、物理、計分與資料表，並將其重建為可遊玩的 HTML/Canvas 移植版。作者附上開源代理程式框架與 REA 的連結，說明如何直接從 EXE 擷取素材，並將移植版與在 DOSBox 中執行的原始版本進行比較。

## Original README

Disclosure: I work on **AgenC Core**, the open-source agent harness used here: [https://github.com/tetsuo-ai/agenc-core](https://github.com/tetsuo-ai/agenc-core)

I gave DeepSeek V4.1 Flash (effort max) one prompt and the original Sopwith executable from 1984: a 43 KB DOS binary, with no source code. It had REA connected as an MCP server ([https://github.com/morluto/rea](https://github.com/morluto/rea)), which runs Ghidra under the hood. Then it worked on its own for an hour, in a sandbox with no internet.

What it did:

* Decompiled the whole binary with REA and worked out the game loop, controls, flight physics, scoring, computer planes and world layout.
* Wrote a Python extractor that pulls everything straight out of the EXE: the sprites (the plane at every angle, buildings, oxen, birds), the 3,000-point terrain profile and the game tables.
* Rebuilt it as a plain HTML/Canvas game at the original 320x200 CGA resolution, with PC-speaker style sound.
* Ran the original in DOSBox, captured reference frames, and compared them side by side with its port in headless Chrome. The only thing not inside the EXE was the BIOS font, so it recovered that from the DOSBox screenshots.

The numbers:

* 1 hour, one prompt, no follow-ups
* 374 model calls, 624 tool calls (7 of them REA)
* 145M input tokens (99.7% cache hits), plus 308K output
* $0.68 total at DeepSeek’s off-peak rate ($1.37 at peak)

The flying in the video is a small script pressing the game’s real keys, so you can see takeoff, the bombing runs and the autopilot landing in one take.

The full prompt is in the comments. The author released Sopwith’s source under the GPL, but the agent never saw it: it worked only from the binary.
