Difference between revisions of "Store MA and Y"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  Store MA and Y
+
  No Parameters - Returns Nothing
  00185c94: 3c028019 lui r2,0x8019
+
  00185c98: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
Set Current Ability YA = Current Ability Y
  00185c9c: 3c038019 lui r3,0x8019
+
Set Current Ability XA = Attacker's MA
  00185ca0: 906338fa lbu r3,0x38fa(r3) Load Ability Y
+
----------------------------------------------------------------------------------
  00185ca4: 90420037 lbu r2,0x0037(r2) Load Attacker's MA
+
  00185c94: 3c028019 lui r2,0x8019           |
  00185ca8: 3c018019 lui r1,0x8019
+
  00185c98: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker's data pointer</nowiki>}}
  00185cac: a42338d0 sh r3,0x38d0(r1) Store Ability Y as YA
+
  00185c9c: 3c038019 lui r3,0x8019           |
  00185cb0: 3c018019 lui r1,0x8019
+
  00185ca0: 906338fa lbu r3,0x38fa(r3)       |{{f/load|<nowiki>r3 = Current Ability Y</nowiki>}} {{f/std|    0x801938fa / 801938fa}}
  00185cb4: a42238ce sh r2,0x38ce(r1) Store MA as XA
+
  00185ca4: 90420037 lbu r2,0x0037(r2)       |{{f/load|<nowiki>r2 = Attacker's MA</nowiki>}}
  00185cb8: 03e00008 jr r31
+
  00185ca8: 3c018019 lui r1,0x8019           |
  00185cbc: 00000000 nop
+
  00185cac: a42338d0 sh r3,0x38d0(r1)         |{{f/store|Store Ability Y as YA}}
 
+
  00185cb0: 3c018019 lui r1,0x8019           |
 
+
  00185cb4: a42238ce sh r2,0x38ce(r1)         |{{f/store|Store MA as XA}}
== Return Locations ==
+
  00185cb8: 03e00008 jr r31                  
 
+
  00185cbc: 00000000 nop  
*Battle.bin
+
=== Return Locations ===
 
+
'''Battle.bin'''
 
  00188d9c:  [[08 Dmg_F(MA*Y)]]
 
  00188d9c:  [[08 Dmg_F(MA*Y)]]
 
  00188f00:  [[0C Heal_F(MA*Y)]]
 
  00188f00:  [[0C Heal_F(MA*Y)]]
Line 23: Line 23:
 
  001895d4:  [[20 Dmg_(MA*Y)]]
 
  001895d4:  [[20 Dmg_(MA*Y)]]
 
  00189604:  [[21 DmgMP_(MA*Y)]]
 
  00189604:  [[21 DmgMP_(MA*Y)]]
  0018968c:  [[23 Heal_(MA*Y]]
+
  0018968c:  [[23 Heal_(MA*Y)]]
 
  0018a3a8:  [[4C Heal_(MA*Y)]]
 
  0018a3a8:  [[4C Heal_(MA*Y)]]
 
  0018a438:  [[4E Dmg_(MA*Y)]]
 
  0018a438:  [[4E Dmg_(MA*Y)]]
 
  0018a670:  [[54 HealMP_(MA*Y)]]
 
  0018a670:  [[54 HealMP_(MA*Y)]]

Latest revision as of 19:05, 13 April 2022

No Parameters - Returns Nothing

Set Current Ability YA = Current Ability Y
Set Current Ability XA = Attacker's MA
----------------------------------------------------------------------------------
00185c94: 3c028019 lui r2,0x8019            |
00185c98: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker's data pointer
00185c9c: 3c038019 lui r3,0x8019            |
00185ca0: 906338fa lbu r3,0x38fa(r3)        |r3 = Current Ability Y     0x801938fa / 801938fa
00185ca4: 90420037 lbu r2,0x0037(r2)        |r2 = Attacker's MA
00185ca8: 3c018019 lui r1,0x8019            |
00185cac: a42338d0 sh r3,0x38d0(r1)         |Store Ability Y as YA
00185cb0: 3c018019 lui r1,0x8019            |
00185cb4: a42238ce sh r2,0x38ce(r1)         |Store MA as XA
00185cb8: 03e00008 jr r31                   
00185cbc: 00000000 nop 

Return Locations

Battle.bin
00188d9c:  08 Dmg_F(MA*Y)
00188f00:  0C Heal_F(MA*Y)
001892c4:  1A Hit_F(MA+Y)% // -PA/MA/SP_(X)
001893b8:  1C Hit_(X)%
001895d4:  20 Dmg_(MA*Y)
00189604:  21 DmgMP_(MA*Y)
0018968c:  23 Heal_(MA*Y)
0018a3a8:  4C Heal_(MA*Y)
0018a438:  4E Dmg_(MA*Y)
0018a670:  54 HealMP_(MA*Y)