Difference between revisions of "Store PA and X"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
  Store PA and X
+
  No Parameters - Returns Nothing
  00185dac: 3c028019 lui r2,0x8019
+
  00185db0: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
Set Ability XA = Attacker's PA
  00185db4: 3c038019 lui r3,0x8019
+
Set Ability YA = used Ability X
  00185db8: 906338f9 lbu r3,0x38f9(r3) Load Ability X
+
------------------------------------------------------------------------------------------------
  00185dbc: 90420036 lbu r2,0x0036(r2) Load Attacker's PA
+
  00185dac: 3c028019 lui r2,0x8019           |
  00185dc0: 3c018019 lui r1,0x8019
+
  00185db0: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  00185dc4: a42338d0 sh r3,0x38d0(r1) Store X as YA
+
  00185db4: 3c038019 lui r3,0x8019           |
  00185dc8: 3c018019 lui r1,0x8019
+
  00185db8: 906338f9 lbu r3,0x38f9(r3)       |{{f/load|<nowiki>r3 = Current Ability used Ability X</nowiki>}}
  00185dcc: a42238ce sh r2,0x38ce(r1) Store PA as XA
+
  00185dbc: 90420036 lbu r2,0x0036(r2)       |{{f/load|<nowiki>r2 = Attacker's PA</nowiki>}}
 +
  00185dc0: 3c018019 lui r1,0x8019           |
 +
  00185dc4: a42338d0 sh r3,0x38d0(r1)         |{{f/store|Store Ability X as Ability YA}}
 +
  00185dc8: 3c018019 lui r1,0x8019           |
 +
  00185dcc: a42238ce sh r2,0x38ce(r1)         |{{f/store|Store Attacker's PA as Ability XA}}
 
  00185dd0: 03e00008 jr r31
 
  00185dd0: 03e00008 jr r31
 
  00185dd4: 00000000 nop
 
  00185dd4: 00000000 nop
 
+
=== Return Locations ===
 
+
'''Battle.bin'''
== Return Locations ==
+
  00189e38: [[33 Hit_(PA+X)%]]
 
+
  00189f18: [[35 Heal_(Y)% Hit_(PA+X)%]]
*Battle.bin
 
  00189e30: [[33 Hit_(PA+X)%]]
 
  00189f10: [[35 Heal_(Y)% Hit_(PA+X)%]]
 

Latest revision as of 11:54, 24 April 2022

No Parameters - Returns Nothing

Set Ability XA = Attacker's PA
Set Ability YA = used Ability X
------------------------------------------------------------------------------------------------
00185dac: 3c028019 lui r2,0x8019            |
00185db0: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185db4: 3c038019 lui r3,0x8019            |
00185db8: 906338f9 lbu r3,0x38f9(r3)        |r3 = Current Ability used Ability X
00185dbc: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185dc0: 3c018019 lui r1,0x8019            |
00185dc4: a42338d0 sh r3,0x38d0(r1)         |Store Ability X as Ability YA
00185dc8: 3c018019 lui r1,0x8019            |
00185dcc: a42238ce sh r2,0x38ce(r1)         |Store Attacker's PA as Ability XA
00185dd0: 03e00008 jr r31
00185dd4: 00000000 nop

Return Locations

Battle.bin
00189e38: 33 Hit_(PA+X)%
00189f18: 35 Heal_(Y)% Hit_(PA+X)%