Files
BFM-decomp/config/splat.ov_SC02_005.yaml
T
Drew T 797cb97cb7 feat(decomp): parallel gate — 9 fns across 6 binaries (8 workers)
ov_SC06_024    func_8017EC4C
  ov_SC06_029    func_8017F9C0
  ov_SC03_105    func_801867D0
  ov_SC05_010    func_80180F84
  ov_SC02_005    func_80185060 func_80185E80
  ov_SC02_011    func_80183630 func_8018418C func_80188E3C
2026-09-02 18:38:30 -06:00

195 lines
11 KiB
YAML

# splat config TEMPLATE — Brave Fencer Musashi location overlays (SCxx.CD/FILE_nnn/0.4.dec)
# =============================================================================
# Phase 13: the reusable flat-blob splat config for a LOCATION OVERLAY. ~134 overlays
# all stream into the SAME RAM slot (vram 0x80128158) and chain into the resident engine
# (0x800CEDF8) + the EXE. This is a TEMPLATE: the @TOKEN@ placeholders are substituted to
# produce config/splat.<alias>.yaml — by tools/new_overlay.sh (Phase 13 T4), or by hand
# (Phase 13 T1a for the first overlay). It is NOT a valid splat config until instantiated.
#
# Placeholders:
# ov_SC02_005 binary alias, ov_<SCxx>_<nnn> e.g. ov_SC01_077
# extracted/retail/SC02.CD.dir/FILE_005.dir/0.4.dec extracted 0.4.dec payload path e.g. extracted/retail/SC01.CD.dir/FILE_077.dir/0.4.dec
# 9c233988b0619497ccecfc945276fb11ff97354a sha1 of the 0.4.dec (the build-identity target; also -> config/check.<alias>.sha)
# 0x80128158 load vram (the shared overlay slot) e.g. 0x80128158 (constant across overlays today;
# parameterized so a future non-0x80128158 overlay needs no template edit)
# 0x6873C file offset where code ends -> data tail begins (iterated vs the byte check, T1b)
# 0xBCB01 file size in bytes (the EOF marker; = the 0.4.dec length)
#
# Modeled on config/splat.resident.yaml (the Phase-10 flat-blob recipe), with overlays'
# differences: (1) code at file offset 0x0 (overlays open with a function prologue, NOT a
# leading data word like the resident — so NO leading-rodata trick by default; see the
# commented `head` slot for the rare pre-code-data overlay); (2) symbol_addrs_path ALSO
# stacks config/symbols.resident.txt because overlays reference resident engine globals;
# (3) vram is the overlay slot. Everything else matches the resident options verbatim.
#
# Byte-match is robust to the exact text/data split (splat round-trips the bytes — the
# resident precedent); iterate 0x6873C against `make check BINARY=ov_SC02_005` (Phase-5/10
# precedent). LZSS is NOT in the verify path — we match the DECOMPRESSED 0.4.dec (repack is Gen3).
name: ov_SC02_005
sha1: 9c233988b0619497ccecfc945276fb11ff97354a
options:
basename: ov_SC02_005
target_path: extracted/retail/SC02.CD.dir/FILE_005.dir/0.4.dec
elf_path: build/ov_SC02_005/ov_SC02_005.elf
# base_path is resolved relative to THIS yaml's dir (config/), so `..` = repo root
base_path: ..
platform: psx
compiler: PSYQ
asm_path: asm/ov_SC02_005
src_path: src/ov_SC02_005
# asset_path scoped per-alias so a `bin` subseg (the trailing-partial-word carve, below) lands at
# assets/ov_SC02_005/*.bin and never collides with another overlay's same-named asset. The Makefile's
# build/assets/%.o rule incbin's it into a linkable object.
asset_path: assets/ov_SC02_005
# build_path = build (NOT build/<alias>): splat writes the .ld's object paths under
# $(build_path), and the Makefile's pattern rules build them at build/asm/** + build/src/**.
# Only the elf/ld/output live in build/<alias>/.
build_path: build
ld_script_path: build/ov_SC02_005/ov_SC02_005.ld
ld_dependencies: True
# Per-binary undefined-symbol outputs (under build/<alias>/), so `make clean`'s `rm -rf build`
# covers them and binaries never share a stale file.
undefined_syms_auto_path: build/ov_SC02_005/undefined_syms_auto.txt
undefined_funcs_auto_path: build/ov_SC02_005/undefined_funcs_auto.txt
find_file_boundaries: False
# NO gp_value: overlays are -G0 (verify zero ($gp)/%gp_rel in the disasm). Omitting it -> no _gp.
o_as_suffix: True
use_legacy_include_asm: False
section_order: [".rodata", ".text", ".data", ".bss"]
# Stacked symbols: shared engine globals (symbols.us.txt) + resident engine globals the overlay
# calls (symbols.resident.txt) + the overlay-local names/boundaries (symbols.<alias>.txt, seeded
# T1c from sig_image + duplicates.cross.md; R13/R15-tagged, overlay-region only).
symbol_addrs_path:
- config/symbols.us.txt
- config/symbols.resident.txt
- config/symbols.ov_SC02_005.txt
subalign: 2
string_encoding: ASCII
data_string_encoding: ASCII
rodata_string_guesser_level: 2
data_string_guesser_level: 2
# Enable if maspsx reorders INCLUDE_ASM output in c-mode (unused for the EXE/resident):
# include_asm_macro_style: maspsx_hack
segments:
- name: ov_SC02_005
type: code
start: 0x0
vram: 0x80128158
# align 4 (not the code default 16): MIPS is word-aligned; mirrors the EXE/resident choice.
align: 4
subsegments:
# OPTIONAL leading pre-code data/rodata island (rare): if an overlay begins with a data
# word BEFORE its first function (the resident's case), uncomment a `head` subseg here and
# shift the code start. Mark it `rodata` (section_order places .rodata first) so it lands at
# 0x80128158 ahead of the code, a 1-word analogue of main's rodata-island (no ld_interleave).
# - [0x0, rodata, head]
- [0x0, c, ov_SC02_005]
- [0x2b88, c, ov_SC02_005_jr_8012ACE0]
- [0xd730, c, ov_SC02_005_jr_80135888]
- [0xd8f4, c, ov_SC02_005_jr_80135A4C]
- [0xdbc8, c, ov_SC02_005_jr_80135D20]
- [0xff88, c, ov_SC02_005_jr_801380E0]
- [0x13410, c, ov_SC02_005_o0c]
- [0x14834, c, ov_SC02_005_jr_8013C98C]
- [0x171f8, c, ov_SC02_005_jr_8013F350]
- [0x17e80, c, ov_SC02_005_jr_8013FFD8]
- [0x184b0, c, ov_SC02_005_jr_80140608]
- [0x1CA44, c, ov_SC02_005_o0b] # -O0 whale func_80144B9C (0x1CA44..0x1D64C)
- [0x1d64c, c, ov_SC02_005_after]
- [0x2c2f4, c, ov_SC02_005_jr_8015444C]
- [0x2cacc, c, ov_SC02_005_jr_80154C24]
- [0x30774, c, ov_SC02_005_jr_801588CC]
- [0x31b2c, c, ov_SC02_005_jr_80159C84]
- [0x32270, c, ov_SC02_005_jr_8015A3C8]
- [0x32cd4, c, ov_SC02_005_jr_8015AE2C]
- [0x341d4, c, ov_SC02_005_jr_8015C32C]
- [0x42a14, c, ov_SC02_005_jr_8016AB6C]
- [0x499f4, c, ov_SC02_005_jr_80171B4C]
- [0x4b364, c, ov_SC02_005_jr_801734BC]
- [0x50854, c, ov_SC02_005_jr_801789AC]
- [0x50be8, c, ov_SC02_005_jr_80178D40]
- [0x52354, c, ov_SC02_005_jr_8017A4AC]
- [0x52cd4, c, ov_SC02_005_jr_8017AE2C]
- [0x54e38, c, ov_SC02_005_jr_8017CF90]
- [0x5982c, c, ov_SC02_005_jr_80181984]
# §431 THREE-WAY SPLIT (P31 S74). This TU owned raw jtbl spans in TWO non-adjacent places
# (0x801e2e78-0x801e2e9c for func_80185060, 0x801e2ed0-0x801e2ef0 for func_80185E80) AND
# already emits a carved .rodata run at 0x801e2e38-0x801e2e70 (jtbls of func_80181D30 +
# func_80182A8C). One object = ONE contiguous .rodata run, so all three are unsatisfiable
# in one subseg: 0x801e2e70..0x801e2e78 holds 8 bytes of foreign rodata (0x0000F040,
# 0x00000000 — not a code pointer, and too wide for the 4-byte .align pad spec), so the
# existing carve and span 1 cannot merge. Hence TWO cuts, not one.
- [0x59bd8, c, ov_SC02_005_jr_80181D30] # ..0x80185060; owns the 0x801e2e38 carve
- [0x5cf08, c, ov_SC02_005_jr_80185060] # 0x80185060..0x80185E80; owns span 1 (0x801e2e78)
- [0x5dd28, c, ov_SC02_005_jr_80185E80] # 0x80185E80..0x8018EA04; owns span 2 (0x801e2ed0)
- [0x668ac, c, ov_SC02_005_jr_8018EA04]
- [0x6873c, data, tail]
- [0xb998c, .rodata, ov_SC02_005] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9a68, .rodata, ov_SC02_005_jr_8012ACE0] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9b5c, data, tail2]
- [0xb9b60, .rodata, ov_SC02_005_jr_80135888] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9b74, data, tail3]
- [0xb9b78, .rodata, ov_SC02_005_jr_80135A4C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9b8c, data, tail4]
- [0xb9b90, .rodata, ov_SC02_005_jr_80135D20] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9bd4, data, tail5]
- [0xb9be0, .rodata, ov_SC02_005_jr_801380E0] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9c44, .rodata, ov_SC02_005_o0c] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xb9dc8, data, tail6]
- [0xba250, .rodata, ov_SC02_005_jr_8013F350] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba284, data, tail7]
- [0xba288, .rodata, ov_SC02_005_jr_8013FFD8] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba2f4, data, tail8]
- [0xba2f8, .rodata, ov_SC02_005_jr_80140608] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba30c, data, tail9]
- [0xba324, .rodata, ov_SC02_005_jr_8015444C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba400, .rodata, ov_SC02_005_jr_80154C24] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba444, .rodata, ov_SC02_005_jr_801588CC] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba4ec, .rodata, ov_SC02_005_jr_80159C84] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba520, data, tail10]
- [0xba524, .rodata, ov_SC02_005_jr_8015A3C8] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba540, data, tail11]
- [0xba544, .rodata, ov_SC02_005_jr_8015AE2C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba580, data, tail12]
- [0xba584, .rodata, ov_SC02_005_jr_8015C32C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba5a0, data, tail13]
- [0xba5b8, .rodata, ov_SC02_005_jr_8016AB6C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba5f8, data, tail14]
- [0xba638, .rodata, ov_SC02_005_jr_80171B4C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba658, .rodata, ov_SC02_005_jr_801734BC] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba66c, data, tail15]
- [0xba7fc, .rodata, ov_SC02_005_jr_801789AC] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xba814, .rodata, ov_SC02_005_jr_80178D40] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbaa18, data, tail16]
- [0xbaa1c, .rodata, ov_SC02_005_jr_8017A4AC] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbaaa8, data, tail17]
- [0xbaaac, .rodata, ov_SC02_005_jr_8017AE2C] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbaac0, data, tail18]
- [0xbabf8, .rodata, ov_SC02_005_jr_8017CF90] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbac18, data, tail19]
- [0xbacc8, .rodata, ov_SC02_005_jr_80181984] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbace0, .rodata, ov_SC02_005_jr_80181D30] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbad18, data, tail20]
- [0xbad20, .rodata, ov_SC02_005_jr_80185060] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbad44, data, tail21]
- [0xbad78, .rodata, ov_SC02_005_jr_80185E80] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbad98, data, tail22]
- [0xbae10, .rodata, ov_SC02_005_jr_8018EA04] # Phase-26 §8 jtbl-rodata carve (jtbl_carve.py)
- [0xbae38, data, tail23]
- [0xBCB00, bin, trailing] # final 1 bytes (EOF not 4-aligned; spimdisasm drops a partial word)
- [0xBCB01] # EOF marker = the 0.4.dec byte length
# @TRAILING@ (above) is replaced by tools/new_overlay.sh: for a non-4-aligned overlay it becomes
# ` - [0x<word_floor>, bin, trailing]` (the final 1-3 bytes spimdisasm's data path drops);
# for a 4-aligned overlay the marker line is removed. The Makefile build/assets/%.o rule + the
# objcopy end-align TRIM finish the job. Hand-instantiated configs (ov_SC01_077) inline the carve.