mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-29 23:24:32 -04:00
feat(decomp): main lane m25bbb — 1 banked
One clean whole-EXE rebuild verified the batch (gate_main), and main re-checked BYTE-IDENTICAL against config/check.us.sha before anything was credited. func_8001CFDC
This commit is contained in:
@@ -7760,7 +7760,32 @@ void func_8001CFB8(void) {
|
||||
func_8001CFDC(0, 4);
|
||||
}
|
||||
|
||||
INCLUDE_ASM("asm/nonmatchings/800", func_8001CFDC);
|
||||
extern u8 D_800AF630[];
|
||||
|
||||
void *func_8001CFDC_impl(s32 start, s32 end) __asm__("func_8001CFDC");
|
||||
|
||||
void *func_8001CFDC_impl(s32 start, s32 end) {
|
||||
u8 *base = D_800AF630;
|
||||
u8 *p;
|
||||
s32 off;
|
||||
s32 i;
|
||||
|
||||
if ((u32)start >= 0xC0)
|
||||
return 0;
|
||||
if ((u32)end >= 0xC1)
|
||||
return 0;
|
||||
if (start < end) {
|
||||
p = base + start * 0x84;
|
||||
off = start * 0x84;
|
||||
for (i = start; i < end; i++) {
|
||||
if (*(u16 *)(p + 0x2A8) == 0)
|
||||
return base + (off + 0x2A8);
|
||||
p += 0x84;
|
||||
off += 0x84;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern void func_8001D074(s32 a, s32 b);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user