Store mimicking misc data, existence/entd checks

From Final Fantasy Hacktics Wiki
Revision as of 14:06, 8 February 2015 by Choto (talk | contribs) (Created page with "<font face='Courier New'> 0008d138: 27bdffe8 addiu r29,r29,0xffe8 0008d13c: afbf0010 sw r31,0x0010(r29) 0008d140: 0c01e9b9 jal 0x0007a6e4 get misc data 0008d144: 3084ff...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0008d138: 27bdffe8 addiu r29,r29,0xffe8
0008d13c: afbf0010 sw r31,0x0010(r29)
0008d140: 0c01e9b9 jal 0x0007a6e4		get misc data
0008d144: 3084ffff andi r4,r4,0xffff
0008d148: 00401821 addu r3,r2,r0
0008d14c: 1060000a beq r3,r0,0x0008d178		branch if 0
0008d150: 34020001 ori r2,r0,0x0001
0008d154: 8c640134 lw r4,0x0134(r3)		load unit data
0008d158: a462000a sh r2,0x000a(r3)		store ??
0008d15c: 10800004 beq r4,r0,0x0008d170		branch if unit data = 0
0008d160: a46201d8 sh r2,0x01d8(r3)		??
0008d164: 9084018a lbu r4,0x018a(r4)		load unit ID
0008d168: 0c05ff42 jal 0x0017fd08		check for unit existence/ENTD level setting
0008d16c: 00000000 nop
0008d170: 0802345f j 0x0008d17c
0008d174: 34020001 ori r2,r0,0x0001		return 1
0008d178: 00001021 addu r2,r0,r0
0008d17c: 8fbf0010 lw r31,0x0010(r29)
0008d180: 27bd0018 addiu r29,r29,0x0018
0008d184: 03e00008 jr r31
0008d188: 00000000 nop