Get unit misc data that matches r4 ID
Jump to navigation
Jump to search
0007a724: 3c03800a lui r3,0x800a 0007a728: 8c638a54 lw r3,-0x75ac(r3) load pointer to last units misc data? 0007a72c: 00000000 nop 0007a730: 1060000e beq r3,r0,0x0007a76c skip if unit is the first unit? 0007a734: 00001021 addu r2,r0,r0 return r2 = 0 0007a738: 3084ffff andi r4,r4,0xffff 0007a73c: 8c620134 lw r2,0x0134(r3) load units data 0007a740: 00000000 nop 0007a744: 10400005 beq r2,r0,0x0007a75c branch if unit data not found? (first unit?) 0007a748: 00000000 nop 0007a74c: 9042018a lbu r2,0x018a(r2) load unit ID 0007a750: 00000000 nop 0007a754: 10440005 beq r2,r4,0x0007a76c branch if unit ID is the last unit ID? 0007a758: 00601021 addu r2,r3,r0 return unit data 0007a75c: 8c630000 lw r3,0x0000(r3) load previous units misc data 0007a760: 00000000 nop 0007a764: 1460fff5 bne r3,r0,0x0007a73c keep stepping back until first unit is reached 0007a768: 00001021 addu r2,r0,r0 return r2 = 0? 0007a76c: 03e00008 jr r31 0007a770: 00000000 nop