Difference between revisions of "Clear targeting panel data"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 0017ded0: 00002021 addu r4,r0,r0 0017ded4: 3c038019 lui r3,0x8019 0017ded8: 24632dd8 addiu r3,r3,0x2dd8 start of some table 0017dedc: a0600000...") |
m (Nyzer moved page Clear targeting panel data? to Clear targeting panel data: Fucking question marks) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | '''BATTLE.BIN''' : - Clear targeting panel data? | |
− | + | Clear AoE Byte and Green Flag Byte in the whole Targetable grid (0x80192dd8) | |
− | 0017ded0: 00002021 addu r4,r0,r0 | + | ------------------------------------------------------------------------------------------ |
− | 0017ded4: 3c038019 lui r3,0x8019 | + | Parameter : Nothing |
− | 0017ded8: 24632dd8 addiu r3,r3,0x2dd8 | + | Return : Nothing |
− | 0017dedc: a0600000 sb r0,0x0000(r3) | + | ------------------------------------------------------------------------------------------ |
− | 0017dee0: a0600001 sb r0,0x0001(r3) | + | 0017ded0: 00002021 addu r4,r0,r0 |{{f/std|Initialize Tile counter}} |
− | 0017dee4: 24840001 addiu r4,r4,0x0001 | + | 0017ded4: 3c038019 lui r3,0x8019 | |
− | 0017dee8: 28820200 slti r2,r4,0x0200 | + | 0017ded8: 24632dd8 addiu r3,r3,0x2dd8 |{{f/adr|Dynamic pointer to Targetable grid data}} |
− | 0017deec: 1440fffb bne r2,r0,0x0017dedc | + | {{f/bloop|LOOP - Clear bytes 0x00 and 0x01 in the whole table}} |
− | 0017def0: 24630005 addiu r3,r3,0x0005 | + | 0017dedc: a0600000 sb r0,0x0000(r3) |{{f/store|Initialize Byte 0x00 (AoE value)}} {{f/std|Max at the center, 0x01 at the edges}} |
+ | 0017dee0: a0600001 sb r0,0x0001(r3) |{{f/store|Turn Green Flag OFF}} | ||
+ | 0017dee4: 24840001 addiu r4,r4,0x0001 |{{f/std|Counter +1}} | ||
+ | 0017dee8: 28820200 slti r2,r4,0x0200 | | ||
+ | 0017deec: 1440fffb bne r2,r0,0x0017dedc {{f/Cond|Loop 0x200 Times}} | ||
+ | 0017def0: 24630005 addiu r3,r3,0x0005 |{{f/std|Add tile's offset in Targetable grid (0x5 for each tile)}} | ||
0017def4: 03e00008 jr r31 | 0017def4: 03e00008 jr r31 | ||
0017def8: 00000000 nop | 0017def8: 00000000 nop | ||
− | + | '''BATTLE.BIN''' | |
+ | 00179f40: [[Set_Jump_Ability_Targeting]] | ||
+ | 0017a1ac: [[Calculate_ability_range_with_map_parameters%3F]] | ||
+ | 0017a574: [[Set_targeting_for_weapon_attack_2]] |
Latest revision as of 00:32, 21 December 2024
BATTLE.BIN : - Clear targeting panel data? Clear AoE Byte and Green Flag Byte in the whole Targetable grid (0x80192dd8) ------------------------------------------------------------------------------------------ Parameter : Nothing Return : Nothing ------------------------------------------------------------------------------------------ 0017ded0: 00002021 addu r4,r0,r0 |Initialize Tile counter 0017ded4: 3c038019 lui r3,0x8019 | 0017ded8: 24632dd8 addiu r3,r3,0x2dd8 |Dynamic pointer to Targetable grid data @LOOP - Clear bytes 0x00 and 0x01 in the whole table 0017dedc: a0600000 sb r0,0x0000(r3) |Initialize Byte 0x00 (AoE value) Max at the center, 0x01 at the edges 0017dee0: a0600001 sb r0,0x0001(r3) |Turn Green Flag OFF 0017dee4: 24840001 addiu r4,r4,0x0001 |Counter +1 0017dee8: 28820200 slti r2,r4,0x0200 | 0017deec: 1440fffb bne r2,r0,0x0017dedc #Loop 0x200 Times 0017def0: 24630005 addiu r3,r3,0x0005 |Add tile's offset in Targetable grid (0x5 for each tile) 0017def4: 03e00008 jr r31 0017def8: 00000000 nop BATTLE.BIN 00179f40: Set_Jump_Ability_Targeting 0017a1ac: Calculate_ability_range_with_map_parameters? 0017a574: Set_targeting_for_weapon_attack_2