IronFrame OuterFortress (Cart) 01 Decomp
Documentation Menu
On This Page

Features — IronFrame OuterFortress (Cart) 01 Decomp

Overview of what this repository supports today (v0.4.0 Execution Lockstep, clean-room Bank 1..4 / BANK_06 table decoders, and zero-tell clean idiomatic C11 baseline) and what is scheduled for v1.0.0 (Archival Gold Reference). See ROADMAP.md for the full release plan.

Feature Summary

Feature Status Target Primary Code What It Does
Clean-Room 6502 Assembler Live v0.1.0 Dev/scripts/asm6502_d5.py Assembles symbolic 6502 source (56 mnemonics, 151 opcodes) to 1:1 ROM bytes (8/8 banks).
Self-Contained BYO-ROM Unpacker Live v0.1.0 Dev/scripts/nes_unrom_unpack.py Validates .nes SHA-256/CRC32, splits Mapper 2 banks, traces CFG (nes_6502_cfg.py), and supports --offline-synthetic.
Cohesive Domain C Modules & Tiers Live v0.2.0 Dev/scripts/coalesce_d4_modules.py, Dev/scripts/materialize_decomp_tiers.py Consolidates 68 line-split fragments into 26 domain C modules (499/499 functions), resolves all 299 raw globals & 44 raw calls (0 raw tokens, 8 synthesized adapters), and preserves raw, sliced, mapped, and clean C11 local tiers.
Clean Idiomatic C & Zero Warnings Live v0.3.0 Dev/scripts/craftsmanship_d4_{helpers,ast_cleaner,normalizer}.py Eliminates all decompiler tells across 34 C/header files (507 symbols), compiles 26/26 modules with 0 errors/warnings under -Wall -Wextra -Wno-unused-parameter, emits 5 zero-body d4_rewrites/*.json shards, and syncs 36 files into Corpus/readable/.
C11 NesBus & Execution Lockstep Live v0.4.0 Dev/scripts/d4_harness/, Dev/scripts/{d4b_oracle_bridges,run_d4b_lockstep}.py Drives 650 frames / 5 gameplay scenes ($0100-$01FF stack masked) in clean-room C11 NesBus, achieving mismatchedFrames: 0 against Mesen 2.1.1 plus reCart InterpreterOracle differential witness and 8/8 linked clean C11 checkpoints.
Bank 1..4 & BANK_06 Table Decoders Live v0.4.0 Dev/scripts/decode_*.py, Dev/docs/specifications/*.md Extracts room/metatile/CHR, guard/spawn/weapon/password, and codec/BANK_06 audio tables strictly to --out-dir (Corpus/work/decoded_tables/) with unresolvedFieldCount: 0 across 4 specification spokes.
Portable .decomp Bundle & Packager Live v0.4.0 Dev/scripts/export_decomp_bundle.py, Dev/scripts/package_release.py Emits reCart (0.1.x) validated v0.4.0 IronFrame-OuterFortress-Cart-01.decomp (55 entries including d4_build_report.json, d4b_lockstep_report.json, decoder scripts, and 5 d4_rewrites/*.json shards) and 10-invariant release mirrors.
Offline Unit Tests & Track Verifiers Live v0.4.1 Dev/scripts/tests/, Dev/scripts/{d4b_validation_helpers,verify_track_d5}.py Passes 27/27 offline unittest tests (-W error), 17/17 full (11/11 synthetic) verify_track_d5.py checks, 10/10 host parity assertions, and lockstep report/spoke/link hygiene checks.
Symbol, Module & Call-Graph Catalog Live v0.4.0 Dev/schemas/ Indexes 507 symbols across 26 domain modules (499 functions + 8 adapters), 2,324 mapped globals (2,344 header externs), 44 call overrides, 22 structs, 22 enums (unresolvedFieldCount: 0), 5 rewrite shards, and 0 retail strings.
Technical Manuals, Emblems & Docs Site Live v0.4.0 Dev/docs/, Dev/assets/, .github/workflows/ Documents UNROM topology, 4 specification spokes, lockstep/table findings, and clean-room operations with CI validation and human-first GitHub Pages generation.
Archival Gold Certification Planned v1.0.0 Dev/schemas/, Dev/scripts/ Certifies fresh-clone BYO-ROM round-trip (CRC32=25BA3D04), s5_gold_report.json, finalized Gold manuals, and non-prerelease release status.

Capability Details

C11 NesBus Runtime & Execution Lockstep

Clean-Room Bank 1..4 & BANK_06 Table Decoders

Clean Idiomatic C11 Normalizer & Zero-Body Rewrite Shards

  • What it does: Transforms all 26 cohesive C modules (507 symbols = 499 catalog functions + 8 synthesized adapters across 34 C/header files) into zero-tell idiomatic C11 (0 decompiler tells, 0 warnings under -Wall -Wextra -Wno-unused-parameter): removes dead stack locals, zero-initializes and renames register/SSA locals, unrolls 69 comma-operator if conditions, parenthesizes 55 bitwise & expressions, lowers P-code macros and typed pointer/array accesses (g_actor_soa_ram[128], g_apu_mmio_regs[24]), emits clean fixed-width ghidra_compat.h (s8..u64 only) plus zero-suppression .clangd and compile_commands.json, syncs 36 files into Corpus/readable/, and generates 5 dependency-grouped zero-body JSON shards under Dev/schemas/d4_rewrites/.
  • Entry Points: craftsmanship_d4_helpers.py, craftsmanship_d4_ast_cleaner.py, craftsmanship_d4_normalizer.py, d4_rewrites/
  • Verification & Tests: test_tiers_and_coalesce.py, synthetic_d4_fixtures.py, d4_build_report.json

Cohesive Domain C Coalescer & Multi-Tier Snapshots

  • What it does: Merges all 499 functions out of 68 line-split fragments into 26 domain-grouped C modules (10 fixed-bank core modules + 16 switchable-bank overlay modules), resolves 1 local label, 22 synthetic/bank-scoped alias entries (20 deduplicated externs), and 44 raw cross-bank function calls with 0 remaining raw tokens, synthesizes 8 clean-room bank/signature adapters and 9 sub-entry prototypes (factor, table_index), and materializes preserved raw, sliced, mapped, and clean C11 local snapshot tiers (36 synced files in Corpus/readable/).
  • Entry Points: coalesce_d4_modules.py, materialize_decomp_tiers.py, d3_module_map.json, d3_symbol_overrides.json
  • Verification & Tests: test_tiers_and_coalesce.py, d4_build_report.json

Clean-Room 6502 Assembler & BYO-ROM Unpacker

Portable .decomp Bundle, Release Packager & Verification CLI

Modular Host C Parity & NesBus Harness

Symbol, Type & Call-Graph Catalog

Research Technical Manuals & Documentation Site

Archival Gold Pipeline (v1.0.0)

  • What it does: Builds upon the completed v0.4.0 execution lockstep (mismatchedFrames: 0), unresolvedFieldCount: 0 bank decoders, and validated 55-entry IronFrame-OuterFortress-Cart-01.decomp bundle to certify fresh-clone BYO-ROM archival Gold status (CRC32=25BA3D04) and publish the non-prerelease archival milestone.
  • Entry Points: research.manifest.json, ROADMAP.md