mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-09 01:25:58 -05:00
name a func and add func to header
This commit is contained in:
@@ -135,7 +135,7 @@ QuickSave:
|
||||
movs r0, 0
|
||||
bl xxx_update_some_bg_tiles
|
||||
bl sub_8014144
|
||||
bl sub_80097B0
|
||||
bl InitFontPalette
|
||||
movs r0, 0x2
|
||||
bl sub_800CDA8
|
||||
movs r0, 0
|
||||
@@ -316,7 +316,7 @@ sub_80008C0:
|
||||
movs r0, 0
|
||||
bl xxx_update_some_bg_tiles
|
||||
bl sub_8014144
|
||||
bl sub_80097B0
|
||||
bl InitFontPalette
|
||||
movs r0, 0x2
|
||||
bl sub_800CDA8
|
||||
movs r0, 0
|
||||
|
||||
@@ -3555,7 +3555,7 @@ _08009714:
|
||||
bl CpuCopy
|
||||
adds r0, r6, 0
|
||||
bl CloseFile
|
||||
bl sub_80097B0
|
||||
bl InitFontPalette
|
||||
ldr r0, _080097AC
|
||||
adds r1, r4, 0
|
||||
bl OpenFileAndGetFileDataPtr
|
||||
|
||||
@@ -17,7 +17,7 @@ struct unkStruct_202D038
|
||||
|
||||
void vram_related_8009804(void);
|
||||
|
||||
void sub_80097B0(void);
|
||||
void InitFontPalette(void);
|
||||
void sub_80098A0(void);
|
||||
void sub_80098BC(u32 *, u32 *, u32);
|
||||
void sub_80098F8(u32);
|
||||
@@ -25,4 +25,4 @@ void sub_8009908(void);
|
||||
void sub_80099C0(void);
|
||||
void sub_80099F0(u32);
|
||||
|
||||
#endif // GUARD_CODE_8009804_H
|
||||
#endif // GUARD_CODE_8009804_H
|
||||
|
||||
@@ -99,4 +99,15 @@ s32 s24_8_div(s32 r0, s32 r1);
|
||||
*/
|
||||
u24_8 u24_8_mul(u24_8 x, u24_8 y);
|
||||
|
||||
/**
|
||||
* This function divides two unsigned 24.8 fixed-point numbers.
|
||||
*
|
||||
* @param[in] x The first factor.
|
||||
* @param[in] y The second factor.
|
||||
*
|
||||
* @return The quotient `x/y` as an unsigned 24.8 fixed-point number.
|
||||
*/
|
||||
u24_8 u24_8_div(u24_8 x, u24_8 y);
|
||||
|
||||
|
||||
#endif // GUARD_MATH_H
|
||||
|
||||
@@ -99,7 +99,7 @@ void GameLoop(void)
|
||||
sub_800A8F8(2);
|
||||
ResetSprites(TRUE);
|
||||
xxx_update_some_bg_tiles(0);
|
||||
sub_80097B0();
|
||||
InitFontPalette();
|
||||
sub_800CDA8(2);
|
||||
sub_800641C(NULL, TRUE, TRUE);
|
||||
gUnknown_2026E4E = 0x1000;
|
||||
|
||||
@@ -16,7 +16,7 @@ extern struct unkStruct_202D240 gUnknown_202D240[8];
|
||||
// code_8009804.s
|
||||
extern void sub_8009A1C(u32);
|
||||
|
||||
void sub_80097B0(void)
|
||||
void InitFontPalette(void)
|
||||
{
|
||||
OpenedFile *fontpalFile;
|
||||
s32 i;
|
||||
@@ -137,4 +137,4 @@ void sub_80099F0(u32 a0)
|
||||
UNUSED static void sub_8009A10(u32 *a0)
|
||||
{
|
||||
sub_8009A1C(a0[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include "data/math.h"
|
||||
|
||||
u24_8 u24_8_div(u24_8 x, u24_8 y);
|
||||
|
||||
u32 fast_mod_3(s32 x) {
|
||||
if (x < 0x100) {
|
||||
return gFastMod3Lookup[x];
|
||||
|
||||
Reference in New Issue
Block a user