From b7f63aeace64ea30e4c0681c42fc15a034bae106 Mon Sep 17 00:00:00 2001 From: Alejandro Javier Asenjo Nitti Date: Sat, 7 Oct 2023 09:04:05 -0300 Subject: [PATCH] func_8000BF6C --- src/main/C870.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/C870.c b/src/main/C870.c index c8901c8c..33d96ef3 100644 --- a/src/main/C870.c +++ b/src/main/C870.c @@ -10,7 +10,17 @@ #pragma GLOBAL_ASM("asm/us/nonmatchings/main/C870/func_8000BF14.s") +// Matches with IDO 5.3 -02 -g0 +#ifdef NON_MATCHING +void func_8000BF6C(s32* arg0, s32 arg1, s32 arg2) { + arg0[0] = (arg1 + 0xF) & ~0xF; + arg0[1] = (arg1 + 0xF) & ~0xF; + arg0[2] = arg2 - (arg1 & 0xF); + arg0[3] = 0; +} +#else #pragma GLOBAL_ASM("asm/us/nonmatchings/main/C870/func_8000BF6C.s") +#endif #pragma GLOBAL_ASM("asm/us/nonmatchings/main/C870/func_8000BF94.s")