Difference between revisions of "001add54 - 001ade78"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
 
  001add54: 27bdffe0 addiu r29,r29,0xffe0
 
  001add54: 27bdffe0 addiu r29,r29,0xffe0
 
  001add58: afb10014 sw r17,0x0014(r29)
 
  001add58: afb10014 sw r17,0x0014(r29)
  001add5c: 00808821 addu r17,r4,r0                    r17 = Preset Value
+
  001add5c: 00808821 addu r17,r4,r0                    r17 = secondary effect
 
  001add60: afb20018 sw r18,0x0018(r29)
 
  001add60: afb20018 sw r18,0x0018(r29)
 
  001add64: 00a09021 addu r18,r5,r0                    r18 = Unit's Palette
 
  001add64: 00a09021 addu r18,r5,r0                    r18 = Unit's Palette
 
  001add68: afb00010 sw r16,0x0010(r29)
 
  001add68: afb00010 sw r16,0x0010(r29)
 
  001add6c: afbf001c sw r31,0x001c(r29)
 
  001add6c: afbf001c sw r31,0x001c(r29)
  001add70: 0c06b60a jal 0x001ad828                    [[001ad828 - 001ad940]]
+
  001add70: 0c06b60a jal 0x001ad828                    [[001ad828 - 001ad940]] - effect related
 
  001add74: 00c08021 addu r16,r6,r0                    r16 = Stack Pointer
 
  001add74: 00c08021 addu r16,r6,r0                    r16 = Stack Pointer
 
  001add78: 304200ff andi r2,r2,0x00ff
 
  001add78: 304200ff andi r2,r2,0x00ff
Line 18: Line 18:
 
  001add90: 3c01801c lui r1,0x801c
 
  001add90: 3c01801c lui r1,0x801c
 
  001add94: 00230821 addu r1,r1,r3
 
  001add94: 00230821 addu r1,r1,r3
  001add98: a4318ba0 sh r17,-0x7460(r1)
+
  001add98: a4318ba0 sh r17,-0x7460(r1) #store secondary effect
 
  001add9c: 3c01801c lui r1,0x801c
 
  001add9c: 3c01801c lui r1,0x801c
 
  001adda0: 00230821 addu r1,r1,r3
 
  001adda0: 00230821 addu r1,r1,r3
  001adda4: 94248ba0 lhu r4,-0x7460(r1)
+
  001adda4: 94248ba0 lhu r4,-0x7460(r1) #load secondary effect
 
  001adda8: 3c01801c lui r1,0x801c
 
  001adda8: 3c01801c lui r1,0x801c
 
  001addac: 00230821 addu r1,r1,r3
 
  001addac: 00230821 addu r1,r1,r3
Line 27: Line 27:
 
  001addb4: 3c01801c lui r1,0x801c
 
  001addb4: 3c01801c lui r1,0x801c
 
  001addb8: 00230821 addu r1,r1,r3
 
  001addb8: 00230821 addu r1,r1,r3
  001addbc: a4328ba2 sh r18,-0x745e(r1)
+
  001addbc: a4328ba2 sh r18,-0x745e(r1) #store unit's palette
 
  001addc0: 00042080 sll r4,r4,0x02
 
  001addc0: 00042080 sll r4,r4,0x02
 
  001addc4: 3c01801c lui r1,0x801c
 
  001addc4: 3c01801c lui r1,0x801c
 
  001addc8: 00240821 addu r1,r1,r4
 
  001addc8: 00240821 addu r1,r1,r4
  001addcc: 902484dc lbu r4,-0x7b24(r1)
+
  001addcc: 902484dc lbu r4,-0x7b24(r1) #load secondary effect's first byte
 
  001addd0: 3c01801c lui r1,0x801c
 
  001addd0: 3c01801c lui r1,0x801c
 
  001addd4: 00230821 addu r1,r1,r3
 
  001addd4: 00230821 addu r1,r1,r3
  001addd8: a0248b9f sb r4,-0x7461(r1)
+
  001addd8: a0248b9f sb r4,-0x7461(r1) #store to effect data
 
  001adddc: 3c04801c lui r4,0x801c
 
  001adddc: 3c04801c lui r4,0x801c
 
  001adde0: 24848bac addiu r4,r4,0x8bac
 
  001adde0: 24848bac addiu r4,r4,0x8bac
 
  001adde4: 00642821 addu r5,r3,r4
 
  001adde4: 00642821 addu r5,r3,r4
 
  001adde8: 8a0600a7 lwl r6,0x00a7(r16)
 
  001adde8: 8a0600a7 lwl r6,0x00a7(r16)
  001addec: 9a0600a4 lwr r6,0x00a4(r16)
+
  001addec: 9a0600a4 lwr r6,0x00a4(r16) #has unit ID
 
  001addf0: 8a0700ab lwl r7,0x00ab(r16)
 
  001addf0: 8a0700ab lwl r7,0x00ab(r16)
 
  001addf4: 9a0700a8 lwr r7,0x00a8(r16)
 
  001addf4: 9a0700a8 lwr r7,0x00a8(r16)
Line 51: Line 51:
 
  001ade14: 00642021 addu r4,r3,r4
 
  001ade14: 00642021 addu r4,r3,r4
 
  001ade18: 8a050007 lwl r5,0x0007(r16)
 
  001ade18: 8a050007 lwl r5,0x0007(r16)
  001ade1c: 9a050004 lwr r5,0x0004(r16)
+
  001ade1c: 9a050004 lwr r5,0x0004(r16) #has positional data of effect if centred on target (otherwise, x=1, y=0)
 
  001ade20: 8a06000b lwl r6,0x000b(r16)
 
  001ade20: 8a06000b lwl r6,0x000b(r16)
  001ade24: 9a060008 lwr r6,0x0008(r16)
+
  001ade24: 9a060008 lwr r6,0x0008(r16) #map height
 
  001ade28: 8607000c lh r7,0x000c(r16)
 
  001ade28: 8607000c lh r7,0x000c(r16)
 
  001ade2c: a8850003 swl r5,0x0003(r4)
 
  001ade2c: a8850003 swl r5,0x0003(r4)
Line 64: Line 64:
 
  001ade48: 3c01801c lui r1,0x801c
 
  001ade48: 3c01801c lui r1,0x801c
 
  001ade4c: 00230821 addu r1,r1,r3
 
  001ade4c: 00230821 addu r1,r1,r3
  001ade50: ac248ba4 sw r4,-0x745c(r1)
+
  001ade50: ac248ba4 sw r4,-0x745c(r1) #initialised?
 
  001ade54: 3c01801c lui r1,0x801c
 
  001ade54: 3c01801c lui r1,0x801c
 
  001ade58: 00230821 addu r1,r1,r3
 
  001ade58: 00230821 addu r1,r1,r3
  001ade5c: ac258bc0 sw r5,-0x7440(r1)
+
  001ade5c: ac258bc0 sw r5,-0x7440(r1) #store weapon type used
 
  001ade60: 8fbf001c lw r31,0x001c(r29)
 
  001ade60: 8fbf001c lw r31,0x001c(r29)
 
  001ade64: 8fb20018 lw r18,0x0018(r29)
 
  001ade64: 8fb20018 lw r18,0x0018(r29)

Latest revision as of 01:16, 16 October 2022

001add54: 27bdffe0 addiu r29,r29,0xffe0
001add58: afb10014 sw r17,0x0014(r29)
001add5c: 00808821 addu r17,r4,r0                    r17 = secondary effect
001add60: afb20018 sw r18,0x0018(r29)
001add64: 00a09021 addu r18,r5,r0                    r18 = Unit's Palette
001add68: afb00010 sw r16,0x0010(r29)
001add6c: afbf001c sw r31,0x001c(r29)
001add70: 0c06b60a jal 0x001ad828                    001ad828 - 001ad940 - effect related
001add74: 00c08021 addu r16,r6,r0                    r16 = Stack Pointer
001add78: 304200ff andi r2,r2,0x00ff
001add7c: 00021880 sll r3,r2,0x02
001add80: 00621821 addu r3,r3,r2
001add84: 00031880 sll r3,r3,0x02
001add88: 00621821 addu r3,r3,r2
001add8c: 00031880 sll r3,r3,0x02
001add90: 3c01801c lui r1,0x801c
001add94: 00230821 addu r1,r1,r3
001add98: a4318ba0 sh r17,-0x7460(r1)			#store secondary effect
001add9c: 3c01801c lui r1,0x801c
001adda0: 00230821 addu r1,r1,r3
001adda4: 94248ba0 lhu r4,-0x7460(r1)			#load secondary effect
001adda8: 3c01801c lui r1,0x801c
001addac: 00230821 addu r1,r1,r3
001addb0: a4208ba8 sh r0,-0x7458(r1)
001addb4: 3c01801c lui r1,0x801c
001addb8: 00230821 addu r1,r1,r3
001addbc: a4328ba2 sh r18,-0x745e(r1)			#store unit's palette
001addc0: 00042080 sll r4,r4,0x02
001addc4: 3c01801c lui r1,0x801c
001addc8: 00240821 addu r1,r1,r4
001addcc: 902484dc lbu r4,-0x7b24(r1)			#load secondary effect's first byte
001addd0: 3c01801c lui r1,0x801c
001addd4: 00230821 addu r1,r1,r3
001addd8: a0248b9f sb r4,-0x7461(r1)			#store to effect data
001adddc: 3c04801c lui r4,0x801c
001adde0: 24848bac addiu r4,r4,0x8bac
001adde4: 00642821 addu r5,r3,r4
001adde8: 8a0600a7 lwl r6,0x00a7(r16)
001addec: 9a0600a4 lwr r6,0x00a4(r16)			#has unit ID
001addf0: 8a0700ab lwl r7,0x00ab(r16)
001addf4: 9a0700a8 lwr r7,0x00a8(r16)
001addf8: 860800ac lh r8,0x00ac(r16)
001addfc: a8a60003 swl r6,0x0003(r5)
001ade00: b8a60000 swr r6,0x0000(r5)
001ade04: a8a70007 swl r7,0x0007(r5)
001ade08: b8a70004 swr r7,0x0004(r5)
001ade0c: a4a80008 sh r8,0x0008(r5)
001ade10: 2484000a addiu r4,r4,0x000a
001ade14: 00642021 addu r4,r3,r4
001ade18: 8a050007 lwl r5,0x0007(r16)
001ade1c: 9a050004 lwr r5,0x0004(r16)			#has positional data of effect if centred on target (otherwise, x=1, y=0)
001ade20: 8a06000b lwl r6,0x000b(r16)
001ade24: 9a060008 lwr r6,0x0008(r16)			#map height
001ade28: 8607000c lh r7,0x000c(r16)
001ade2c: a8850003 swl r5,0x0003(r4)
001ade30: b8850000 swr r5,0x0000(r4)
001ade34: a8860007 swl r6,0x0007(r4)
001ade38: b8860004 swr r6,0x0004(r4)
001ade3c: a4870008 sh r7,0x0008(r4)
001ade40: 960500c6 lhu r5,0x00c6(r16)
001ade44: 34040001 ori r4,r0,0x0001
001ade48: 3c01801c lui r1,0x801c
001ade4c: 00230821 addu r1,r1,r3
001ade50: ac248ba4 sw r4,-0x745c(r1)			#initialised?
001ade54: 3c01801c lui r1,0x801c
001ade58: 00230821 addu r1,r1,r3
001ade5c: ac258bc0 sw r5,-0x7440(r1)			#store weapon type used
001ade60: 8fbf001c lw r31,0x001c(r29)
001ade64: 8fb20018 lw r18,0x0018(r29)
001ade68: 8fb10014 lw r17,0x0014(r29)
001ade6c: 8fb00010 lw r16,0x0010(r29)
001ade70: 27bd0020 addiu r29,r29,0x0020
001ade74: 03e00008 jr r31
001ade78: 00000000 nop