Difference between revisions of "Store PA and WP"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Store PA and WP 00185dd8: 3c028019 lui r2,0x8019 00185ddc: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats 00185de0: 3c038019 lui r3,0x8019 00185de4: 90633902 lbu r...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
+
No Parameters - Returns Nothing
  Store PA and WP
+
  00185dd8: 3c028019 lui r2,0x8019
+
  Set Current Ability XA = Attacker's PA
  00185ddc: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
Set Current Ability YA = used Weapon WP
  00185de0: 3c038019 lui r3,0x8019
+
----------------------------------------------------------------------------------------------------------------
  00185de4: 90633902 lbu r3,0x3902(r3) Load Weapon Power
+
  00185dd8: 3c028019 lui r2,0x8019           |
  00185de8: 90420036 lbu r2,0x0036(r2) Load PA
+
  00185ddc: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  00185dec: 3c018019 lui r1,0x8019
+
  00185de0: 3c038019 lui r3,0x8019           |
  00185df0: a42338d0 sh r3,0x38d0(r1) Store WP as YA
+
  00185de4: 90633902 lbu r3,0x3902(r3)       |{{f/load|<nowiki>r3 = Current Ability used Weapon WP</nowiki>}}
  00185df4: 3c018019 lui r1,0x8019
+
  00185de8: 90420036 lbu r2,0x0036(r2)       |{{f/load|<nowiki>r2 = Attacker's PA</nowiki>}}
  00185df8: a42238ce sh r2,0x38ce(r1) Store PA as XA
+
  00185dec: 3c018019 lui r1,0x8019           |
  00185dfc: 03e00008 jr r31
+
  00185df0: a42338d0 sh r3,0x38d0(r1)         |{{f/store|<nowiki>Set Current Ability YA = used Weapon WP</nowiki>}}
  00185e00: 00000000 nop
+
  00185df4: 3c018019 lui r1,0x8019           |
 +
  00185df8: a42238ce sh r2,0x38ce(r1)         |{{f/store|<nowiki>Set Current Ability XA = Attacker's PA</nowiki>}}
 +
  00185dfc: 03e00008 jr r31                   |
 +
  00185e00: 00000000 nop  
 +
=== Return Locations ===
 +
'''Battle.bin'''
 +
00189b04: [[2E Equipped:Break Dmg_(PA*WP)]]
 +
00189c70: [[2F AbsMP_(PA*WP)]]
 +
00189cb0: [[30 AbsHP_(PA*WP)]]

Latest revision as of 11:43, 23 April 2022

No Parameters - Returns Nothing

Set Current Ability XA = Attacker's PA
Set Current Ability YA = used Weapon WP
----------------------------------------------------------------------------------------------------------------
00185dd8: 3c028019 lui r2,0x8019            |
00185ddc: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185de0: 3c038019 lui r3,0x8019            |
00185de4: 90633902 lbu r3,0x3902(r3)        |r3 = Current Ability used Weapon WP
00185de8: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185dec: 3c018019 lui r1,0x8019            |
00185df0: a42338d0 sh r3,0x38d0(r1)         |Set Current Ability YA = used Weapon WP
00185df4: 3c018019 lui r1,0x8019            |
00185df8: a42238ce sh r2,0x38ce(r1)         |Set Current Ability XA = Attacker's PA
00185dfc: 03e00008 jr r31                   |
00185e00: 00000000 nop 

Return Locations

Battle.bin
00189b04: 2E Equipped:Break Dmg_(PA*WP)
00189c70: 2F AbsMP_(PA*WP)
00189cb0: 30 AbsHP_(PA*WP)