Inflicted status CT setting, xfer last used CT

From Final Fantasy Hacktics Wiki
Revision as of 15:06, 29 July 2017 by Pride (talk | contribs) (Fixed Bad Label and a little notes)
Jump to navigation Jump to search
0018e248: 27bdffe0 addiu r29,r29,0xffe0
0018e24c: afb20018 sw r18,0x0018(r29)
0018e250: 00809021 addu r18,r4,r0
0018e254: 001210c0 sll r2,r18,0x03
0018e258: 00521023 subu r2,r2,r18
0018e25c: 00021180 sll r2,r2,0x06
0018e260: 3c038019 lui r3,0x8019
0018e264: 246308cc addiu r3,r3,0x08cc
0018e268: afb10014 sw r17,0x0014(r29)
0018e26c: 00438821 addu r17,r2,r3			r17 = Pointer to Unit Data
0018e270: afb00010 sw r16,0x0010(r29)			
0018e274: 00008021 addu r16,r0,r0			Clear Counter
0018e278: afbf001c sw r31,0x001c(r29)			
0018e27c: 06010002 bgez r16,0x0018e288			
0018e280: 02001021 addu r2,r16,r0				
0018e284: 26020007 addiu r2,r16,0x0007			
0018e288: 000210c3 sra r2,r2,0x03			Counter + 7 / 8
0018e28c: 32040007 andi r4,r16,0x0007			Counter AND x07
0018e290: 34030080 ori r3,r0,0x0080			r3 = x80
0018e294: 02223821 addu r7,r17,r2			Unit Data + Counter + 7 / 8
0018e298: 90e201ac lbu r2,0x01ac(r7)			Load Attacks Status Removal
0018e29c: 00831807 srav r3,r3,r4			Shift x80 against 
0018e2a0: 00431024 and r2,r2,r3				
0018e2a4: 1040000d beq r2,r0,0x0018e2dc			branch if no status removed?
0018e2a8: 02202021 addu r4,r17,r0
0018e2ac: 02002821 addu r5,r16,r0				
0018e2b0: 34060001 ori r6,r0,0x0001
0018e2b4: 90e201bb lbu r2,0x01bb(r7)			load inflicted status list
0018e2b8: 00031827 nor r3,r0,r3
0018e2bc: 00431024 and r2,r2,r3
0018e2c0: 0c0176dc jal 0x0005db70			Status CT setting
0018e2c4: a0e201bb sb r2,0x01bb(r7)			Store Inflicted Status into Unit Data
0018e2c8: 14400004 bne r2,r0,0x0018e2dc		
0018e2cc: 26040001 addiu r4,r16,0x0001			Counter ++ (Move to r4)
0018e2d0: 00002821 addu r5,r0,r0				
0018e2d4: 0c063a6f jal 0x0018e9bc			Determine if status flags can be enabled
0018e2d8: 02403021 addu r6,r18,r0				
0018e2dc: 26100001 addiu r16,r16,0x0001			Counter ++
0018e2e0: 2a020028 slti r2,r16,0x0028			
0018e2e4: 1440ffe5 bne r2,r0,0x0018e27c			Loop 40 times (Check all Status Removal)
0018e2e8: 00000000 nop
0018e2ec: 0c0179d1 jal 0x0005e744			Store Current Statuses
0018e2f0: 02202021 addu r4,r17,r0
0018e2f4: 8fbf001c lw r31,0x001c(r29)
0018e2f8: 8fb20018 lw r18,0x0018(r29)
0018e2fc: 8fb10014 lw r17,0x0014(r29)
0018e300: 8fb00010 lw r16,0x0010(r29)
0018e304: 27bd0020 addiu r29,r29,0x0020
0018e308: 03e00008 jr r31
0018e30c: 00000000 nop