Find Misc Unit Data Pointer (checking for specific unit)
Jump to navigation
Jump to search
Find Misc Unit Data Pointer (checking for specific unit)? 0007a724: 3c03800a lui r3,0x800a 0007a728: 8c638a54 lw r3,-0x75ac(r3) Load Current/Last Misc Unit Data pointer? 0007a72c: 00000000 nop 0007a730: 1060000e beq r3,r0,0x0007a76c Branch if Misc Unit Data Pointer? = 0 0007a734: 00001021 addu r2,r0,r0 r2 = 0 0007a738: 3084ffff andi r4,r4,0xffff 0007a73c: 8c620134 lw r2,0x0134(r3) Load Unit's Data Pointer 0007a740: 00000000 nop 0007a744: 10400005 beq r2,r0,0x0007a75c Branch if Pointer doesn't exist 0007a748: 00000000 nop 0007a74c: 9042018a lbu r2,0x018a(r2) Load Unit's ID 0007a750: 00000000 nop 0007a754: 10440005 beq r2,r4,0x0007a76c Branch if ID's are the same 0007a758: 00601021 addu r2,r3,r0 r2 = Misc Unit Data pointer? 0007a75c: 8c630000 lw r3,0x0000(r3) Load new Misc Unit Data pointer? 0007a760: 00000000 nop 0007a764: 1460fff5 bne r3,r0,0x0007a73c Branch if new Misc Data Pointer? exists 0007a768: 00001021 addu r2,r0,r0 r2 = 0 0007a76c: 03e00008 jr r31 0007a770: 00000000 nop