C(0x07) InstallExceptionHandlers
Jump to navigation
Jump to search
00000eb0: 3c028000 lui r2,0x8000 00000eb4: 3c1a0000 lui r26,0x0000 00000eb8: 3c1b0000 lui r27,0x0000 00000ebc: 34420080 ori r2,r2,0x0080 00000ec0: 275a0f0c addiu r26,r26,0x0f0c Default exception handler * 00000ec4: 277b0f1c addiu r27,r27,0x0f1c end Default exception handler * 00000ec8: 8f430000 lw r3,0x0000(r26) pastes the exception handler to 0x00000080 00000ecc: 275a0004 addiu r26,r26,0x0004 00000ed0: 24420004 addiu r2,r2,0x0004 00000ed4: 175bfffc bne r26,r27,0x00000ec8 loop 4 times 00000ed8: ac43fffc sw r3,-0x0004(r2) 00000edc: 3c1a0000 lui r26,0x0000 00000ee0: 3c1b0000 lui r27,0x0000 00000ee4: 3c028000 lui r2,0x8000 00000ee8: 275a0f0c addiu r26,r26,0x0f0c Default exception handler * 00000eec: 277b0f1c addiu r27,r27,0x0f1c end Default exception handler * 00000ef0: 8f430000 lw r3,0x0000(r26) also pastes it to 0x00000000. I mean, Lucky it *does* since this space is reserved to be <null> and some games have shitty <null> handling but. 00000ef8: 24420004 addiu r2,r2,0x0004 00000efc: 175bfffc bne r26,r27,0x00000ef0 loop 4 times 00000f00: ac43fffc sw r3,-0x0004(r2) 00000f04: 08001a9c j 0x00006a70 00000f08: 00000000 nop
<DfltExceptionHndlr> 00000f0c: 3c1a0000 lui r26,0x0000 00000f10: 275a0c80 addiu r26,r26,0x0c80 00000f14: 03400008 jr r26 00000f18: 00000000 nop </DfltExceptionHndlr>