Get Unique Sprite ID that matches Misc ID
(Redirected from Get Misc ID from Battle Data that Matches Misc Data Pointer)
Jump to navigation
Jump to search
0008ce20: 3c03800a lui r3,0x800a 0008ce24: 8c638a54 lw r3,-0x75ac(r3) load last units misc data 0008ce28: 00000000 nop 0008ce2c: 10600010 beq r3,r0,0x0008ce70 branch if 0 0008ce30: 2402ffff addiu r2,r0,0xffff 0008ce34: 8c620134 lw r2,0x0134(r3) load unit battle data 0008ce38: 00000000 nop 0008ce3c: 10400008 beq r2,r0,0x0008ce60 branch if not found 0008ce40: 00000000 nop 0008ce44: 9042018a lbu r2,0x018a(r2) load unit ID 0008ce48: 00000000 nop 0008ce4c: 14440004 bne r2,r4,0x0008ce60 branch if ID's don't match 0008ce50: 00000000 nop 0008ce54: 90620004 lbu r2,0x0004(r3) load misc ID 0008ce58: 0802339c j 0x0008ce70 jump to end 0008ce5c: 00000000 nop 0008ce60: 8c630000 lw r3,0x0000(r3) load last units data 0008ce64: 00000000 nop 0008ce68: 1460fff2 bne r3,r0,0x0008ce34 branch if not first unit 0008ce6c: 2402ffff addiu r2,r0,0xffff return 0xffff if none found 0008ce70: 03e00008 jr r31 0008ce74: 00000000 nop