Remove Selection state of all panels

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

Remove Selection state of all panels 17a64c: 0017a64c - 0017a6d8


0017a64c: 00003021 addu r6,r0,r0
0017a650: 00002821 addu r5,r0,r0
0017a654: 3407003f ori r7,r0,0x003f			r7 = (0x3F) 63
0017a658: 3c038019 lui r3,0x8019			
0017a65c: 2463f8cc addiu r3,r3,0xf8cc
0017a660: 3c048019 lui r4,0x8019			
0017a664: 24842dd8 addiu r4,r4,0x2dd8
0017a668: 90820001 lbu r2,0x0001(r4)			Load set to 01 when panel is green (targeted with ability)
0017a66c: 00000000 nop
0017a670: 1040000f beq r2,r0,0x0017a6b0			Branch if set to 01 when panel is green (targeted with ability) == 0x0
0017a674: 00000000 nop
0017a678: 90620006 lbu r2,0x0006(r3)			Load Selectability
0017a67c: 00000000 nop
0017a680: 30420001 andi r2,r2,0x0001			Selectability & 0x1
0017a684: 1440000a bne r2,r0,0x0017a6b0			Branch if Selectability & 0x1 != 0x0
0017a688: 00000000 nop
0017a68c: 90620000 lbu r2,0x0000(r3)			Load Tile Type
0017a690: 00000000 nop
0017a694: 3042003f andi r2,r2,0x003f			Tile Type & 0x3F
0017a698: 10470005 beq r2,r7,0x0017a6b0			Branch if Tile Type & 0x3F == 3F (63)
0017a69c: 00000000 nop
0017a6a0: 90620005 lbu r2,0x0005(r3)			Load Target State
0017a6a4: 24c60001 addiu r6,r6,0x0001
0017a6a8: 0805e9af j 0x0017a6bc			
0017a6ac: 34420040 ori r2,r2,0x0040			r2 = Add 40 to Target State
0017a6b0: 90620005 lbu r2,0x0005(r3)			Load Target State
0017a6b4: 00000000 nop
0017a6b8: 304200bf andi r2,r2,0x00bf			Target State & 0xBF
0017a6bc: a0620005 sb r2,0x0005(r3)			Store Target State
0017a6c0: 24630008 addiu r3,r3,0x0008
0017a6c4: 24a50001 addiu r5,r5,0x0001
0017a6c8: 28a20200 slti r2,r5,0x0200			Set if 0x1 < 512
0017a6cc: 1440ffe6 bne r2,r0,0x0017a668			Branch if so
0017a6d0: 24840005 addiu r4,r4,0x0005			Exception
0017a6d4: 03e00008 jr r31			Jump to Address
0017a6d8: 00c01021 addu r2,r6,r0