Difference between revisions of "Store PA and Y"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Store PA and Y 00185e04: 3c028019 lui r2,0x8019 00185e08: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats 00185e0c: 3c038019 lui r3,0x8019 00185e10: 906338fa lbu r3,...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  Store PA and Y
+
  No Parameters - Returns Nothing
  00185e04: 3c028019 lui r2,0x8019
+
  00185e08: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
Set Current Ability XA = Attacker's PA
  00185e0c: 3c038019 lui r3,0x8019
+
Set Current Ability YA = used Ability Y
  00185e10: 906338fa lbu r3,0x38fa(r3) Load Ability Y
+
--------------------------------------------------------------------------------------------------
  00185e14: 90420036 lbu r2,0x0036(r2) Load Attacker's PA
+
  00185e04: 3c028019 lui r2,0x8019
  00185e18: 3c018019 lui r1,0x8019
+
  00185e08: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  00185e1c: a42338d0 sh r3,0x38d0(r1) Store Y as YA
+
  00185e0c: 3c038019 lui r3,0x8019           |
  00185e20: 3c018019 lui r1,0x8019
+
  00185e10: 906338fa lbu r3,0x38fa(r3)       |{{f/load|<nowiki>r3 = Current Ability used Ability Y</nowiki>}}
  00185e24: a42238ce sh r2,0x38ce(r1) Store PA as XA
+
  00185e14: 90420036 lbu r2,0x0036(r2)       |{{f/load|<nowiki>r2 = Attacker's PA</nowiki>}}
  00185e28: 03e00008 jr r31
+
  00185e18: 3c018019 lui r1,0x8019           |
  00185e2c: 00000000 nop
+
  00185e1c: a42338d0 sh r3,0x38d0(r1)         |{{f/store|<nowiki>Set Ability YA = used Ability Y</nowiki>}}
 +
  00185e20: 3c018019 lui r1,0x8019           |
 +
  00185e24: a42238ce sh r2,0x38ce(r1)         |{{f/store|<nowiki>Set Ability XA = Attacker's PA</nowiki>}}
 +
  00185e28: 03e00008 jr r31                  
 +
  00185e2c: 00000000 nop  
 +
=== Return Locations ===
 +
'''Battle.bin'''
 +
00189ab0: [[2B Hit_(PA+X)% // -PA/MA/SP_(X)]]
 +
00189af8: [[2C DmgMP_(X)% Hit_(PA+Y)%]]
 +
00189ea4: [[34 Heal_(PA*Y) HealMP_(PA*Y/2)]]
 +
00189fa4: [[37 Dmg_(Rdm(1…Y)*PA)]]
 +
0018a18c: [[42 Dmg_(PA*Y) DmgCas_(PA*Y/X)]]

Latest revision as of 11:07, 23 April 2022

No Parameters - Returns Nothing

Set Current Ability XA = Attacker's PA
Set Current Ability YA = used Ability Y
--------------------------------------------------------------------------------------------------
00185e04: 3c028019 lui r2,0x8019
00185e08: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185e0c: 3c038019 lui r3,0x8019            |
00185e10: 906338fa lbu r3,0x38fa(r3)        |r3 = Current Ability used Ability Y
00185e14: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185e18: 3c018019 lui r1,0x8019            |
00185e1c: a42338d0 sh r3,0x38d0(r1)         |Set Ability YA = used Ability Y
00185e20: 3c018019 lui r1,0x8019            |
00185e24: a42238ce sh r2,0x38ce(r1)         |Set Ability XA = Attacker's PA
00185e28: 03e00008 jr r31                   
00185e2c: 00000000 nop 

Return Locations

Battle.bin
00189ab0: 2B Hit_(PA+X)% // -PA/MA/SP_(X)
00189af8: 2C DmgMP_(X)% Hit_(PA+Y)%
00189ea4: 34 Heal_(PA*Y) HealMP_(PA*Y/2)
00189fa4: 37 Dmg_(Rdm(1…Y)*PA)
0018a18c: 42 Dmg_(PA*Y) DmgCas_(PA*Y/X)