# kfiv-decomp：《King's Field IV》逐字节匹配反编译

> kfiv-decomp 将《King's Field: The Ancient City》美版 PS2 可执行文件重建为匹配的 C 代码与汇编。构建流程从用户提供的光盘提取程序，用 splat 拆分，并检查链接后 ROM 的 SHA-1；作者报告字节完全一致，但大量游戏代码仍是汇编。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-06
- 收录于：2026-11-09
- 原始资源：<https://github.com/Voicedrew11/kfiv-decomp>
- 一手来源：<https://github.com/Voicedrew11/kfiv-decomp/blob/09adc15974b2936b09943d2a55cc29fa472a79b2/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/kfiv-decomp-case/>
- 记录 JSON：<https://awesomerea.org/resources/kfiv-decomp-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/kfiv-decomp-case/index.md)

## 使用条件与局限

- **前提条件：**需要自备美版 SLUS-20318 光盘镜像。
- **前提条件：**需要具备 32 位 glibc、支持 -m32 的 gcc、flex、bison、curl、git 和 Python 3 的 64 位 Linux。
- **局限：**游戏代码仍有部分采用 splat 生成的汇编；VU1 微程序尚未接入。
- **许可：**采用 MIT 许可证。

## 一手来源

1. <https://github.com/Voicedrew11/kfiv-decomp/blob/09adc15974b2936b09943d2a55cc29fa472a79b2/README.md>
2. <https://github.com/Voicedrew11/kfiv-decomp/blob/09adc15974b2936b09943d2a55cc29fa472a79b2/CONTRIBUTING.md>

## 同分区更多条目：游戏

- [Kid Icarus: Of Myths and Monsters：Game Boy 游戏反汇编](https://awesomerea.org/zh/resources/kid-icarus-omm-disassembly-case/index.md) · 案例
- [Kingdom Hearts 2 Final Mix：进行中的 PS2 主 ELF 反编译](https://awesomerea.org/zh/resources/kingdom-hearts-2-final-mix-decomp-case/index.md) · 案例
- [《王国之心 358/2 Days》：逐字节一致的 Nintendo DS 反编译重建](https://awesomerea.org/zh/resources/kingdom-hearts-days-matching-decomp-case/index.md) · 案例
- [Kingdom Hearts: Chain of Memories：GBA 一致性反编译](https://awesomerea.org/zh/resources/khcom-decomp-case/index.md) · 案例
- [Kirby Air Ride：GameCube DOL 反编译重建](https://awesomerea.org/zh/resources/kirby-air-ride-decomp-case/index.md) · 案例
- [Kirby Air Ride：覆盖三个地区版本的 GameCube 反编译](https://awesomerea.org/zh/resources/kar-kirby-air-ride-case/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
