Defense UP routine

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
001862cc: 3c028019 lui r2,0x8019
001862d0: 8c422d98 lw r2,0x2d98(r2)		Load Target's Data Pointer
001862d4: 00000000 nop
001862d8: 90420090 lbu r2,0x0090(r2)		Load Target's 2nd set of Support
001862dc: 00000000 nop
001862e0: 30420008 andi r2,r2,0x0008
001862e4: 1040000b beq r2,r0,0x00186314		Branch if Target doesn't have Defense UP
001862e8: 3c025555 lui r2,0x5555
001862ec: 3c048019 lui r4,0x8019 
001862f0: 248438ce addiu r4,r4,0x38ce
001862f4: 84830000 lh r3,0x0000(r4)		Load XA
001862f8: 34425556 ori r2,r2,0x5556
001862fc: 00031840 sll r3,r3,0x01		XA * 2
00186300: 00620018 mult r3,r2			XA * 2 * 0.33333333
00186304: 00031fc3 sra r3,r3,0x1f
00186308: 00001010 mfhi r2			r2 = XA * 2 * 0.33333333 (XA * 2 / 3)
0018630c: 00431023 subu r2,r2,r3
00186310: a4820000 sh r2,0x0000(r4)		Store new XA
00186314: 03e00008 jr r31
00186318: 00000000 nop


Return Locations

  • Battle.bin
00188610: Physical XA Modifying Statuses/Support
00188aec:Cluster of Physical Routines
001898a0:28 StealExp_(Lowest of TarCurExp & SP+Y) Hit_(SP+X)%