Difference between revisions of "Remove transparent status if Jump is used"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0018ac74: 3c058019 lui r5,0x8019 0018ac78: 24a52da0 addiu r5,r5,0x2da0 0018ac7c: 3c018019 lui r1,0x8019 0018ac80: ac252d8c sw r5,0x2d8c(r1) ...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<font face='Courier New'>
+
Parameters : r4 = Attacker data pointer
 
   
 
   
  0018ac74: 3c058019 lui r5,0x8019
+
Store : 0x80192da0 at 0x80192d8c (for all)
  0018ac78: 24a52da0 addiu r5,r5,0x2da0
+
        If Attacker uses jump skillset and is transparent
  0018ac7c: 3c018019 lui r1,0x8019
+
        0x08 at 0x80192dc5 (Attacker current action attack type = status change)
  0018ac80: ac252d8c sw r5,0x2d8c(r1) store current action data pointer pointer
+
        0x10 at 0x80192dc2 (Will remove transparent)
  0018ac84: 9083016f lbu r3,0x016f(r4) load skillset of last attack
+
------------------------------------------------------------------------------------------
  0018ac88: 34020012 ori r2,r0,0x0012
+
  0018ac74: 3c058019 lui r5,0x8019           |
  0018ac8c: 14620011 bne r3,r2,0x0018acd4 branch if not Jump
+
  0018ac78: 24a52da0 addiu r5,r5,0x2da0       |{{f/adr|<nowiki>r5 = 0x80192da0</nowiki>}} {{f/std|<nowiki>Copy of attacker current action data</nowiki>}}
  0018ac90: 00000000 nop
+
  0018ac7c: 3c018019 lui r1,0x8019           |
  0018ac94: 908201bd lbu r2,0x01bd(r4) load inflicted status list 3
+
  0018ac80: ac252d8c sw r5,0x2d8c(r1)         |{{f/store|<nowiki>Store Copy of Attacker action data adress at attacker current action data pointer ( 0x80192d8c )</nowiki>}}
  0018ac98: 00000000 nop
+
  0018ac84: 9083016f lbu r3,0x016f(r4)             |{{f/load|<nowiki>r3 = Attacker's used skillset</nowiki>}}
  0018ac9c: 30420010 andi r2,r2,0x0010
+
  0018ac88: 34020012 ori r2,r0,0x0012             |{{f/std|<nowiki>r2 = 0x12 (Jump skillset ID)</nowiki>}}
  0018aca0: 1040000c beq r2,r0,0x0018acd4 branch if transparent not inflicted?
+
  0018ac8c: 14620011 bne r3,r2,0x0018acd4         {{f/Cond|<nowiki>If Attacker's used skillset is Jump</nowiki>}} /Else branch to {{f/loc|<nowiki>END</nowiki>}}
  0018aca4: 34020001 ori r2,r0,0x0001
+
  0018ac90: 00000000 nop                               |{{f/std|<nowiki> </nowiki>}}
  0018aca8: a0a20000 sb r2,0x0000(r5) store hit flag in acting units current action data
+
  0018ac94: 908201bd lbu r2,0x01bd(r4)                 |{{f/load|<nowiki>r2 = Attacker's current inflicted status 3</nowiki>}} {{f/load|<nowiki>(Non Innate status list on unit)</nowiki>}}
  0018acac: 3c028019 lui r2,0x8019
+
  0018ac98: 00000000 nop                               |
  0018acb0: 90422dc5 lbu r2,0x2dc5(r2) load attack type
+
  0018ac9c: 30420010 andi r2,r2,0x0010                 |{{f/std|<nowiki>r2 = 0x10 if transparent is inflicted / else 0x00</nowiki>}}
  0018acb4: 3c038019 lui r3,0x8019
+
  0018aca0: 1040000c beq r2,r0,0x0018acd4             {{f/Cond|<nowiki>If Attacker doesn't have transparent inflicted</nowiki>}} /Else branch to {{f/loc|<nowiki>END</nowiki>}}
  0018acb8: 90632dc2 lbu r3,0x2dc2(r3) load attacks status removal 3
+
  0018aca4: 34020001 ori r2,r0,0x0001                     |{{f/std|<nowiki>r2 = 0x01</nowiki>}}
  0018acbc: 34420008 ori r2,r2,0x0008 enable status change
+
  0018aca8: a0a20000 sb r2,0x0000(r5)                     |{{f/store|<nowiki>Store Attacker current action hit flag = hit (0x01)</nowiki>}}
  0018acc0: 34630010 ori r3,r3,0x0010 enable transparent
+
  0018acac: 3c028019 lui r2,0x8019                         |
  0018acc4: 3c018019 lui r1,0x8019
+
  0018acb0: 90422dc5 lbu r2,0x2dc5(r2)                     |{{f/load|<nowiki>r2 = Attacker current action Attack Type</nowiki>}} {{f/std|<nowiki> 0x80192da0 + 0x25</nowiki>}}
  0018acc8: a0222dc5 sb r2,0x2dc5(r1) store status change
+
  0018acb4: 3c038019 lui r3,0x8019                         |
  0018accc: 3c018019 lui r1,0x8019
+
  0018acb8: 90632dc2 lbu r3,0x2dc2(r3)                     |{{f/load|<nowiki>r3 = Attacker current action status removal 3</nowiki>}} {{f/std|<nowiki> 0x80192da0 + 0x22</nowiki>}}
  0018acd0: a0232dc2 sb r3,0x2dc2(r1) store transparent
+
  0018acbc: 34420008 ori r2,r2,0x0008                     |{{f/std|<nowiki>r2 = Attacker current action attack type with status change enabled</nowiki>}}
  0018acd4: 03e00008 jr r31
+
  0018acc0: 34630010 ori r3,r3,0x0010                     |{{f/std|<nowiki>r3 = Attacker current action status removal 3 with transparent removed</nowiki>}}
 +
  0018acc4: 3c018019 lui r1,0x8019                         |
 +
  0018acc8: a0222dc5 sb r2,0x2dc5(r1)                     |{{f/store|<nowiki>Store Updated attack type with status change</nowiki>}} {{f/std|<nowiki> 0x80192dc5</nowiki>}}
 +
  0018accc: 3c018019 lui r1,0x8019                         |
 +
  0018acd0: a0232dc2 sb r3,0x2dc2(r1)                     |{{f/store|<nowiki>Store Transparent removed (on Attacker current action status removal 3)</nowiki>}} {{f/std|<nowiki> 0x80192dc2</nowiki>}}
 +
  0018acd4: 03e00008 jr r31                 END           
 
  0018acd8: 00000000 nop
 
  0018acd8: 00000000 nop
</font>
+
=== Return location ===
 +
'''Battle.bin'''
 +
  0017d0d8: [[Main_ability_loading_routine%3F]]

Latest revision as of 22:00, 22 December 2024

Parameters : r4 = Attacker data pointer

Store : 0x80192da0 at 0x80192d8c (for all)
        If Attacker uses jump skillset and is transparent
        0x08 at 0x80192dc5 (Attacker current action attack type = status change)
        0x10 at 0x80192dc2 (Will remove transparent)
------------------------------------------------------------------------------------------
0018ac74: 3c058019  lui r5,0x8019           |
0018ac78: 24a52da0 addiu r5,r5,0x2da0       |r5 = 0x80192da0 Copy of attacker current action data
0018ac7c: 3c018019 lui r1,0x8019            |
0018ac80: ac252d8c sw r5,0x2d8c(r1)         |Store Copy of Attacker action data adress at attacker current action data pointer ( 0x80192d8c )
0018ac84: 9083016f lbu r3,0x016f(r4)             |r3 = Attacker's used skillset
0018ac88: 34020012 ori r2,r0,0x0012              |r2 = 0x12 (Jump skillset ID)
0018ac8c: 14620011 bne r3,r2,0x0018acd4          #If Attacker's used skillset is Jump /Else branch to END
0018ac90: 00000000 nop                               | 
0018ac94: 908201bd lbu r2,0x01bd(r4)                 |r2 = Attacker's current inflicted status 3 (Non Innate status list on unit)
0018ac98: 00000000 nop                               |
0018ac9c: 30420010 andi r2,r2,0x0010                 |r2 = 0x10 if transparent is inflicted / else 0x00
0018aca0: 1040000c beq r2,r0,0x0018acd4              #If Attacker doesn't have transparent inflicted /Else branch to END
0018aca4: 34020001 ori r2,r0,0x0001                      |r2 = 0x01
0018aca8: a0a20000 sb r2,0x0000(r5)                      |Store Attacker current action hit flag = hit (0x01)
0018acac: 3c028019 lui r2,0x8019                         |
0018acb0: 90422dc5 lbu r2,0x2dc5(r2)                     |r2 = Attacker current action Attack Type  0x80192da0 + 0x25
0018acb4: 3c038019 lui r3,0x8019                         |
0018acb8: 90632dc2 lbu r3,0x2dc2(r3)                     |r3 = Attacker current action status removal 3  0x80192da0 + 0x22
0018acbc: 34420008 ori r2,r2,0x0008                      |r2 = Attacker current action attack type with status change enabled
0018acc0: 34630010 ori r3,r3,0x0010                      |r3 = Attacker current action status removal 3 with transparent removed
0018acc4: 3c018019 lui r1,0x8019                         |
0018acc8: a0222dc5 sb r2,0x2dc5(r1)                      |Store Updated attack type with status change  0x80192dc5
0018accc: 3c018019 lui r1,0x8019                         |
0018acd0: a0232dc2 sb r3,0x2dc2(r1)                      |Store Transparent removed (on Attacker current action status removal 3)  0x80192dc2
0018acd4: 03e00008 jr r31                  END             
0018acd8: 00000000 nop

Return location

Battle.bin
 0017d0d8: Main_ability_loading_routine?