Difference between revisions of "Store Speed and X"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Store Speed and X 00185e30: 3c028019 lui r2,0x8019 00185e34: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats 00185e38: 3c038019 lui r3,0x8019 00185e3c: 906338f9 lbu ...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  Store Speed and X
+
  No Parameters - Returns Nothing
  00185e30: 3c028019 lui r2,0x8019
+
  00185e34: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
Set Current Ability XA = Attacker's speed
  00185e38: 3c038019 lui r3,0x8019
+
Set Current Ability YA = Used Ability X
  00185e3c: 906338f9 lbu r3,0x38f9(r3) Load Ability X
+
--------------------------------------------------------------------------------------------------------------
  00185e40: 90420038 lbu r2,0x0038(r2) Load Attacker's Speed
+
  00185e30: 3c028019 lui r2,0x8019           |
  00185e44: 3c018019 lui r1,0x8019
+
  00185e34: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  00185e48: a42338d0 sh r3,0x38d0(r1) Store X as YA
+
  00185e38: 3c038019 lui r3,0x8019           |
  00185e4c: 3c018019 lui r1,0x8019
+
  00185e3c: 906338f9 lbu r3,0x38f9(r3)       |{{f/load|<nowiki>r3 = Current Ability used Ability X</nowiki>}}
  00185e50: a42238ce sh r2,0x38ce(r1) Store Speed as XA
+
  00185e40: 90420038 lbu r2,0x0038(r2)       |{{f/load|<nowiki>r2 = Attacker's speed</nowiki>}}
  00185e54: 03e00008 jr r31
+
  00185e44: 3c018019 lui r1,0x8019           |
  00185e58: 00000000 nop
+
  00185e48: a42338d0 sh r3,0x38d0(r1)         |{{f/store|<nowiki>Set Current Ability YA = used Ability X</nowiki>}}
 +
  00185e4c: 3c018019 lui r1,0x8019           |
 +
  00185e50: a42238ce sh r2,0x38ce(r1)         |{{f/store|<nowiki>Set Current Ability XA = Attacker's speed</nowiki>}}
 +
  00185e54: 03e00008 jr r31                   |
 +
  00185e58: 00000000 nop                     |
 +
 
 +
=== Return Locations ===
 +
'''Battle.bin'''
 +
001897e0: [[26 Equipped: Steal Hit_(SP+X)%]]
 +
00189848: [[27 StealGil_(CasLVL*SP) Hit_(SP+X)%]]
 +
00189890: [[28 StealExp_(Lowest of TarCurExp & SP+Y) Hit_(SP+X)%]]
 +
0018a03c: [[3F Hit_(SP+X)%]]
 +
0018a098: [[40 Undead: Hit_(SP+X)%]]

Latest revision as of 12:28, 21 April 2022

No Parameters - Returns Nothing

Set Current Ability XA = Attacker's speed
Set Current Ability YA = Used Ability X
--------------------------------------------------------------------------------------------------------------
00185e30: 3c028019 lui r2,0x8019            |
00185e34: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185e38: 3c038019 lui r3,0x8019            |
00185e3c: 906338f9 lbu r3,0x38f9(r3)        |r3 = Current Ability used Ability X
00185e40: 90420038 lbu r2,0x0038(r2)        |r2 = Attacker's speed
00185e44: 3c018019 lui r1,0x8019            |
00185e48: a42338d0 sh r3,0x38d0(r1)         |Set Current Ability YA = used Ability X
00185e4c: 3c018019 lui r1,0x8019            |
00185e50: a42238ce sh r2,0x38ce(r1)         |Set Current Ability XA = Attacker's speed
00185e54: 03e00008 jr r31                   |
00185e58: 00000000 nop                      |

Return Locations

Battle.bin
001897e0: 26 Equipped: Steal Hit_(SP+X)%
00189848: 27 StealGil_(CasLVL*SP) Hit_(SP+X)%
00189890: 28 StealExp_(Lowest of TarCurExp & SP+Y) Hit_(SP+X)%
0018a03c: 3F Hit_(SP+X)%
0018a098: 40 Undead: Hit_(SP+X)%