XA * YA Calculation
Jump to navigation
Jump to search
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 00188858 - Magical XA * YA 00188d3c - Formula 07 0018967c - Formula 23 00189cd0 - Formula 31 00189e94 - Formula 34 0018ab98 - Formula 63 0018ac44 - Formula 64