Get movement support flags (move-MP/HP/EXP/JP up)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00180134: 90820093 lbu r2,0x0093(r4)
00180138: 90840094 lbu r4,0x0094(r4)
0018013c: 30420001 andi r2,r2,0x0001		r2 = 1 if move hp up active, 0 if not
00180140: 00021023 subu r2,r0,r2
00180144: 30430022 andi r3,r2,0x0022		r3 = 0x0022 if move hp up active, 0x00 if not
00180148: 30820080 andi r2,r4,0x0080
0018014c: 10400002 beq r2,r0,0x00180158		branch if not move-mp up
00180150: 30820040 andi r2,r4,0x0040
00180154: 34630042 ori r3,r3,0x0042			r3 + 0x0042 if move mp up active
00180158: 10400002 beq r2,r0,0x00180164		branch if not move exp up
0018015c: 30820020 andi r2,r4,0x0020
00180160: 34630082 ori r3,r3,0x0082			r4 + 0x0082 if move exp up active
00180164: 10400002 beq r2,r0,0x00180170		move if not move JP up
00180168: 00000000 nop
0018016c: 34630102 ori r3,r3,0x0102			r3 + 0x0102 if move jp up active
00180170: 03e00008 jr r31
00180174: 00601021 addu r2,r3,r0			return flags