{
  "added_at": "2026-10-18",
  "additional_evidence_urls": [
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/INSTALL.md",
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/Makefile",
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/roms.sha1",
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/.rgbds-version",
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/.github/workflows/main.yml",
    "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/.github/checkdiff.sh",
    "https://github.com/pret/pokered/tree/af519899719f0754965776faac0e836a3b906e6d/vc"
  ],
  "category": "reconstruction-cases",
  "description_en": "Reconstructs the Game Boy games Pokémon Red and Blue as RGBDS assembly, with graphics and data kept as editable source files. One tree builds the USA/Europe Red and Blue ROMs, a Blue debug build and patches for the Virtual Console releases, each checked against a recorded SHA-1. It is a full disassembly rather than a decompilation into a higher-level language.",
  "description_zh": "以 RGBDS 汇编重建 Game Boy 游戏《精灵宝可梦 红／蓝》，图像和数据以可编辑的源文件保存。同一源码树可构建美版／欧版红、蓝 ROM、一个蓝版调试构建以及 Virtual Console 版本的补丁，并逐一与记录的 SHA-1 比对。它是完整的反汇编项目，而非反编译为高级语言的源码。",
  "entry_url": "https://awesomerea.org/resources/pokered-disassembly-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/pokered-disassembly-case/",
  "evidence_url": "https://github.com/pret/pokered/blob/af519899719f0754965776faac0e836a3b906e6d/README.md",
  "group": "cases",
  "id": "pokered-disassembly-case",
  "json_url": "https://awesomerea.org/resources/pokered-disassembly-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/pokered-disassembly-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/pokered-disassembly-case/index.md",
  "name": "pokered: a matching Pokémon Red and Blue disassembly",
  "name_zh": "pokered：一致构建的《精灵宝可梦 红／蓝》反汇编",
  "reconstruction_method": "matching-decompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "scope",
    "prerequisites",
    "prerequisites",
    "testing",
    "license"
  ],
  "requirements": [
    "README says the disassembly builds Pokemon Red (UE), Pokemon Blue (UE), the BLUEMONS.GB debug build and two Virtual Console patch files, listing a SHA-1 for each. Code, text, maps and audio are RGBDS assembly, and graphics are PNG files converted during the build; Virtual Console patches come from separate VC builds and patch templates.",
    "The build reads no original ROM: every input is in the repository, so the outputs are rebuilt from source rather than combined with extracted assets. The repository therefore carries the game's text, graphics and data in source form.",
    "INSTALL.md covers Linux distributions, macOS with Homebrew, Windows through WSL (or Cygwin on older Windows) and Termux. The build needs make, gcc or clang, git and rgbds 1.0.4, which the repository pins; helper tools under tools/ handle graphics conversion, compression and patch generation.",
    "make compare builds every target and runs sha1sum against roms.sha1. pret's CI does this on Linux and macOS with rgbds 1.0.4 and fails when the build leaves uncommitted changes, while forks only build. Matching hashes show identical output bytes.",
    "The repository has no license file, so reuse terms for the disassembly are unstated, and the original game's content remains its rights holders'. rgbds is a separate project with its own terms."
  ],
  "requirements_zh": [
    "README 称该反汇编可构建 Pokemon Red (UE)、Pokemon Blue (UE)、BLUEMONS.GB 调试构建及两个 Virtual Console 补丁文件，并逐一列出 SHA-1。代码、文本、地图和音频均为 RGBDS 汇编，图像为构建时转换的 PNG 文件；Virtual Console 补丁由单独的 VC 构建和补丁模板生成。",
    "构建不读取任何原版 ROM：所有输入都在仓库中，因此产物完全由源码重新生成，而不是与提取的素材合并。也就是说，仓库本身以源文件形式包含游戏的文本、图像和数据。",
    "INSTALL.md 涵盖各 Linux 发行版、通过 Homebrew 的 macOS、通过 WSL 的 Windows（旧版 Windows 用 Cygwin）以及 Termux。构建需要 make、gcc 或 clang、git 和仓库固定的 rgbds 1.0.4；tools/ 下的辅助工具负责图像转换、压缩及补丁生成。",
    "make compare 构建全部目标，并依据 roms.sha1 运行 sha1sum。pret 的 CI 在 Linux 和 macOS 上用 rgbds 1.0.4 执行此检查，构建若留下未提交的改动即判失败，分叉仓库则只构建。哈希一致说明输出字节相同。",
    "仓库没有许可证文件，反汇编的复用条款未作说明，原游戏内容仍归其权利人所有。rgbds 是独立项目，适用其自身条款。"
  ],
  "targets": [
    "game"
  ],
  "url": "https://github.com/pret/pokered",
  "verification": "source-reviewed",
  "verified_at": "2026-10-18"
}
