Null some Tile Data (192dd9)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
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 0x01 (targeted flag/green panel) 
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: Select_Random_Tile_For_Random_Fire_Abilities