Store Current Statuses

From Final Fantasy Hacktics
Revision as of 05:11, 2 March 2012 by Choto (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Store Current Statuses
0005e744: 00803021 addu r6,r4,r0		r6 = Unit's Data Pointer
0005e748: 00002821 addu r5,r0,r0		r5 = Counter
0005e74c: 00c51821 addu r3,r6,r5		r3 = Unit's Data Pointer += Counter
0005e750: 9062004e lbu r2,0x004e(r3)		Load Unit's X set of Innate Statuses
0005e754: 906401bb lbu r4,0x01bb(r3)		Load Unit's X set of Inflicted Statuses
0005e758: 24a50001 addiu r5,r5,0x0001		Counter += 1
0005e75c: 00441025 or r2,r2,r4			Combine Innate and Inflicted Statuses
0005e760: a0620058 sb r2,0x0058(r3)		Store Current Statuses into set X
0005e764: 28a20005 slti r2,r5,0x0005
0005e768: 1440fff8 bne r2,r0,0x0005e74c		Branch if all statuses haven't been altered
0005e76c: 00000000 nop
0005e770: 03e00008 jr r31
0005e774: 00000000 nop

Return Locations

0005d650: Status Setting/Checking + Equip/R/S/M Stats