# kfiv-decomp: matching decompilation of King's Field IV

> kfiv-decomp reconstructs King's Field: The Ancient City's USA PlayStation 2 executable as matching C and assembly. Its build extracts a user-supplied disc, splits the executable with splat, and checks the linked ROM SHA-1; the author reports a byte-identical result while much game code remains assembly.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/Voicedrew11/kfiv-decomp>
- Primary source: <https://github.com/Voicedrew11/kfiv-decomp/blob/09adc15974b2936b09943d2a55cc29fa472a79b2/README.md>
- Catalog page: <https://awesomerea.org/resources/kfiv-decomp-case/>
- Record JSON: <https://awesomerea.org/resources/kfiv-decomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/kfiv-decomp-case/index.md)

## Requirements & limits

- **Prerequisites:** Own USA SLUS-20318 disc image.
- **Prerequisites:** 64-bit Linux with 32-bit glibc, gcc -m32 support, flex, bison, curl, git and Python 3.
- **Limits:** The game code remains partly in splat-disassembled assembly; VU1 microprograms are not wired in.
- **License:** MIT license.

## Primary sources

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

## More in Games

- [Kid Icarus: Of Myths and Monsters: a Game Boy disassembly](https://awesomerea.org/resources/kid-icarus-omm-disassembly-case/index.md) · Case study
- [Kingdom Hearts 2 Final Mix: an in-progress PS2 main-ELF decompilation](https://awesomerea.org/resources/kingdom-hearts-2-final-mix-decomp-case/index.md) · Case study
- [Kingdom Hearts 358/2 Days: a matching Nintendo DS decompilation](https://awesomerea.org/resources/kingdom-hearts-days-matching-decomp-case/index.md) · Case study
- [Kingdom Hearts: Chain of Memories — matching GBA decompilation](https://awesomerea.org/resources/khcom-decomp-case/index.md) · Case study
- [Kirby Air Ride: a GameCube DOL decompilation](https://awesomerea.org/resources/kirby-air-ride-decomp-case/index.md) · Case study
- [Kirby Air Ride: a three-region GameCube decompilation](https://awesomerea.org/resources/kar-kirby-air-ride-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
