diff --git a/include/unknown_043920.h b/include/unknown_043920.h new file mode 100644 index 00000000..a6f5bc06 --- /dev/null +++ b/include/unknown_043920.h @@ -0,0 +1,46 @@ +#ifndef _UNKNOWN_043920_H_ +#define _UNKNOWN_043920_H_ + +#include "types.h" + +extern s32 D_800DCB50; +extern s16 D_800DCB54; +extern s32 D_800DCB58; +extern s32 D_800DCB5C; + +// Not sure if D_800DCB58 & D_800DCB5C are actually a part of this array. +extern f32 D_800DCB60[14]; + +extern s32 D_800DCB98; +extern f32 D_800DCB9C[19]; + +extern f32 D_800DCBE8[19]; + +// Unused? Not sure if this is actually an array or just some random data. +extern s32 D_800DCC34[19]; + +extern s32 D_800DCC80[19]; + +extern u16 D_800DCCCC[20]; + +// Used for some sort of bit mask +extern s32 D_800DCCF4[19]; + +// Used for some sort of bit mask +extern s32 D_800DCD40[20]; + +extern s8 D_800DCD90[15]; + +// Unused? +extern s8 D_800DCDA0[8]; + +extern s8 D_800DCDA8[8]; + +// Unused? +extern s16 D_800DCDB0[16]; + +extern s32 D_800DCDD0; + +extern s16 D_800DCDD4[4]; + +#endif \ No newline at end of file diff --git a/src/unknown_043920.c b/src/unknown_043920.c index 38febf2c..b14bacc3 100644 --- a/src/unknown_043920.c +++ b/src/unknown_043920.c @@ -1,6 +1,8 @@ /* The comment below is needed for this file to be picked up by generate_ld */ /* RAM_POS: 0x80042D20 */ +#include "unknown_043920.h" + #include "types.h" #include "macros.h" #include "structs.h" @@ -51,36 +53,26 @@ s32 D_800DCC80[19] = { 0, 0, 0 }; -// Unused? -s16 D_800DCCB4[6] = { +u16 D_800DCCCC[20] = { 0x010C, 0x010B, 0x0009, 0x010C, - 0x010C, 0x010C -}; - -u16 D_800DCCCC[14] = { 0x010C, 0x010C, 0x010C, 0x010C, - 0x010C, 0x0005, 0x010C, 0x010C, + 0x010C, 0x010C, 0x010C, 0x0005, 0x010C, 0x010C, 0x010C, 0x010C, - 0x010C, 0x0000 -}; - -// Unused? Not sure if this is actually an array or just some random data. -s32 D_800DCCDC[2] = { - 1, 4 + 0x010C, 0x010C, 0x010C, 0x0000 }; // Used for some sort of bit mask s32 D_800DCCF4[19] = { - 16, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 0x100, 1, 1, 1, 1, - 1, 0, 4 + 1, 4, 16, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 0x100, 1, 1, + 1, 1, 1 }; // Used for some sort of bit mask -s32 D_800DCD40[18] = { - 16, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0x100, 0, 0, 0, 0, - 0, 0 +s32 D_800DCD40[20] = { + 0, 4, 16, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0x100, 0, 0, + 0, 0, 0, 0 }; s8 D_800DCD90[15] = { diff --git a/undefined_syms.txt b/undefined_syms.txt index 038afb66..06051613 100755 --- a/undefined_syms.txt +++ b/undefined_syms.txt @@ -67,22 +67,6 @@ D_800D84C0 = 0x800D84C0; D_800D8590 = 0x800D8590; D_800D9790 = 0x800D9790; D_800DA970 = 0x800DA970; -D_800DCB50 = 0x800DCB50; -D_800DCB54 = 0x800DCB54; -D_800DCB98 = 0x800DCB98; -D_800DCB9C = 0x800DCB9C; -D_800DCBE8 = 0x800DCBE8; -D_800DCC34 = 0x800DCC34; -D_800DCC80 = 0x800DCC80; -D_800DCCCC = 0x800DCCCC; -D_800DCCF4 = 0x800DCCF4; -D_800DCD40 = 0x800DCD40; -D_800DCD90 = 0x800DCD90; -D_800DCDA0 = 0x800DCDA0; -D_800DCDA8 = 0x800DCDA8; -D_800DCDB0 = 0x800DCDB0; -D_800DCDD0 = 0x800DCDD0; -D_800DCDD4 = 0x800DCDD4; D_800DCDE0 = 0x800DCDE0; D_800DCE00 = 0x800DCE00; D_800DCE20 = 0x800DCE20;