Store PA and WP

From Final Fantasy Hacktics Wiki
Revision as of 11:43, 23 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 Current Ability XA = Attacker's PA
Set Current Ability YA = used Weapon WP
----------------------------------------------------------------------------------------------------------------
00185dd8: 3c028019 lui r2,0x8019            |
00185ddc: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185de0: 3c038019 lui r3,0x8019            |
00185de4: 90633902 lbu r3,0x3902(r3)        |r3 = Current Ability used Weapon WP
00185de8: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185dec: 3c018019 lui r1,0x8019            |
00185df0: a42338d0 sh r3,0x38d0(r1)         |Set Current Ability YA = used Weapon WP
00185df4: 3c018019 lui r1,0x8019            |
00185df8: a42238ce sh r2,0x38ce(r1)         |Set Current Ability XA = Attacker's PA
00185dfc: 03e00008 jr r31                   |
00185e00: 00000000 nop 

Return Locations

Battle.bin
00189b04: 2E Equipped:Break Dmg_(PA*WP)
00189c70: 2F AbsMP_(PA*WP)
00189cb0: 30 AbsHP_(PA*WP)