Store MA and PA + Y / 2

From Final Fantasy Hacktics Wiki
Revision as of 03:52, 6 March 2012 by Choto (talk | contribs)
Jump to navigation Jump to search
Store MA and PA + Y / 2
00185d40: 3c038019 lui r3,0x8019		
00185d44: 8c632d94 lw r3,0x2d94(r3)		Load Attacker's Stats
00185d48: 00000000 nop				
00185d4c: 90620037 lbu r2,0x0037(r3)		Load Attacker's MA
00185d50: 3c018019 lui r1,0x8019		
00185d54: a42238ce sh r2,0x38ce(r1)		Store MA as XA
00185d58: 90620036 lbu r2,0x0036(r3)		Load Attacker's PA
00185d5c: 3c038019 lui r3,0x8019		
00185d60: 906338fa lbu r3,0x38fa(r3)		Load Ability Y
00185d64: 00000000 nop				
00185d68: 00431021 addu r2,r2,r3		PA + Y
00185d6c: 00021043 sra r2,r2,0x01		PA + Y / 2
00185d70: 3c018019 lui r1,0x8019		
00185d74: a42238d0 sh r2,0x38d0(r1)		Store PA + Y / 2 as YA
00185d78: 03e00008 jr r31			
00185d7c: 00000000 nop


Return Locations

  • Battle.bin
001896cc: 24 Dmg_((PA+Y)/2*MA)