Difference between revisions of "21 DmgMP (MA*Y)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Wikilinking)
m
 
Line 1: Line 1:
 
  [21]
 
  [21]
  001895f4: 27bdffe8 addiu r29,r29,0xffe8
+
  001895f4: 27bdffe8 addiu r29,r29,0xffe8     |
  001895f8: afbf0010 sw r31,0x0010(r29)
+
  001895f8: afbf0010 sw r31,0x0010(r29)       |
  001895fc: 0c061e44 jal 0x00187910     [[Katana Break Chance]]
+
  001895fc: 0c061e44 jal 0x00187910           |{{f/jal|Katana Break Chance|Katana Break Chance}}  Roll Break chances (Wepon Power%), update Attacker current action special flags
  00189600: 00000000 nop
+
  00189600: 00000000 nop                     |
  00189604: 0c061725 jal 0x00185c94     [[Store MA and Y]]
+
  00189604: 0c061725 jal 0x00185c94           |{{f/jal|Store MA and Y|Store MA and Y}} XA = Attacker's MA and YA = used Ability Y
  00189608: 00000000 nop
+
  00189608: 00000000 nop                     |
  0018960c: 0c0621d1 jal 0x00188744     [[Magical Support/Status/Compat|Magic XA Modifications]]
+
  0018960c: 0c0621d1 jal 0x00188744           |{{f/jal|Magical Support/Status/Compat|Magical Support/Status/Compat}} Modify Ability XA (Support Abilities, Status, Compatibility)
  00189610: 00000000 nop
+
  00189610: 00000000 nop                     |
  00189614: 3c038019 lui r3,0x8019
+
  00189614: 3c038019 lui r3,0x8019           |
  00189618: 946338ce lhu r3,0x38ce(r3)
+
  00189618: 946338ce lhu r3,0x38ce(r3)       |{{f/load|<nowiki>r3 = Current Ability XA</nowiki>}}
  0018961c: 3c028019 lui r2,0x8019
+
  0018961c: 3c028019 lui r2,0x8019           |
  00189620: 944238d0 lhu r2,0x38d0(r2)
+
  00189620: 944238d0 lhu r2,0x38d0(r2)       |{{f/load|<nowiki>r2 = Current Ability YA</nowiki>}}
  00189624: 00000000 nop
+
  00189624: 00000000 nop                     |
  00189628: 00620018 mult r3,r2
+
  00189628: 00620018 mult r3,r2               |{{f/std|XA*YA}}
  0018962c: 3c038019 lui r3,0x8019
+
  0018962c: 3c038019 lui r3,0x8019           |
  00189630: 8c632d90 lw r3,0x2d90(r3)
+
  00189630: 8c632d90 lw r3,0x2d90(r3)         |{{f/adr|<nowiki>r3 = Target Current Action (TCA) data pointer</nowiki>}}
  00189634: 34020020 ori r2,r0,0x0020     Set as MP Damage
+
  00189634: 34020020 ori r2,r0,0x0020         |{{f/std|<nowiki>r2 = 0x20 (MP damage Attack type flag)</nowiki>}}
  00189638: a0620025 sb r2,0x0025(r3)
+
  00189638: a0620025 sb r2,0x0025(r3)         |{{f/store|Set TCA Attack type to MP damage }} {{f/std|(disables others flags)}}
  0018963c: 00001012 mflo r2
+
  0018963c: 00001012 mflo r2                 |{{f/std|<nowiki>r2 = XA*YA</nowiki>}}
  00189640: a4620008 sh r2,0x0008(r3)     Load MP Damage
+
  00189640: a4620008 sh r2,0x0008(r3)         |{{f/store|<nowiki>Set TCA MP damage = XA*YA</nowiki>}}
  00189644: 8fbf0010 lw r31,0x0010(r29)
+
  00189644: 8fbf0010 lw r31,0x0010(r29)      
  00189648: 27bd0018 addiu r29,r29,0x0018
+
  00189648: 27bd0018 addiu r29,r29,0x0018    
  0018964c: 03e00008 jr r31
+
  0018964c: 03e00008 jr r31                  
 
  00189650: 00000000 nop
 
  00189650: 00000000 nop
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 19:55, 18 April 2022

[21]
001895f4: 27bdffe8 addiu r29,r29,0xffe8     |
001895f8: afbf0010 sw r31,0x0010(r29)       |
001895fc: 0c061e44 jal 0x00187910           |-->Katana Break Chance  Roll Break chances (Wepon Power%), update Attacker current action special flags
00189600: 00000000 nop                      |
00189604: 0c061725 jal 0x00185c94           |-->Store MA and Y XA = Attacker's MA and YA = used Ability Y
00189608: 00000000 nop                      |
0018960c: 0c0621d1 jal 0x00188744           |-->Magical Support/Status/Compat Modify Ability XA (Support Abilities, Status, Compatibility)
00189610: 00000000 nop                      |
00189614: 3c038019 lui r3,0x8019            |
00189618: 946338ce lhu r3,0x38ce(r3)        |r3 = Current Ability XA
0018961c: 3c028019 lui r2,0x8019            |
00189620: 944238d0 lhu r2,0x38d0(r2)        |r2 = Current Ability YA
00189624: 00000000 nop                      |
00189628: 00620018 mult r3,r2               |XA*YA
0018962c: 3c038019 lui r3,0x8019            |
00189630: 8c632d90 lw r3,0x2d90(r3)         |r3 = Target Current Action (TCA) data pointer
00189634: 34020020 ori r2,r0,0x0020         |r2 = 0x20 (MP damage Attack type flag)
00189638: a0620025 sb r2,0x0025(r3)         |Set TCA Attack type to MP damage  (disables others flags)
0018963c: 00001012 mflo r2                  |r2 = XA*YA
00189640: a4620008 sh r2,0x0008(r3)         |Set TCA MP damage = XA*YA
00189644: 8fbf0010 lw r31,0x0010(r29)       
00189648: 27bd0018 addiu r29,r29,0x0018     
0018964c: 03e00008 jr r31                   
00189650: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup