Difference between revisions of "XA * YA Calculation"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
'''Return Location'''
 
'''Return Location'''
 
  001886a4 - [[Damage Calculation]]
 
  001886a4 - [[Damage Calculation]]
 +
0018877c - [[Elemental XA * YA]]

Revision as of 05:36, 16 February 2012

00186568: 3c038019 lui r3,0x8019
0018656c: 946338ce lhu r3,0x38ce(r3)		Load XA
00186570: 3c028019 lui r2,0x8019
00186574: 944238d0 lhu r2,0x38d0(r2)		Load YA
00186578: 00000000 nop
0018657c: 00620018 mult r3,r2			XA * YA
00186580: 3c038019 lui r3,0x8019
00186584: 8c632d90 lw r3,0x2d90(r3)		Load Target Current Action Data Pointer
00186588: 34020080 ori r2,r0,0x0080		r2 = 80 (Attack Type = HP Damage)
0018658c: a0620025 sb r2,0x0025(r3)		Store Attack Type
00186590: 00001012 mflo r2			r2 = XA * YA
00186594: 03e00008 jr r31
00186598: a4620004 sh r2,0x0004(r3)		Store HP Damage

Return Location

001886a4 - Damage Calculation
0018877c - Elemental XA * YA