Difference between revisions of "63 Dmg (SP*WP)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  [63] Throw
 
  [63] Throw
  0018ab98: 27bdffe8 addiu r29,r29,0xffe8
+
  0018ab98: 27bdffe8 addiu r29,r29,-0x0018    |
  0018ab9c: afbf0010 sw r31,0x0010(r29)
+
  0018ab9c: afbf0010 sw r31,0x0010(r29)       |
  0018aba0: 0c0620eb jal 0x 001883ac      [[Catch]]
+
  0018aba0: 0c0620eb jal 0x001883ac          |{{f/jal|Catch|Catch}} Forces Attack to miss is Target can use Catch (Brave%)
  0018aba4: 00000000 nop
+
  0018aba4: 00000000 nop                     |
  0018aba8: 3c028019 lui r2,0x8019
+
  0018aba8: 3c028019 lui r2,0x8019           |
  0018abac: 8c422d90 lw r2,0x2d90(r2)
+
  0018abac: 8c422d90 lw r2,0x2d90(r2)         |{{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  0018abb0: 00000000 nop
+
  0018abb0: 00000000 nop                     |
  0018abb4: 90420000 lbu r2,0x0000(r2) Hit flag
+
  0018abb4: 90420000 lbu r2,0x0000(r2)       |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  0018abb8: 00000000 nop
+
  0018abb8: 00000000 nop                     |
  0018abbc: 1040001d beq r2,r0,0x 0018ac34      Branch if attack doesn't hit (end)
+
  0018abbc: 1040001d beq r2,r0,0x0018ac34    {{f/Cond|If Target don't uses Catch}} /Else branch to {{f/loc|END}}
  0018abc0: 00000000 nop
+
  0018abc0: 00000000 nop                         |
  0018abc4: 0c062144 jal 0x 00188510      [[Physical Evade Calculation]]
+
  0018abc4: 0c062144 jal 0x00188510              |{{f/jal|Physical Evade Calculation|Physical Evade Calculation}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
  0018abc8: 00000000 nop
+
  0018abc8: 00000000 nop                         |
  0018abcc: 14400019 bne r2,r0,0x 0018ac34 Branch if evaded (end)
+
  0018abcc: 14400019 bne r2,r0,0x0018ac34        {{f/Cond|If Attack is not evaded}}
  0018abd0: 00000000 nop
+
  0018abd0: 00000000 nop                             |
  0018abd4: 3c028019 lui r2,0x8019
+
  0018abd4: 3c028019 lui r2,0x8019                   |
  0018abd8: 8c422d94 lw r2,0x2d94(r2)
+
  0018abd8: 8c422d94 lw r2,0x2d94(r2)                 |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  0018abdc: 3c038019 lui r3,0x8019
+
  0018abdc: 3c038019 lui r3,0x8019                   |
  0018abe0: 90633902 lbu r3,0x3902(r3)     Load WP
+
  0018abe0: 90633902 lbu r3,0x3902(r3)               |{{f/load|<nowiki>r3 = Current Ability used Weapon Power (WP)</nowiki>}}
  0018abe4: 90420038 lbu r2,0x0038(r2)     Load SP
+
  0018abe4: 90420038 lbu r2,0x0038(r2)               |{{f/load|<nowiki>r2 = Attacker's speed</nowiki>}}
  0018abe8: 3c018019 lui r1,0x8019
+
  0018abe8: 3c018019 lui r1,0x8019                   |
  0018abec: a42338d0 sh r3,0x38d0(r1)     Store WP as Y
+
  0018abec: a42338d0 sh r3,0x38d0(r1)                 |{{f/store|Store WP as Ability YA}}
  0018abf0: 3c018019 lui r1,0x8019
+
  0018abf0: 3c018019 lui r1,0x8019                   |
  0018abf4: a42238ce sh r2,0x38ce(r1)     Store SP as X
+
  0018abf4: a42238ce sh r2,0x38ce(r1)                 |{{f/store|Store Attacker's Speed as Ability XA}}
  0018abf8: 0c0622b7 jal 0x 00188adc      [[Cluster of Physical Routines]]
+
  0018abf8: 0c0622b7 jal 0x00188adc                  |{{f/jal|Cluster of Physical Routines|Cluster of Physical Routines}} Modify XA (Attacker status, Target Status/Support, Compatibility)
  0018abfc: 00000000 nop
+
  0018abfc: 00000000 nop                             |
  0018ac00: 0c06195a jal 0x 00186568      [[XA * YA Calculation]] (No elemental checks)
+
  0018ac00: 0c06195a jal 0x00186568                  |{{f/jal|XA_*_YA_Calculation|XA * YA Calculation (No elemental checks)}} Store XA*YA as Target Current Action HP damage (TCA 0x04) and Set TCA Attack type to 0x80 (HP damage)
  0018ac04: 00000000 nop
+
  0018ac04: 00000000 nop                             |
  0018ac08: 0c061bf4 jal 0x 00186fd0      [[Elemental Damage Modification (Prep)]] (Weapon elemental, Fixed by Xifanie.)
+
  0018ac08: 0c061bf4 jal 0x00186fd0                  |{{f/jal|Elemental Damage Modification (Prep)|Elemental Damage Modification (Prep)}} ancel Action // Enable Absorption flags and/or Modify HP damage
  0018ac0c: 00000000 nop
+
  0018ac0c: 00000000 nop                             |
  0018ac10: 3c028019 lui r2,0x8019
+
  0018ac10: 3c028019 lui r2,0x8019                   |
  0018ac14: 8c422d90 lw r2,0x2d90(r2)
+
  0018ac14: 8c422d90 lw r2,0x2d90(r2)                 |{{f/adr|<nowiki>r2 = TCA data pointer</nowiki>}}
  0018ac18: 00000000 nop
+
  0018ac18: 00000000 nop                             |
  0018ac1c: 90420000 lbu r2,0x0000(r2) Hit flag
+
  0018ac1c: 90420000 lbu r2,0x0000(r2)               |{{f/load|<nowiki>r2 = TCA hit flag</nowiki>}}
  0018ac20: 00000000 nop
+
  0018ac20: 00000000 nop                             |
  0018ac24: 10400003 beq r2,r0,0x 0018ac34 Branch if attack doesn't hit (end)
+
  0018ac24: 10400003 beq r2,r0,0x0018ac34            {{f/Cond|If Attack is not canceld by elements}}
  0018ac28: 00000000 nop
+
  0018ac28: 00000000 nop                                 |
  0018ac2c: 0c061c3f jal 0x 001870fc      [[Elemental Absorption]]
+
  0018ac2c: 0c061c3f jal 0x001870fc                      |{{f/jal|Elemental Absorption|Elemental Absorption}} HP damage becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
  0018ac30: 00000000 nop
+
  0018ac30: 00000000 nop                                 |
  0018ac34: 8fbf0010 lw r31,0x0010(r29)
+
  0018ac34: 8fbf0010 lw r31,0x0010(r29)       END
  0018ac38: 27bd0018 addiu r29,r29,0x 0018
+
  0018ac38: 27bd0018 addiu r29,r29,0x0018
  0018ac3c: 03e00008 jr r31
+
  0018ac3c: 03e00008 jr r31
 
  0018ac40: 00000000 nop
 
  0018ac40: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c : [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 11:14, 30 April 2022

[63] Throw
0018ab98: 27bdffe8 addiu r29,r29,-0x0018    |
0018ab9c: afbf0010 sw r31,0x0010(r29)       |
0018aba0: 0c0620eb jal 0x001883ac           |-->Catch Forces Attack to miss is Target can use Catch (Brave%)
0018aba4: 00000000 nop                      |
0018aba8: 3c028019 lui r2,0x8019            |
0018abac: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
0018abb0: 00000000 nop                      |
0018abb4: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
0018abb8: 00000000 nop                      |
0018abbc: 1040001d beq r2,r0,0x0018ac34     #If Target don't uses Catch /Else branch to END
0018abc0: 00000000 nop                          |
0018abc4: 0c062144 jal 0x00188510               |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit - Returns r2
0018abc8: 00000000 nop                          |
0018abcc: 14400019 bne r2,r0,0x0018ac34         #If Attack is not evaded
0018abd0: 00000000 nop                              |
0018abd4: 3c028019 lui r2,0x8019                    |
0018abd8: 8c422d94 lw r2,0x2d94(r2)                 |r2 = Attacker data pointer
0018abdc: 3c038019 lui r3,0x8019                    |
0018abe0: 90633902 lbu r3,0x3902(r3)                |r3 = Current Ability used Weapon Power (WP)
0018abe4: 90420038 lbu r2,0x0038(r2)                |r2 = Attacker's speed
0018abe8: 3c018019 lui r1,0x8019                    |
0018abec: a42338d0 sh r3,0x38d0(r1)                 |Store WP as Ability YA
0018abf0: 3c018019 lui r1,0x8019                    |
0018abf4: a42238ce sh r2,0x38ce(r1)                 |Store Attacker's Speed as Ability XA
0018abf8: 0c0622b7 jal 0x00188adc                   |-->Cluster of Physical Routines Modify XA (Attacker status, Target Status/Support, Compatibility)
0018abfc: 00000000 nop                              |
0018ac00: 0c06195a jal 0x00186568                   |-->XA * YA Calculation (No elemental checks) Store XA*YA as Target Current Action HP damage (TCA 0x04) and Set TCA Attack type to 0x80 (HP damage)
0018ac04: 00000000 nop                              |
0018ac08: 0c061bf4 jal 0x00186fd0                   |-->Elemental Damage Modification (Prep) ancel Action // Enable Absorption flags and/or Modify HP damage
0018ac0c: 00000000 nop                              |
0018ac10: 3c028019 lui r2,0x8019                    |
0018ac14: 8c422d90 lw r2,0x2d90(r2)                 |r2 = TCA data pointer
0018ac18: 00000000 nop                              |
0018ac1c: 90420000 lbu r2,0x0000(r2)                |r2 = TCA hit flag
0018ac20: 00000000 nop                              |
0018ac24: 10400003 beq r2,r0,0x0018ac34             #If Attack is not canceld by elements
0018ac28: 00000000 nop                                  |
0018ac2c: 0c061c3f jal 0x001870fc                       |-->Elemental Absorption HP damage becomes HP recovery - Changes Attack Type from 0x80 to 0x40 (HP recovery)
0018ac30: 00000000 nop                                  |
0018ac34: 8fbf0010 lw r31,0x0010(r29)       END
0018ac38: 27bd0018 addiu r29,r29,0x0018
0018ac3c: 03e00008 jr r31
0018ac40: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup