Difference between revisions of "Action data nulling"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0018adf4: 3c048019 lui r4,0x8019 0018adf8: 8c842d90 lw r4,0x2d90(r4) 0018adfc: 27bdffe8 addiu r29,r29,0xffe8 0018ae00: afbf0010 sw r31,0x0010(r...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<font face='Courier New'>
+
Reset most of Target and attacker action data from 0x00 to 0x29  --> See [[Data/Table_Locations#Current Action Data|Current Action Data]]
   
+
Preserve : - Reaction ID (halfword at +0x0e)
 +
            - Last attack recieved ID (halfword at +0x26)
 +
Set hit% to 100% and hit flag to "hit" for target and to "miss" for attacker
 +
  --------------------------------------------------------------------------------
 
  0018adf4: 3c048019 lui r4,0x8019
 
  0018adf4: 3c048019 lui r4,0x8019
  0018adf8: 8c842d90 lw r4,0x2d90(r4)
+
  0018adf8: 8c842d90 lw r4,0x2d90(r4)         r4 = Target current action data pointer
 
  0018adfc: 27bdffe8 addiu r29,r29,0xffe8
 
  0018adfc: 27bdffe8 addiu r29,r29,0xffe8
 
  0018ae00: afbf0010 sw r31,0x0010(r29)
 
  0018ae00: afbf0010 sw r31,0x0010(r29)
  0018ae04: 0c062f5d jal 0x0018bd74 current action data nulling
+
  0018ae04: 0c062f5d jal 0x0018bd74           [[Current Action Data Nulling]]
 
  0018ae08: 00000000 nop
 
  0018ae08: 00000000 nop
 
  0018ae0c: 3c048019 lui r4,0x8019
 
  0018ae0c: 3c048019 lui r4,0x8019
  0018ae10: 8c842d8c lw r4,0x2d8c(r4)
+
  0018ae10: 8c842d8c lw r4,0x2d8c(r4)         r4 = Attacker current action data pointer
  0018ae14: 0c062f5d jal 0x0018bd74
+
  0018ae14: 0c062f5d jal 0x0018bd74           [[Current Action Data Nulling]]
 
  0018ae18: 00000000 nop
 
  0018ae18: 00000000 nop
 
  0018ae1c: 3c028019 lui r2,0x8019
 
  0018ae1c: 3c028019 lui r2,0x8019
  0018ae20: 8c422d8c lw r2,0x2d8c(r2)
+
  0018ae20: 8c422d8c lw r2,0x2d8c(r2)        r2 = Attacker current action data pointer (ACADP)
 
  0018ae24: 00000000 nop
 
  0018ae24: 00000000 nop
  0018ae28: a0400000 sb r0,0x0000(r2) store miss
+
  0018ae28: a0400000 sb r0,0x0000(r2)         ACADP hit flag = 0x00 (miss)
 
  0018ae2c: 8fbf0010 lw r31,0x0010(r29)
 
  0018ae2c: 8fbf0010 lw r31,0x0010(r29)
 
  0018ae30: 27bd0018 addiu r29,r29,0x0018
 
  0018ae30: 27bd0018 addiu r29,r29,0x0018
 
  0018ae34: 03e00008 jr r31
 
  0018ae34: 03e00008 jr r31
 
  0018ae38: 00000000 nop
 
  0018ae38: 00000000 nop
</font>
+
===Return Locations===
 +
0018ae4c: [[Knockback%3F]]
 +
0018af9c: [[Perform_reaction_abilities]]
 +
0018b590: [[Pre_Formula_Setup_(FDC)]]
 +
0018bb2c: [[Set some data for current attack]]

Latest revision as of 21:02, 28 November 2021

Reset most of Target and attacker action data from 0x00 to 0x29   --> See Current Action Data
Preserve : - Reaction ID (halfword at +0x0e)
           - Last attack recieved ID (halfword at +0x26)
Set hit% to 100% and hit flag to "hit" for target and to "miss" for attacker
--------------------------------------------------------------------------------
0018adf4: 3c048019 lui r4,0x8019
0018adf8: 8c842d90 lw r4,0x2d90(r4)         r4 = Target current action data pointer
0018adfc: 27bdffe8 addiu r29,r29,0xffe8
0018ae00: afbf0010 sw r31,0x0010(r29)
0018ae04: 0c062f5d jal 0x0018bd74           Current Action Data Nulling
0018ae08: 00000000 nop
0018ae0c: 3c048019 lui r4,0x8019
0018ae10: 8c842d8c lw r4,0x2d8c(r4)         r4 = Attacker current action data pointer
0018ae14: 0c062f5d jal 0x0018bd74           Current Action Data Nulling	
0018ae18: 00000000 nop
0018ae1c: 3c028019 lui r2,0x8019
0018ae20: 8c422d8c lw r2,0x2d8c(r2)         r2 = Attacker current action data pointer (ACADP)
0018ae24: 00000000 nop
0018ae28: a0400000 sb r0,0x0000(r2)         ACADP hit flag = 0x00 (miss)
0018ae2c: 8fbf0010 lw r31,0x0010(r29)
0018ae30: 27bd0018 addiu r29,r29,0x0018
0018ae34: 03e00008 jr r31
0018ae38: 00000000 nop

Return Locations

0018ae4c: Knockback?
0018af9c: Perform_reaction_abilities
0018b590: Pre_Formula_Setup_(FDC)
0018bb2c: Set some data for current attack