Status Checks (r5 = set to check)

From Final Fantasy Hacktics Wiki
Revision as of 02:13, 2 March 2012 by Choto (talk | contribs)
Jump to navigation Jump to search
Status Checks (r5 = set to check)
0005e1b0: 00003021 addu r6,r0,r0		Counter = 0
0005e1b4: 3c038006 lui r3,0x8006
0005e1b8: 246362d0 addiu r3,r3,0x62d0
0005e1bc: 00051080 sll r2,r5,0x02		Preset Value * 4
0005e1c0: 00451021 addu r2,r2,r5		Preset Value * 5
0005e1c4: 00432821 addu r5,r2,r3
0005e1c8: 00861021 addu r2,r4,r6
0005e1cc: 90420058 lbu r2,0x0058(r2)		Load Unit's Current Statuses 1
0005e1d0: 90a30000 lbu r3,0x0000(r5)		Load Statuses to check against
0005e1d4: 00000000 nop
0005e1d8: 00431024 and r2,r2,r3
0005e1dc: 14400006 bne r2,r0,0x0005e1f8		Branch if Unit has loaded statuses
0005e1e0: 34020001 ori r2,r0,0x0001		r2 = 1 (statuses found)
0005e1e4: 24c60001 addiu r6,r6,0x0001		Counter ++
0005e1e8: 28c20005 slti r2,r6,0x0005
0005e1ec: 1440fff6 bne r2,r0,0x0005e1c8		Branch if Counter < 5
0005e1f0: 24a50001 addiu r5,r5,0x0001		Status Pointer += 1
0005e1f4: 00001021 addu r2,r0,r0		r2 = 0 (statuses not found)
0005e1f8: 03e00008 jr r31
0005e1fc: 00000000 nop


Return Locations

001743f0: Chocobo Check
001832ec:
001833dc:
00183454:
0018c97c:
0018dd80: Move-HP Up, Move-MP Up, Gained Exp Up
0018e788:
0019b600: 
0019cc2c: