Difference between revisions of "Effect code script 03"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (removed font)
Line 1: Line 1:
  001a2280: 27bdffe0 addiu r29,r29,0xffe0
+
  001a22f8: 27bdffe8 addiu r29,r29,0xffe8
  001a2284: afb10014 sw r17,0x0014(r29)
+
  001a22fc: afb00010 sw r16,0x0010(r29)
  001a2288: 00808821 addu r17,r4,r0
+
  001a2300: 00808021 addu r16,r4,r0 #effect temp data
  001a228c: afbf0018 sw r31,0x0018(r29)
+
  001a2304: afbf0014 sw r31,0x0014(r29)
  001a2290: afb00010 sw r16,0x0010(r29)
+
  001a2308: 86020006 lh r2,0x0006(r16)
001a2294: 86220006 lh r2,0x0006(r17) load counter
+
  001a230c: 8e030008 lw r3,0x0008(r16)
  001a2298: 8e240008 lw r4,0x0008(r17) load address
+
  001a2310: 00000000 nop
  001a229c: 3c06801c lui r6,0x801c
+
  001a2314: 00431021 addu r2,r2,r3
  001a22a0: 84c6f004 lh r6,-0x0ffc(r6) load ??
+
  001a2318: 90420001 lbu r2,0x0001(r2) #arg1
001a22a4: 00441021 addu r2,r2,r4
+
  001a231c: 00000000 nop
  001a22a8: 90500001 lbu r16,0x0001(r2) load 0xff00 of current half
+
  001a2320: 000210c2 srl r2,r2,0x03
  001a22ac: 84450002 lh r5,0x0002(r2) load next half
+
  001a2324: 30420006 andi r2,r2,0x0006 #separate out 0x03 * 2
  001a22b0: 0c06883a jal 0x001a20e8
+
  001a2328: 00501021 addu r2,r2,r16 #
  001a22b4: 00108102 srl r16,r16,0x04
+
  001a232c: 8444000c lh r4,0x000c(r2) #load 0xc + arg1 * 2 (next effect phase?)
  001a22b8: 00401821 addu r3,r2,r0
+
001a2330: 00000000 nop
  001a22bc: 2a020004 slti r2,r16,0x0004
+
  001a2334: 10800003 beq r4,r0,0x001a2344 #branch if 0
  001a22c0: 10400003 beq r2,r0,0x001a22d0
+
  001a2338: 00000000 nop
  001a22c4: 00101040 sll r2,r16,0x01
+
  001a233c: 0c068767 jal 0x001a1d9c #[[Clear some data in temp effect data]] (increment to desired phase?)
  001a22c8: 00511021 addu r2,r2,r17
+
  001a2340: 00000000 nop
  001a22cc: a443000c sh r3,0x000c(r2)
+
  001a2344: 96020006 lhu r2,0x0006(r16)
  001a22d0: 96230006 lhu r3,0x0006(r17)
+
  001a2348: 00000000 nop
  001a22d4: 34020001 ori r2,r0,0x0001
+
  001a234c: 24420002 addiu r2,r2,0x0002
  001a22d8: 24630004 addiu r3,r3,0x0004
+
  001a2350: a6020006 sh r2,0x0006(r16) #store counter + 2
  001a22dc: a6230006 sh r3,0x0006(r17)
+
  001a2354: 34020001 ori r2,r0,0x0001 #return execute next instruction immediately
  001a22e0: 8fbf0018 lw r31,0x0018(r29)
+
  001a2358: 8fbf0014 lw r31,0x0014(r29)
  001a22e4: 8fb10014 lw r17,0x0014(r29)
+
  001a235c: 8fb00010 lw r16,0x0010(r29)
  001a22e8: 8fb00010 lw r16,0x0010(r29)
+
  001a2360: 27bd0018 addiu r29,r29,0x0018
  001a22ec: 27bd0020 addiu r29,r29,0x0020
+
  001a2364: 03e00008 jr r31
  001a22f0: 03e00008 jr r31
+
  001a2368: 00000000 nop
  001a22f4: 00000000 nop
 

Revision as of 01:15, 24 May 2025

001a22f8: 27bdffe8 addiu r29,r29,0xffe8
001a22fc: afb00010 sw r16,0x0010(r29)
001a2300: 00808021 addu r16,r4,r0			#effect temp data
001a2304: afbf0014 sw r31,0x0014(r29)
001a2308: 86020006 lh r2,0x0006(r16)
001a230c: 8e030008 lw r3,0x0008(r16)
001a2310: 00000000 nop
001a2314: 00431021 addu r2,r2,r3
001a2318: 90420001 lbu r2,0x0001(r2)			#arg1
001a231c: 00000000 nop
001a2320: 000210c2 srl r2,r2,0x03
001a2324: 30420006 andi r2,r2,0x0006			#separate out 0x03 * 2
001a2328: 00501021 addu r2,r2,r16			#
001a232c: 8444000c lh r4,0x000c(r2)			#load 0xc + arg1 * 2 (next effect phase?)
001a2330: 00000000 nop
001a2334: 10800003 beq r4,r0,0x001a2344		#branch if 0
001a2338: 00000000 nop
001a233c: 0c068767 jal 0x001a1d9c			#Clear some data in temp effect data (increment to desired phase?)
001a2340: 00000000 nop
001a2344: 96020006 lhu r2,0x0006(r16)
001a2348: 00000000 nop
001a234c: 24420002 addiu r2,r2,0x0002
001a2350: a6020006 sh r2,0x0006(r16)			#store counter + 2
001a2354: 34020001 ori r2,r0,0x0001			#return execute next instruction immediately
001a2358: 8fbf0014 lw r31,0x0014(r29)
001a235c: 8fb00010 lw r16,0x0010(r29)
001a2360: 27bd0018 addiu r29,r29,0x0018
001a2364: 03e00008 jr r31
001a2368: 00000000 nop