Set Effect Frame Data Pointer

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: SET EFFECT FRAME DATA POINTER
#   Parameters:
#       r4 = (effectID) Effect ID

801a0fa0: 00042400 sll r4,r4,0x10
801a0fa4: 00042383 sra r4,r4,0x0e               #   effectID * 4
801a0fa8: 3c01801b lui r1,0x801b
801a0fac: 00240821 addu r1,r1,r4
801a0fb0: 8c2248d0 lw r2,0x48d0(r1)             #   effectDataPtrs[effectID]
801a0fb4: 00000000 nop
801a0fb8: 8c430000 lw r3,0x0000(r2)             #   effectDataPtrs[effectID].frameDataOffset
801a0fbc: 00000000 nop
801a0fc0: 00431021 addu r2,r2,r3                #   effectDataPtrs[effectID] + effectDataPtrs[effectID].frameDataOffset
801a0fc4: 24420004 addiu r2,r2,0x0004           #   effectDataPtrs[effectID] + effectDataPtrs[effectID].frameDataOffset + 4
801a0fc8: 3c01801c lui r1,0x801c
801a0fcc: ac22bf78 sw r2,-0x4088(r1)            #   *0x801bbf78 = effectDataPtrs[effectID] + effectDataPtrs[effectID].frameDataOffset + 4
801a0fd0: 03e00008 jr r31
801a0fd4: 00000000 nop