diff --git a/include/variables.h b/include/variables.h index 6a8b5a15..165ad8ea 100644 --- a/include/variables.h +++ b/include/variables.h @@ -152,7 +152,7 @@ extern u16 gOam[]; extern u32 * gOamHiPutIt; extern void (* sHBlankHandler2)(void); // extern ??? gUnknown_03003750 -// extern ??? gUnknown_03004150 +extern void (*gpARM_HuffmanTextDecomp)(const char *, char *); // extern ??? gUnknown_03004154 extern u16 * gOamAffinePutIt; // extern ??? gUnknown_03004160 diff --git a/src/ramfunc.c b/src/ramfunc.c index 9ea7c7f9..2ae660c8 100644 --- a/src/ramfunc.c +++ b/src/ramfunc.c @@ -4,7 +4,7 @@ extern u8 gUnknown_03003750[]; // buffer to copy the code to // pointers to the loaded functions extern void (*gUnknown_03003740)(int, int, int, int); -extern void (*gUnknown_03004150)(const char *, char *); +extern void (*gpARM_HuffmanTextDecomp)(const char *, char *); extern void (*gUnknown_03003130)(int, int, const u16 *, int); extern void (*gUnknown_03004154)(int, int, const u16 *, int); extern void (*gUnknown_03004960)(int, int, int); @@ -29,7 +29,7 @@ void StoreRoutinesToIRAM(void) // Set pointers to each of the functions gUnknown_03003740 = (void *)(gUnknown_03003750 + (DrawGlyph - ARMCodeToCopy_Start)); - gUnknown_03004150 = (void *)(gUnknown_03003750 + (DecodeString - ARMCodeToCopy_Start)); + gpARM_HuffmanTextDecomp = (void *)(gUnknown_03003750 + (DecodeString - ARMCodeToCopy_Start)); gUnknown_03003130 = (void *)(gUnknown_03003750 + (PutOamHi - ARMCodeToCopy_Start)); gUnknown_03004154 = (void *)(gUnknown_03003750 + (PutOamLo - ARMCodeToCopy_Start)); gUnknown_03004960 = (void *)(gUnknown_03003750 + (MapFloodCoreStep - ARMCodeToCopy_Start)); @@ -43,7 +43,7 @@ void DrawGlyphRam(int a, int b, int c, int d) void CallARM_DecompText(const char *a, char *b) { - gUnknown_03004150(a, b); + gpARM_HuffmanTextDecomp(a, b); } void CallARM_PushToSecondaryOAM(int a, int b, const u16 *c, int d) diff --git a/sym_iwram.txt b/sym_iwram.txt index ec9888df..10ca7c1a 100644 --- a/sym_iwram.txt +++ b/sym_iwram.txt @@ -106,7 +106,7 @@ . = 0x003744; gOamHiPutIt = .; . = 0x003748; sHBlankHandler2 = .; . = 0x003750; gUnknown_03003750 = .; -. = 0x004150; gUnknown_03004150 = .; +. = 0x004150; gpARM_HuffmanTextDecomp = .; . = 0x004154; gUnknown_03004154 = .; . = 0x004158; gOamAffinePutIt = .; . = 0x004160; IntrMain_Buffer = .;