mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-26 21:36:06 -04:00
8bbf2e8e4d
- libspu and libsnd interleave in 0x3A444..0x4239C (the 800-subseg tail), so they link
as ONE combined region rather than two tangled passes
- NEW tools/make_snd_used.py: build the curated combined dir — merge both libs by vram,
pick the byte-matching object per aliased address (link_object), exclude 4 addresses
that don't reconcile in-region (kept as byte-identical stubs):
0x3C438 S_R/S_W, 0x3D424 S_GRMDT/FB/T — scattered-.bss commons, cross-object (§9.1)
0x3D94C S_IH/UT_RON — false placement (inside libsnd SSSTART.o)
0x3FA64 VM_F (237 ins) — scattered-.bss commons (the one real loss)
- subsegs via gen_lib_subsegs.py (9 snd blocks + 8 sgap game/excluded-stub gaps);
integrate window 0x3A444..0x4239C; region byte-verified 60/60
- src/800.c trimmed at [0x3A444,0x4239C): kept 732 items < 0x3A444 (ALL matched C +
game + the deferred SSGM stub preserved), 0 real-C moved
- dual byte-gate PASS: 143dbb89 with and without the sound objects
- LINKED 710 -> 935 (+225); REAL still 43; byte-identical 48.66% (nearly half the EXE)
- deferred: SSGM.o @0x1BD80 (isolated, matched-C region, 8 ins)
16 lines
414 B
C
16 lines
414 B
C
#include "common.h"
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", vmNoiseOn);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_184);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_1F4);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_264);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_28C);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_31C);
|
|
|
|
INCLUDE_ASM("asm/nonmatchings/sgap_7", VM_NO1_OBJ_4A4);
|