Decompile crashRender

This commit is contained in:
Ryan Dwyer
2021-03-14 16:06:29 +10:00
parent 2c78fb25ab
commit e9f2bc5be4
9 changed files with 186 additions and 714 deletions
+15 -11
View File
@@ -23,21 +23,25 @@ typedef s32 OSId;
typedef union
{
struct {f32 f_odd; f32 f_even;} f;
struct {
f32 f_odd2;
f32 f_odd;
f32 f_even2;
f32 f_even;
} f;
} __OSfp;
typedef struct
{
/* registers */
/*0x20*/ u64 at, v0, v1, a0, a1, a2, a3;
/*0x58*/ u64 t0, t1, t2, t3, t4, t5, t6, t7;
/*0x98*/ u64 s0, s1, s2, s3, s4, s5, s6, s7;
/*0xD8*/ u64 t8, t9, gp, sp, s8, ra;
/*0x108*/ u64 lo, hi;
/*0x118*/ u32 sr, pc, cause, badvaddr, rcp;
/*0x12C*/ u32 fpcsr;
__OSfp fp0, fp2, fp4, fp6, fp8, fp10, fp12, fp14;
__OSfp fp16, fp18, fp20, fp22, fp24, fp26, fp28, fp30;
u64 at, v0, v1, a0, a1, a2, a3;
u64 t0, t1, t2, t3, t4, t5, t6, t7;
u64 s0, s1, s2, s3, s4, s5, s6, s7;
u64 t8, t9, gp, sp, s8, ra;
u64 lo, hi;
u32 sr, pc, cause, badvaddr, rcp;
u32 fpcsr;
__OSfp fp0, fp2, fp4, fp6, fp8, fp10, fp12, fp14;
__OSfp fp16, fp18, fp20, fp22, fp24, fp26, fp28, fp30;
} __OSThreadContext;
typedef struct
+6 -6
View File
@@ -88,15 +88,15 @@ extern const char var700529a8[];
extern const char var700529ac[];
void faultCreateThread2(void);
u32 func0000c118(void);
bool crashIsInstrTwoAfterJalInLib(u32 *instruction);
u32 func0000c2b8(u32 arg0, s32 tid);
u32 func0000c334(u32 arg0, s32 tid);
bool rmonIsDouble(f32 value);
s32 func0000c118(u32 ptr, void *arg1, u32 sp, u32 *arg3);
bool crashIsReturnAddress(u32 *instruction);
u32 crashGetStackEnd(u32 sp, s32 tid);
u32 crashGetStackStart(u32 arg0, s32 tid);
bool crashIsDouble(f32 value);
void rmonPrintFloat(s32 index, f32 arg1);
void rmonPrint2Floats(s32 index, f32 value1, f32 value2);
void rmonPrint3Floats(s32 index, f32 value1, f32 value2, f32 value3);
u32 func0000cae4(void);
void func0000cae4(u32 arg0, char *arg1, void *arg2);
u32 func0000cba0(void);
u32 func0000cc34(void);
u32 func0000cd4c(void);
+1 -1
View File
@@ -6,6 +6,6 @@
void rmonproc();
bool rmonIsDisabled(void);
void rmonPrint(char *format, ...);
void crashPrint(char *format, ...);
#endif