Difference between revisions of "Null some Tile Data (192dd9)"
Jump to navigation
Jump to search
m |
m (error correction) |
||
Line 4: | Line 4: | ||
00179404: 3c028019 lui r2,0x8019 |{{f/std|<nowiki>r2 = 0x80190000</nowiki>}} | 00179404: 3c028019 lui r2,0x8019 |{{f/std|<nowiki>r2 = 0x80190000</nowiki>}} | ||
00179408: 244237d3 addiu r2,r2,0x37d3 |{{f/std|<nowiki>r2 = 0x801937d3</nowiki>}} {{f/std|<nowiki>Last panel data pointer in targetable grid</nowiki>}} | 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) {{f/bloop|<nowiki>LOOP</nowiki>}} {{f/store|<nowiki>Store 0x00 at panel | + | 0017940c: a0400001 sb r0,0x0001(r2) {{f/bloop|<nowiki>LOOP</nowiki>}} {{f/store|<nowiki>Store 0x00 at panel 0x01 (targeted flag/green panel) </nowiki>}} |
00179410: 2463ffff addiu r3,r3,-0x0001 |{{f/std|<nowiki>Counter -1</nowiki>}} | 00179410: 2463ffff addiu r3,r3,-0x0001 |{{f/std|<nowiki>Counter -1</nowiki>}} | ||
00179414: 0461fffd bgez r3,0x0017940c {{f/eloop|<nowiki>Loop while r3 > 0x00</nowiki>}} | 00179414: 0461fffd bgez r3,0x0017940c {{f/eloop|<nowiki>Loop while r3 > 0x00</nowiki>}} |
Revision as of 13:23, 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 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: 0017d708_-_0017d84c