mirror of
https://github.com/n64decomp/mk64
synced 2026-09-01 17:20:03 -04:00
Identify a couple debug related variables and match a couple debug related functions (#94)
* Identified some debug mode specific variables * Matched a couple debug related functions Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
+8
-37
@@ -10330,50 +10330,21 @@ void func_8005762C(s32 *arg0, s32 *arg1, u32 arg2, u32 arg3) {
|
||||
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_8005762C.s")
|
||||
#endif
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
extern ? D_0D008080;
|
||||
extern ? D_0D008108;
|
||||
extern void *gDisplayListHead;
|
||||
extern Gfx D_0D008080[];
|
||||
extern Gfx D_0D008108[];
|
||||
extern Gfx *gDisplayListHead;
|
||||
|
||||
void load_debug_font(void) {
|
||||
void *temp_v1;
|
||||
void *temp_v1_2;
|
||||
void *temp_v1_3;
|
||||
|
||||
temp_v1 = gDisplayListHead;
|
||||
gDisplayListHead = temp_v1 + 8;
|
||||
temp_v1->unk4 = &D_0D008108;
|
||||
temp_v1->unk0 = 0x6000000;
|
||||
temp_v1_2 = gDisplayListHead;
|
||||
gDisplayListHead = temp_v1_2 + 8;
|
||||
temp_v1_2->unk4 = &D_0D008080;
|
||||
temp_v1_2->unk0 = 0x6000000;
|
||||
temp_v1_3 = gDisplayListHead;
|
||||
gDisplayListHead = temp_v1_3 + 8;
|
||||
temp_v1_3->unk4 = 1;
|
||||
temp_v1_3->unk0 = 0xB9000002;
|
||||
gSPDisplayList(gDisplayListHead++, D_0D008108);
|
||||
gSPDisplayList(gDisplayListHead++, D_0D008080);
|
||||
gDPSetAlphaCompare(gDisplayListHead++, G_AC_THRESHOLD);
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800431B0/load_debug_font.s")
|
||||
#endif
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
extern ? D_0D007EB8;
|
||||
extern void *gDisplayListHead;
|
||||
extern Gfx D_0D007EB8[];
|
||||
|
||||
void func_80057778(void) {
|
||||
void *temp_v1;
|
||||
|
||||
temp_v1 = gDisplayListHead;
|
||||
gDisplayListHead = temp_v1 + 8;
|
||||
temp_v1->unk0 = 0x6000000;
|
||||
temp_v1->unk4 = &D_0D007EB8;
|
||||
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/code_800431B0/func_80057778.s")
|
||||
#endif
|
||||
|
||||
#ifdef MIPS_TO_C
|
||||
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
|
||||
|
||||
+6
-6
@@ -2145,9 +2145,9 @@ GLOBAL_ASM("asm/non_matchings/code_80091750/func_80094C60.s")
|
||||
? play_sound2(?); /* extern */
|
||||
? print_str_num(?, ?, ? *, s16); /* extern */
|
||||
static ? D_020076E0; /* unable to generate initializer */
|
||||
static ? D_800E7614; /* unable to generate initializer; const */
|
||||
static ? D_800E7688; /* unable to generate initializer; const */
|
||||
static ? D_800E76EC; /* unable to generate initializer; const */
|
||||
static ? gDebugCourseNames; /* unable to generate initializer; const */
|
||||
static ? gDebugCharacterNames; /* unable to generate initializer; const */
|
||||
static ? gDebugScreenModeNames; /* unable to generate initializer; const */
|
||||
static ? gDebugSoundModeNames; /* unable to generate initializer; const */
|
||||
s16 gCurrentCourseId; /* unable to generate initializer */
|
||||
|
||||
@@ -2207,11 +2207,11 @@ void func_80095574(void) {
|
||||
} else {
|
||||
phi_v0 = 8;
|
||||
}
|
||||
debug_print_str2(phi_v0 + 0xB9, 0x6E, *(&D_800E7614 + (temp_a3_2 * 4)), temp_a3_2);
|
||||
debug_print_str2(phi_v0 + 0xB9, 0x6E, gDebugCourseNames[temp_a3_2], temp_a3_2);
|
||||
debug_print_str2(0x50, 0x78, "screen_mode");
|
||||
debug_print_str2(0xAA, 0x78, *(&D_800E76EC + (D_8018EDF1 * 4)));
|
||||
debug_print_str2(0xAA, 0x78, *(&gDebugScreenModeNames + (D_8018EDF1 * 4)));
|
||||
debug_print_str2(0x50, 0x82, "player");
|
||||
debug_print_str2(0xAA, 0x82, *(&D_800E7688 + (D_800E86A8 * 4)));
|
||||
debug_print_str2(0xAA, 0x82, *(&gDebugCharacterNames + (D_800E86A8 * 4)));
|
||||
debug_print_str2(0x50, 0x8C, "sound mode");
|
||||
debug_print_str2(0xAA, 0x8C, gDebugSoundModeNames[gSoundMode]);
|
||||
if (D_8018EDEF == 7) {
|
||||
|
||||
Reference in New Issue
Block a user