Draw out routine dealing with experience gain

From Final Fantasy Hacktics Wiki
Revision as of 14:50, 8 February 2015 by Choto (talk | contribs) (Created page with "<font face='Courier New'> 0017d410: 9082016f lbu r2,0x016f(r4) 0017d414: 3c018006 lui r1,0x8006 0017d418: 00220821 addu r1,r1,r2 0017d41c: 90235cb4 lbu r3,0x5cb4(r1) lo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0017d410: 9082016f lbu r2,0x016f(r4)
0017d414: 3c018006 lui r1,0x8006
0017d418: 00220821 addu r1,r1,r2
0017d41c: 90235cb4 lbu r3,0x5cb4(r1)		load action menu byte
0017d420: 34020007 ori r2,r0,0x0007
0017d424: 1462001c bne r3,r2,0x0017d498		branch if not katana inventory
0017d428: 3402005d ori r2,r0,0x005d		
0017d42c: 90830003 lbu r3,0x0003(r4)		load job ID
0017d430: 00000000 nop
0017d434: 10620018 beq r3,r2,0x0017d498		branch if job = mime, r2= ??
0017d438: 30c200ff andi r2,r6,0x00ff		r2 = hit counter
0017d43c: 10400007 beq r2,r0,0x0017d45c		branch if nobody hit
0017d440: 34020008 ori r2,r0,0x0008
0017d444: 3c038019 lui r3,0x8019
0017d448: 94632db0 lhu r3,0x2db0(r3)		load special flags 1 and 2
0017d44c: 00000000 nop
0017d450: 30620008 andi r2,r3,0x0008		
0017d454: 1040000a beq r2,r0,0x0017d480		branch if special flag 0x08 not true
0017d458: 34020008 ori r2,r0,0x0008
0017d45c: 3c018019 lui r1,0x8019
0017d460: a4222db0 sh r2,0x2db0(r1)			store special flag 0x08
0017d464: 34020001 ori r2,r0,0x0001
0017d468: 3c018019 lui r1,0x8019
0017d46c: a0222dc5 sb r2,0x2dc5(r1)			Store attack type = psuedo status change
0017d470: 3c018019 lui r1,0x8019
0017d474: a0222da0 sb r2,0x2da0(r1)			Store attack hit
0017d478: 0805f526 j 0x0017d498				jump to end
0017d47c: 00000000 nop
0017d480: 30621000 andi r2,r3,0x1000		load -1 level flag?
0017d484: 10400004 beq r2,r0,0x0017d498		branch if not
0017d488: 00000000 nop
0017d48c: 90a20023 lbu r2,0x0023(r5)		load can gain experience
0017d490: 00000000 nop
0017d494: a0a20023 sb r2,0x0023(r5)			store can gain experience?
0017d498: 03e00008 jr r31
0017d49c: 00000000 nop