Effect Code Script 0x16

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
801a2998: 00802821 addu r5,r4,r0                    #   effectBlock
801a299c: 84a40006 lh r4,0x0006(r5)                 #   effectBlock.offset
801a29a0: 8ca20008 lw r2,0x0008(r5)                 #   effectBlock.basePointer
801a29a4: 84a3001c lh r3,0x001c(r5)                 #   effectBlock.0x1c
801a29a8: 00823021 addu r6,r4,r2                    #   commandPtr = effectBlock.offset + effectBlock.basePointer
801a29ac: 84c20002 lh r2,0x0002(r6)                 #   commandParam1 = *(commandPtr + 2)
801a29b0: 00000000 nop
801a29b4: 14620004 bne r3,r2,0x801a29c8             #   if (effectBlock.0x1c >= commandParam1) {            
801a29b8: 27bdfff8 addiu r29,r29,-0x0008
801a29bc: 94c20004 lhu r2,0x0004(r6)                #       *(commandPtr + 4)
801a29c0: 08068a74 j 0x801a29d0
801a29c4: a4a20006 sh r2,0x0006(r5)                 #       effectBlock.offset = *(commandPtr + 4)
                                                    #   } else {
801a29c8: 24820006 addiu r2,r4,0x0006               #       effectBlock.offset + 6
801a29cc: a4a20006 sh r2,0x0006(r5)                 #       effectBlock.offset = effectBlock.offset + 6
                                                    #   }
801a29d0: 34020001 ori r2,r0,0x0001                 #   return 1;
801a29d4: 27bd0008 addiu r29,r29,0x0008
801a29d8: 03e00008 jr r31
801a29dc: 00000000 nop