Difference between revisions of "Null some Tile Data (192dd9)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Null some Tile Data (192dd9) 00179400: 340301ff ori r3,r0,0x01ff Counter = 0x1ff 00179404: 3c028019 lui r2,0x8019 00179408: 244237d3 addiu r2,r2,0x37d3 0017940c: a04000...")
 
m
Line 1: Line 1:
 
+
Loop backward from 0x801937d3 to 0x80192dd8 through all panels from the targetable grid, setting all the AoE flags to 0x00
  Null some Tile Data (192dd9)
+
   
  00179400: 340301ff ori r3,r0,0x01ff Counter = 0x1ff
+
  00179400: 340301ff ori r3,r0,0x01ff         |{{f/std|<nowiki>r3 = 0x1ff</nowiki>}}
  00179404: 3c028019 lui r2,0x8019
+
  00179404: 3c028019 lui r2,0x8019           |{{f/std|<nowiki>r2 = 0x80190000</nowiki>}}
  00179408: 244237d3 addiu r2,r2,0x37d3
+
  00179408: 244237d3 addiu r2,r2,0x37d3       |{{f/std|<nowiki>r2 = 0x801937d3</nowiki>}} {{f/std|<nowiki>Last panel data pointer in targetable grid</nowiki>}}
  0017940c: a0400001 sb r0,0x0001(r2) Store ? = 0
+
  0017940c: a0400001 sb r0,0x0001(r2)         {{f/bloop|<nowiki>LOOP</nowiki>}} {{f/store|<nowiki>Store 0x00 at panel AoE </nowiki>}}
  00179410: 2463ffff addiu r3,r3,0xffff Counter --
+
  00179410: 2463ffff addiu r3,r3,-0x0001          |{{f/std|<nowiki>Counter -1</nowiki>}}
  00179414: 0461fffd bgez r3,0x 0017940c Branch if Counter >= 0
+
  00179414: 0461fffd bgez r3,0x0017940c      {{f/eloop|<nowiki>Loop while r3 > 0x00</nowiki>}}
  00179418: 2442fffb addiu r2,r2,0xfffb Pointer -= 5
+
  00179418: 2442fffb addiu r2,r2,0xfffb           |{{f/std|<nowiki>r2 = Panel data pointer offset (0x05 is the size of panel data)</nowiki>}}
  0017941c: 03e00008 jr r31
+
  0017941c: 03e00008 jr r31                   END
 
  00179420: 00000000 nop
 
  00179420: 00000000 nop
 +
=== Return locations ===
 +
'''Battle.bin'''
 +
00178aec: [[0017813c_-_00178ca0]]
 +
0017954c: [[Calculate_Tiles_Hit_by_Ability]] 
 +
0017d838: [[0017d708_-_0017d84c]]

Revision as of 13:19, 5 February 2022

Loop backward from 0x801937d3 to 0x80192dd8 through all panels from the targetable grid, setting all the AoE flags to 0x00

00179400: 340301ff ori r3,r0,0x01ff         |r3 = 0x1ff
00179404: 3c028019 lui r2,0x8019            |r2 = 0x80190000
00179408: 244237d3 addiu r2,r2,0x37d3       |r2 = 0x801937d3 Last panel data pointer in targetable grid
0017940c: a0400001 sb r0,0x0001(r2)         @LOOP Store 0x00 at panel AoE 
00179410: 2463ffff addiu r3,r3,-0x0001           |Counter -1
00179414: 0461fffd bgez r3,0x0017940c       Λ Loop while r3 > 0x00
00179418: 2442fffb addiu r2,r2,0xfffb            |r2 = Panel data pointer offset (0x05 is the size of panel data)
0017941c: 03e00008 jr r31                   END
00179420: 00000000 nop

Return locations

Battle.bin
00178aec: 0017813c_-_00178ca0
0017954c: Calculate_Tiles_Hit_by_Ability  
0017d838: 0017d708_-_0017d84c