Difference between revisions of "16 DmgMP (TarCurMP) Hit F(MA+X)%"
Jump to navigation
Jump to search
(Created page with " [16] 00189204: 27bdffe8 addiu r29,r29,0xffe8 00189208: afbf0010 sw r31,0x0010(r29) 0018920c: 0c06216e jal 0x 001885b8 Magic Evade 00189210: 00000000 nop 00189214:...") |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[16] | [16] | ||
− | 00189204: 27bdffe8 addiu r29,r29,0xffe8 | + | 00189204: 27bdffe8 addiu r29,r29,0xffe8 | |
− | 00189208: afbf0010 sw r31,0x0010(r29) | + | 00189208: afbf0010 sw r31,0x0010(r29) | |
− | 0018920c: 0c06216e jal | + | 0018920c: 0c06216e jal 0x001885b8 |{{f/jal|Magical_Evade_Calculation|Magical_Evade_Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2 |
− | 00189210: 00000000 nop | + | 00189210: 00000000 nop | |
− | 00189214: 1440000d bne r2,r0, | + | 00189214: 1440000d bne r2,r0,0x0018924c {{f/Cond|If Attack is not evaded}} |
− | 00189218: 00000000 nop | + | 00189218: 00000000 nop | |
− | 0018921c: 0c062273 jal | + | 0018921c: 0c062273 jal 0x001889cc |{{f/jal|Calculate Accuracy for Magical Spells|Calculate Accuracy for Magical Spells}} Set XA and YA, applies XA changes (Status, Compat, Support), uses XA+YA as Hit% (Modified by faith) / Returns r2 |
− | 00189220: 00000000 nop | + | 00189220: 00000000 nop | |
− | 00189224: 14400009 bne r2,r0, | + | 00189224: 14400009 bne r2,r0,0x0018924c {{f/Cond|if Attack hits}} |
− | 00189228: 00000000 nop | + | 00189228: 00000000 nop | |
− | 0018922c: 3c028019 lui r2,0x8019 | + | 0018922c: 3c028019 lui r2,0x8019 | |
− | 00189230: 8c422d98 lw r2,0x2d98(r2) | + | 00189230: 8c422d98 lw r2,0x2d98(r2) |{{f/adr|<nowiki>r2 = Target data pointer</nowiki>}} |
− | 00189234: 3c038019 lui r3,0x8019 | + | 00189234: 3c038019 lui r3,0x8019 | |
− | 00189238: 8c632d90 lw r3,0x2d90(r3) | + | 00189238: 8c632d90 lw r3,0x2d90(r3) |{{f/adr|<nowiki>r3 = Targeet Current Action data pointer</nowiki>}} |
− | 0018923c: 9444002c lhu r4,0x002c(r2) | + | 0018923c: 9444002c lhu r4,0x002c(r2) |{{f/load|<nowiki>r4 = Target current MP</nowiki>}} |
− | 00189240: 34020020 ori r2,r0,0x0020 | + | 00189240: 34020020 ori r2,r0,0x0020 |{{f/std|<nowiki>r2 = 0x20 (MP damage Attack type)</nowiki>}} |
− | 00189244: a0620025 sb r2,0x0025(r3) | + | 00189244: a0620025 sb r2,0x0025(r3) |{{f/store|Set TCA Attack type to MP damage (disables other flags)}} |
− | 00189248: a4640008 sh r4,0x0008(r3) | + | 00189248: a4640008 sh r4,0x0008(r3) |{{f/store|<nowiki>Set TCA MP damage = Target current MP</nowiki>}} |
− | 0018924c: 8fbf0010 lw r31,0x0010(r29) | + | 0018924c: 8fbf0010 lw r31,0x0010(r29) END |
− | 00189250: | + | 00189250: 27bd0018 addiu r29,r29,0x0018 |
− | 00189254: 03e00008 jr r31 | + | 00189254: 03e00008 jr r31 |
− | 00189258: 00000000 nop | + | 00189258: 00000000 nop |
+ | === Return locations === | ||
+ | '''Battle.bin''' | ||
+ | 0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]] |
Latest revision as of 18:50, 17 April 2022
[16] 00189204: 27bdffe8 addiu r29,r29,0xffe8 | 00189208: afbf0010 sw r31,0x0010(r29) | 0018920c: 0c06216e jal 0x001885b8 |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2 00189210: 00000000 nop | 00189214: 1440000d bne r2,r0,0x0018924c #If Attack is not evaded 00189218: 00000000 nop | 0018921c: 0c062273 jal 0x001889cc |-->Calculate Accuracy for Magical Spells Set XA and YA, applies XA changes (Status, Compat, Support), uses XA+YA as Hit% (Modified by faith) / Returns r2 00189220: 00000000 nop | 00189224: 14400009 bne r2,r0,0x0018924c #if Attack hits 00189228: 00000000 nop | 0018922c: 3c028019 lui r2,0x8019 | 00189230: 8c422d98 lw r2,0x2d98(r2) |r2 = Target data pointer 00189234: 3c038019 lui r3,0x8019 | 00189238: 8c632d90 lw r3,0x2d90(r3) |r3 = Targeet Current Action data pointer 0018923c: 9444002c lhu r4,0x002c(r2) |r4 = Target current MP 00189240: 34020020 ori r2,r0,0x0020 |r2 = 0x20 (MP damage Attack type) 00189244: a0620025 sb r2,0x0025(r3) |Set TCA Attack type to MP damage (disables other flags) 00189248: a4640008 sh r4,0x0008(r3) |Set TCA MP damage = Target current MP 0018924c: 8fbf0010 lw r31,0x0010(r29) END 00189250: 27bd0018 addiu r29,r29,0x0018 00189254: 03e00008 jr r31 00189258: 00000000 nop
Return locations
Battle.bin 0018b97c - Pre Formula Setup