Chose Move from Move List

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

Chose Move from Move List? 197e60: 00197e60 - 00197f10

 	00195878: AI Ability Data Setting
 	0019af18: 0019af18 - 0019b308

 00197e60: 3c02801a lui r2,0x801a			
 00197e64: 90420d7b lbu r2,0x0d7b(r2)			Load usage type
 00197e68: 27bdffe8 addiu r29,r29,0xffe8			
 00197e6c: afb00010 sw r16,0x0010(r29)			
 00197e70: 3c10801a lui r16,0x801a			
 00197e74: 2610f3c4 addiu r16,r16,0xf3c4
 00197e78: 14400013 bne r2,r0,0x00197ec8			Branch if usage type != 0x0
 00197e7c: afbf0014 sw r31,0x0014(r29)			
 00197e80: 3c01801a lui r1,0x801a			
 00197e84: a0200081 sb r0,0x0081(r1)			
 00197e88: 92030e2f lbu r3,0x0e2f(r16)			Load acting unit ID
 00197e8c: 00000000 nop
 00197e90: 00031100 sll r2,r3,0x04			
 00197e94: 00431021 addu r2,r2,r3
 00197e98: 000210c0 sll r2,r2,0x03			
 00197e9c: 24420ef0 addiu r2,r2,0x0ef0
 00197ea0: 92030cbd lbu r3,0x0cbd(r16)			Load Chosen Move ID
 00197ea4: 02021021 addu r2,r16,r2			r2 = unit move list
 00197ea8: 00031880 sll r3,r3,0x02			
 00197eac: 00432021 addu r4,r2,r3
 00197eb0: 90830002 lbu r3,0x0002(r4)			Load Move's Skillset
 00197eb4: 340200ff ori r2,r0,0x00ff			
 00197eb8: 10620011 beq r3,r2,0x00197f00			Branch if  == FF 
 00197ebc: 00001021 addu r2,r0,r0
 00197ec0: 0c06561e jal 0x00195878			AI Ability Data Setting
 00197ec4: 00000000 nop
 00197ec8: 0c066bc6 jal 0x0019af18			0019af18 - 0019b308
 00197ecc: 00000000 nop
 00197ed0: 2403ffff addiu r3,r0,0xffff
 00197ed4: 1043000a beq r2,r3,0x00197f00			branch if move is chosen?
 00197ed8: 2402ffff addiu r2,r0,0xffff
 00197edc: 92020cbd lbu r2,0x0cbd(r16)			Load Chosen Move ID
 00197ee0: 00000000 nop
 00197ee4: 24420001 addiu r2,r2,0x0001
 00197ee8: a2020cbd sb r2,0x0cbd(r16)			Store new Move ID
 00197eec: 92020cbd lbu r2,0x0cbd(r16)			
 00197ef0: 00000000 nop
 00197ef4: 2c420022 sltiu r2,r2,0x0022			
 00197ef8: 1440ffe3 bne r2,r0,0x00197e88			Do for all moves
 00197efc: 00001021 addu r2,r0,r0

 00197f00: 8fbf0014 lw r31,0x0014(r29)			
 00197f04: 8fb00010 lw r16,0x0010(r29)			
 00197f08: 27bd0018 addiu r29,r29,0x0018			
 00197f0c: 03e00008 jr r31			
 00197f10: 00000000 nop