Store PA and X

From Final Fantasy Hacktics Wiki
Revision as of 11:54, 24 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No Parameters - Returns Nothing

Set Ability XA = Attacker's PA
Set Ability YA = used Ability X
------------------------------------------------------------------------------------------------
00185dac: 3c028019 lui r2,0x8019            |
00185db0: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185db4: 3c038019 lui r3,0x8019            |
00185db8: 906338f9 lbu r3,0x38f9(r3)        |r3 = Current Ability used Ability X
00185dbc: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185dc0: 3c018019 lui r1,0x8019            |
00185dc4: a42338d0 sh r3,0x38d0(r1)         |Store Ability X as Ability YA
00185dc8: 3c018019 lui r1,0x8019            |
00185dcc: a42238ce sh r2,0x38ce(r1)         |Store Attacker's PA as Ability XA
00185dd0: 03e00008 jr r31
00185dd4: 00000000 nop

Return Locations

Battle.bin
00189e38: 33 Hit_(PA+X)%
00189f18: 35 Heal_(Y)% Hit_(PA+X)%