Difference between revisions of "Null Some Status Data"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 0018bdd4: 00001821 addu r3,r0,r0 Counter = 0 0018bdd8: 00831021 addu r2,r4,r3 0018bddc: 3c018019 lui r1,0x8019 0018bde0: 00230821 addu r1,r1,r3 0018bde4: a0203860 sb r0,...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  0018bdd4: 00001821 addu r3,r0,r0 Counter = 0
+
Parameter : r4 = Target Current Action data pointer
  0018bdd8: 00831021 addu r2,r4,r3
+
Returns nothing
  0018bddc: 3c018019 lui r1,0x8019
+
------------------------------------------------------------------------------------
  0018bde0: 00230821 addu r1,r1,r3
+
  0018bdd4: 00001821 addu r3,r0,r0           |{{f/std|<nowiki>Counter = 0</nowiki>}}
  0018bde4: a0203860 sb r0,0x3860(r1) Store ? Data = 0
+
  0018bdd8: 00831021 addu r2,r4,r3           {{f/bloop|LOOP}} {{f/adr|<nowiki>r2 = Target Current Action (TCA) data pointer</nowiki>}}
  0018bde8: 24630001 addiu r3,r3,0x0001 Counter ++
+
  0018bddc: 3c018019 lui r1,0x8019               |
  0018bdec: a040001b sb r0,0x001b(r2) Store Status Infliction = 0
+
  0018bde0: 00230821 addu r1,r1,r3               |{{f/std|<nowiki>r1 = 0x80190000 + counter</nowiki>}}
  0018bdf0: a0400020 sb r0,0x0020(r2) Store Status Removal = 0
+
  0018bde4: a0203860 sb r0,0x3860(r1)             |{{f/store|<nowiki>Store Status pre-removal = 0</nowiki>}}
  0018bdf4: 28620005 slti r2,r3,0x0005
+
  0018bde8: 24630001 addiu r3,r3,0x0001           |{{f/std|Counter ++}}
  0018bdf8: 1440fff7 bne r2,r0,0x0018bdd8 Branch if Counter < 5
+
  0018bdec: a040001b sb r0,0x001b(r2)             |{{f/store|<nowiki>Store Status Infliction = 0</nowiki>}}
  0018bdfc: 00000000 nop
+
  0018bdf0: a0400020 sb r0,0x0020(r2)             |{{f/store|<nowiki>Store Status Removal = 0</nowiki>}}
  0018be00: 03e00008 jr r31
+
  0018bdf4: 28620005 slti r2,r3,0x0005           |{{f/std|check loop's limit}}
 +
  0018bdf8: 1440fff7 bne r2,r0,0x0018bdd8     {{f/eloop|Loop 5 times (each status set)}}
 +
  0018bdfc: 00000000 nop                     |
 +
  0018be00: 03e00008 jr r31                   END
 
  0018be04: 00000000 nop
 
  0018be04: 00000000 nop
 +
===Return Locations===
 +
'''Battle.bin'''
 +
0018ba44: [[Set some data for current attack]]
 +
0018bdc0: [[Current_Action_Data_Nulling]]
 +
0018c2c8: [[Attack_Finalisation_%26_Reaction_Flagging]]

Latest revision as of 20:03, 21 November 2022

Parameter : r4 = Target Current Action data pointer
Returns nothing
------------------------------------------------------------------------------------
0018bdd4: 00001821 addu r3,r0,r0            |Counter = 0
0018bdd8: 00831021 addu r2,r4,r3            @LOOP r2 = Target Current Action (TCA) data pointer
0018bddc: 3c018019 lui r1,0x8019                |
0018bde0: 00230821 addu r1,r1,r3                |r1 = 0x80190000 + counter
0018bde4: a0203860 sb r0,0x3860(r1)             |Store Status pre-removal = 0
0018bde8: 24630001 addiu r3,r3,0x0001           |Counter ++
0018bdec: a040001b sb r0,0x001b(r2)             |Store Status Infliction = 0
0018bdf0: a0400020 sb r0,0x0020(r2)             |Store Status Removal = 0
0018bdf4: 28620005 slti r2,r3,0x0005            |check loop's limit
0018bdf8: 1440fff7 bne r2,r0,0x0018bdd8     Λ Loop 5 times (each status set)
0018bdfc: 00000000 nop                      |
0018be00: 03e00008 jr r31                   END
0018be04: 00000000 nop

Return Locations

Battle.bin
0018ba44: Set some data for current attack
0018bdc0: Current_Action_Data_Nulling
0018c2c8: Attack_Finalisation_&_Reaction_Flagging