Find Current Misc Unit Data Pointer (external ID)

From Final Fantasy Hacktics Wiki
Revision as of 20:37, 8 October 2012 by Choto (talk | contribs) (Created page with " Find Current Misc Unit Data Pointer (external ID)? 0007a6e4: 3c03800a lui r3,0x800a 0007a6e8: 8c638a54 lw r3,-0x75ac(r3) Load Pointer to Last Unit's Misc Data? 0007a6ec:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Find Current Misc Unit Data Pointer (external ID)?
0007a6e4: 3c03800a lui r3,0x800a
0007a6e8: 8c638a54 lw r3,-0x75ac(r3)		Load Pointer to Last Unit's Misc Data?
0007a6ec: 00000000 nop
0007a6f0: 1060000a beq r3,r0,0x0007a71c		Branch if Pointer = 0
0007a6f4: 00001021 addu r2,r0,r0		r2 = 0
0007a6f8: 3084ffff andi r4,r4,0xffff		r4 = Unit ID?
0007a6fc: 90620004 lbu r2,0x0004(r3)		Load Unit ID
0007a700: 00000000 nop
0007a704: 10440005 beq r2,r4,0x0007a71c		Branch if Unit ID = Unit ID?
0007a708: 00601021 addu r2,r3,r0		r2 = Misc Unit Data Pointer?
0007a70c: 8c630000 lw r3,0x0000(r3)		Load Next Misc Unit Data Pointer?
0007a710: 00000000 nop
0007a714: 1460fff9 bne r3,r0,0x0007a6fc		Branch if Misc Unit Data Pointer? != 0
0007a718: 00001021 addu r2,r0,r0		r2 = 0
0007a71c: 03e00008 jr r31
0007a720: 00000000 nop