Difference between revisions of "41 Hit (MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (links)
m
 
Line 1: Line 1:
 
  [41]
 
  [41]
  0018a114: 27bdffe8 addiu r29,r29,0xffe8
+
  0018a114: 27bdffe8 addiu r29,r29,-0x0018    |
  0018a118: afbf0010 sw r31,0x0010(r29)
+
  0018a118: afbf0010 sw r31,0x0010(r29)       |
  0018a11c: 0c0622a1 jal 0x 00188a84      [[MA_%2B_X_without_faith]]
+
  0018a11c: 0c0622a1 jal 0x00188a84          |{{f/jal|MA_%2B_X_without_faith|MA_%2B_X_without_faith}} Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
  0018a120: 00000000 nop
+
  0018a120: 00000000 nop                     |
  0018a124: 14400011 bne r2,r0,0x 0018a16c
+
  0018a124: 14400011 bne r2,r0,0x0018a16c    {{f/Cond|If Attack hits}}
  0018a128: 00000000 nop
+
  0018a128: 00000000 nop                         |
  0018a12c: 3c028019 lui r2,0x8019
+
  0018a12c: 3c028019 lui r2,0x8019               |
  0018a130: 8c422d98 lw r2,0x2d98(r2)
+
  0018a130: 8c422d98 lw r2,0x2d98(r2)             |{{f/adr|<nowiki>r2 = Target data pointer</nowiki>}}
  0018a134: 3c048019 lui r4,0x8019
+
  0018a134: 3c048019 lui r4,0x8019               |
  0018a138: 8c842d94 lw r4,0x2d94(r4)
+
  0018a138: 8c842d94 lw r4,0x2d94(r4)             |{{f/adr|<nowiki>r4 = Attacker data pointer</nowiki>}}
  0018a13c: 94430008 lhu r3,0x0008(r2)
+
  0018a13c: 94430008 lhu r3,0x0008(r2)           |{{f/load|<nowiki>r3 = Target's zodiac halfword</nowiki>}}
  0018a140: 94820008 lhu r2,0x0008(r4)
+
  0018a140: 94820008 lhu r2,0x0008(r4)           |{{f/load|<nowiki>r2 = Attacker's zodiac halfword</nowiki>}}
  0018a144: 3063f000 andi r3,r3,0xf000
+
  0018a144: 3063f000 andi r3,r3,0xf000           |{{f/std|<nowiki>r3 = Target's zodiac nibble</nowiki>}}
  0018a148: 3042f000 andi r2,r2,0xf000
+
  0018a148: 3042f000 andi r2,r2,0xf000           |{{f/std|<nowiki>r2 = Attacker's zodiac nibble</nowiki>}}
  0018a14c: 14620005 bne r3,r2,0x 0018a164      If target and caster Zodiacs are different, inflict status.
+
  0018a14c: 14620005 bne r3,r2,0x0018a164        {{f/Cond|<nowiki>If Attacker zodiac = Caster zodiac</nowiki>}}
  0018a150: 00000000 nop
+
  0018a150: 00000000 nop                             |
  0018a154: 0c0610c3 jal 0x 0018430c      [[Force_Attack_Miss]]  ELSE, MISS Routine (Only graphics are affected here.)
+
  0018a154: 0c0610c3 jal 0x0018430c                  |{{f/jal|Force_Attack_Miss|Force_Attack_Miss}} {{f/std|<nowiki>Hit Flag = Miss Hit% = 0 - Evade type = 0x07</nowiki>}}
  0018a158: 00000000 nop
+
  0018a158: 00000000 nop                             |
  0018a15c: 0806285b j 0x 0018a16c
+
  0018a15c: 0806285b j 0x0018a16c                    {{f/jump|jump to END}}
  0018a160: 00000000 nop
+
  0018a160: 00000000 nop
  0018a164: 0c061fc9 jal 0x 00187f24      [[Apply_status_(to_action)]]
+
                                                {{f/Cond|Else : Attacker zodiac <> Caster zodiac}}
  0018a168: 00000000 nop
+
  0018a164: 0c061fc9 jal 0x00187f24              |{{f/jal|Apply_status_(to_action)|Apply_status_(to_action)}}
  0018a16c: 8fbf0010 lw r31,0x0010(r29)
+
  0018a168: 00000000 nop                         |
  0018a170: 27bd 0018 addiu r29,r29,0x 0018
+
  0018a16c: 8fbf0010 lw r31,0x0010(r29)       END
  0018a174: 03e00008 jr r31
+
  0018a170: 27bd0018 addiu r29,r29,0x0018
 +
  0018a174: 03e00008 jr r31
 
  0018a178: 00000000 nop
 
  0018a178: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:52, 24 April 2022

[41]
0018a114: 27bdffe8 addiu r29,r29,-0x0018    |
0018a118: afbf0010 sw r31,0x0010(r29)       |
0018a11c: 0c0622a1 jal 0x00188a84           |-->MA_%2B_X_without_faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018a120: 00000000 nop                      |
0018a124: 14400011 bne r2,r0,0x0018a16c     #If Attack hits
0018a128: 00000000 nop                          |
0018a12c: 3c028019 lui r2,0x8019                |
0018a130: 8c422d98 lw r2,0x2d98(r2)             |r2 = Target data pointer
0018a134: 3c048019 lui r4,0x8019                |
0018a138: 8c842d94 lw r4,0x2d94(r4)             |r4 = Attacker data pointer
0018a13c: 94430008 lhu r3,0x0008(r2)            |r3 = Target's zodiac halfword
0018a140: 94820008 lhu r2,0x0008(r4)            |r2 = Attacker's zodiac halfword
0018a144: 3063f000 andi r3,r3,0xf000            |r3 = Target's zodiac nibble
0018a148: 3042f000 andi r2,r2,0xf000            |r2 = Attacker's zodiac nibble
0018a14c: 14620005 bne r3,r2,0x0018a164         #If Attacker zodiac = Caster zodiac
0018a150: 00000000 nop                              |
0018a154: 0c0610c3 jal 0x0018430c                   |-->Force_Attack_Miss Hit Flag = Miss Hit% = 0 - Evade type = 0x07
0018a158: 00000000 nop                              |
0018a15c: 0806285b j 0x0018a16c                     >>jump to END
0018a160: 00000000 nop
                                                #Else : Attacker zodiac <> Caster zodiac
0018a164: 0c061fc9 jal 0x00187f24               |-->Apply_status_(to_action)
0018a168: 00000000 nop                          |
0018a16c: 8fbf0010 lw r31,0x0010(r29)       END
0018a170: 27bd0018 addiu r29,r29,0x0018
0018a174: 03e00008 jr r31
0018a178: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup