Can Select Target Tile Routine
Jump to navigation
Jump to search
00179d84: 00002821 addu r5,r0,r0 r5 = Tile Counter 00179d88: 3c048019 lui r4,0x8019 00179d8c: 24842dd8 addiu r4,r4,0x2dd8 r4 = Panel Grid 00179d90: 3c038019 lui r3,0x8019 00179d94: 2463f8cc addiu r3,r3,-0x0734 r3 = Tile Data 00179d98: 90620006 lbu r2,0x0006(r3) r2 = Targetable/Selectable 00179d9c: 00000000 nop 00179da0: 30420002 andi r2,r2,0x0002 If Tile is targetable 00179da4: 10400002 beq r2,r0,0x00179db0 Branch if false 00179da8: 24630008 addiu r3,r3,0x0008 Next Tile 00179dac: a0800000 sb r0,0x0000(r4) Remove Tile from Range 00179db0: 24a50001 addiu r5,r5,0x0001 Tile Counter++ 00179db4: 28a20200 slti r2,r5,0x0200 Repeat function 0x0200 times 00179db8: 1440fff7 bne r2,r0,0x00179d98 00179dbc: 24840005 addiu r4,r4,0x0005 Next Tile 00179dc0: 03e00008 jr r31 00179dc4: 00000000 nop