Difference between revisions of "Store PA and WP + Y"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
+
No Parameters - Returns Nothing
  Store PA and WP + Y
+
  00185e5c: 3c048019 lui r4,0x8019
+
Set Current Ability XA = Attacker's Parameters
  00185e60: 8c842d94 lw r4,0x2d94(r4) Load Attacker's Stats
+
  Set Current Ability YA = Used Weapon Power + Used Ability Y
  00185e64: 3c028019 lui r2,0x8019
+
-----------------------------------------------------------------------------------------------------
  00185e68: 90423902 lbu r2,0x3902(r2) Load Weapon Power
+
  00185e5c: 3c048019 lui r4,0x8019           |
  00185e6c: 3c038019 lui r3,0x8019
+
  00185e60: 8c842d94 lw r4,0x2d94(r4)         |{{f/adr|<nowiki>r4 = Attacker data pointer</nowiki>}}
  00185e70: 906338fa lbu r3,0x38fa(r3) Load Ability Y
+
  00185e64: 3c028019 lui r2,0x8019           |
  00185e74: 90840036 lbu r4,0x0036(r4) Load Attacker's PA
+
  00185e68: 90423902 lbu r2,0x3902(r2)       |{{f/load|<nowiki>r2 = Current Ability used Weapon Power</nowiki>}}
  00185e78: 00431021 addu r2,r2,r3 WP + Y
+
  00185e6c: 3c038019 lui r3,0x8019           |
  00185e7c: 3c018019 lui r1,0x8019
+
  00185e70: 906338fa lbu r3,0x38fa(r3)       |{{f/load|<nowiki>r3 = Current Ability used Ability Y</nowiki>}}
  00185e80: a42238d0 sh r2,0x38d0(r1) Store WP + Y as YA
+
  00185e74: 90840036 lbu r4,0x0036(r4)       |{{f/load|<nowiki>r4 = Attacker's PA</nowiki>}}
  00185e84: 3c018019 lui r1,0x8019
+
  00185e78: 00431021 addu r2,r2,r3           |{{f/std|<nowiki>r2 = Weapon Power + Ability Y</nowiki>}}
  00185e88: a42438ce sh r4,0x38ce(r1) Store PA as XA
+
  00185e7c: 3c018019 lui r1,0x8019           |
  00185e8c: 03e00008 jr r31
+
  00185e80: a42238d0 sh r2,0x38d0(r1)         |{{f/store|Store WP + Y as Current Ability YA}}
 +
  00185e84: 3c018019 lui r1,0x8019           |
 +
  00185e88: a42438ce sh r4,0x38ce(r1)         |{{f/store|Store PA as Current Ability XA}}
 +
  00185e8c: 03e00008 jr r31
 
  00185e90: 00000000 nop
 
  00185e90: 00000000 nop
 
+
=== Return Locations ===
 
+
'''Battle.bin'''
== Return Locations ==
+
  0018973c: [[25 Equipped: Break Hit_(PA+WP+X)%]]
 
+
  00189b40: [[2D Dmg_(PA*(WP+Y)) 100% Status]]
*Battle.bin
 
  00189734: [[25 Equipped: Break Hit_(PA+WP+X)%]]
 
  00189b38: [[2D Dmg_(PA*(WP+Y)) 100% Status]]
 

Revision as of 19:33, 20 April 2022

No Parameters - Returns Nothing

Set Current Ability XA = Attacker's Parameters
Set Current Ability YA = Used Weapon Power + Used Ability Y
-----------------------------------------------------------------------------------------------------
00185e5c: 3c048019 lui r4,0x8019            |
00185e60: 8c842d94 lw r4,0x2d94(r4)         |r4 = Attacker data pointer
00185e64: 3c028019 lui r2,0x8019            |
00185e68: 90423902 lbu r2,0x3902(r2)        |r2 = Current Ability used Weapon Power
00185e6c: 3c038019 lui r3,0x8019            |
00185e70: 906338fa lbu r3,0x38fa(r3)        |r3 = Current Ability used Ability Y
00185e74: 90840036 lbu r4,0x0036(r4)        |r4 = Attacker's  PA
00185e78: 00431021 addu r2,r2,r3            |r2 = Weapon Power + Ability Y
00185e7c: 3c018019 lui r1,0x8019            |
00185e80: a42238d0 sh r2,0x38d0(r1)         |Store WP + Y as Current Ability YA
00185e84: 3c018019 lui r1,0x8019            |
00185e88: a42438ce sh r4,0x38ce(r1)         |Store PA as Current Ability XA
00185e8c: 03e00008 jr r31
00185e90: 00000000 nop

Return Locations

Battle.bin
0018973c: 25 Equipped: Break Hit_(PA+WP+X)%
00189b40: 2D Dmg_(PA*(WP+Y)) 100% Status