Difference between revisions of "001ad62c - 001ad824"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
Line 71: Line 71:
 
  001ad73c: 00220821 addu r1,r1,r2
 
  001ad73c: 00220821 addu r1,r1,r2
 
  001ad740: ac208bec sw r0,-0x7414(r1) store 0 in table, in all 4 bytes before next table entry
 
  001ad740: ac208bec sw r0,-0x7414(r1) store 0 in table, in all 4 bytes before next table entry
  001ad744: 28a20010 slti r2,r5,0x0010 set if r5 < 10
+
  001ad744: 28a20010 slti r2,r5,0x0010 set if r5 < 16
  001ad748: 1440ffe7 bne r2,r0,0x001ad6e8 loop 10 times (for all ten possible effects initialised?)
+
  001ad748: 1440ffe7 bne r2,r0,0x001ad6e8 loop 16 times (for all 16 possible targets of 1 ability)
 
  001ad74c: 00002021 addu r4,r0,r0
 
  001ad74c: 00002021 addu r4,r0,r0
 
  001ad750: 3c02801c lui r2,0x801c
 
  001ad750: 3c02801c lui r2,0x801c

Latest revision as of 01:13, 16 October 2022

001ad62c: 27bdffe8 addiu r29,r29,0xffe8
001ad630: 34050001 ori r5,r0,0x0001
001ad634: 34020001 ori r2,r0,0x0001
001ad638: afbf0010 sw r31,0x0010(r29)
001ad63c: 3c01801c lui r1,0x801c
001ad640: a0209279 sb r0,-0x6d87(r1)
001ad644: 3c01801c lui r1,0x801c
001ad648: a0209278 sb r0,-0x6d88(r1)
001ad64c: 3c01801c lui r1,0x801c
001ad650: a022c0d0 sb r2,-0x3f30(r1)
001ad654: 00051040 sll r2,r5,0x01
001ad658: 00451021 addu r2,r2,r5
001ad65c: 24a30001 addiu r3,r5,0x0001
001ad660: 24a4ffff addiu r4,r5,0xffff
001ad664: 00602821 addu r5,r3,r0
001ad668: 00021900 sll r3,r2,0x04
001ad66c: 00431021 addu r2,r2,r3
001ad670: 00021080 sll r2,r2,0x02
001ad674: 3c01801c lui r1,0x801c
001ad678: 00220821 addu r1,r1,r2
001ad67c: a0259278 sb r5,-0x6d88(r1)
001ad680: 3c01801c lui r1,0x801c
001ad684: 00220821 addu r1,r1,r2
001ad688: a0249279 sb r4,-0x6d87(r1)
001ad68c: 28a20020 slti r2,r5,0x0020
001ad690: 1440fff1 bne r2,r0,0x001ad658
001ad694: 00051040 sll r2,r5,0x01
001ad698: 00451021 addu r2,r2,r5
001ad69c: 24a4ffff addiu r4,r5,0xffff
001ad6a0: 34050001 ori r5,r0,0x0001		r5 = 1
001ad6a4: 00021900 sll r3,r2,0x04
001ad6a8: 00431021 addu r2,r2,r3
001ad6ac: 00021080 sll r2,r2,0x02
001ad6b0: 3c01801c lui r1,0x801c
001ad6b4: 00220821 addu r1,r1,r2
001ad6b8: a0209278 sb r0,-0x6d88(r1)
001ad6bc: 3c01801c lui r1,0x801c
001ad6c0: 00220821 addu r1,r1,r2
001ad6c4: a0249279 sb r4,-0x6d87(r1)
001ad6c8: 3c01801c lui r1,0x801c
001ad6cc: a020add8 sb r0,-0x5228(r1)
001ad6d0: 3c01801c lui r1,0x801c
001ad6d4: ac20ad08 sw r0,-0x52f8(r1)
001ad6d8: 3c01801c lui r1,0x801c
001ad6dc: ac20ad04 sw r0,-0x52fc(r1)
001ad6e0: 3c01801c lui r1,0x801c
001ad6e4: ac20ad00 sw r0,-0x5300(r1)
001ad6e8: 00051080 sll r2,r5,0x02
001ad6ec: 00451021 addu r2,r2,r5
001ad6f0: 00021080 sll r2,r2,0x02
001ad6f4: 00451021 addu r2,r2,r5
001ad6f8: 00021080 sll r2,r2,0x02		? * 0x54
001ad6fc: 24a30001 addiu r3,r5,0x0001		r3 = r5 + 1
001ad700: 24a4ffff addiu r4,r5,0xffff		r4 = r5 - 1
001ad704: 3c01801c lui r1,0x801c
001ad708: 00220821 addu r1,r1,r2
001ad70c: a0258b9e sb r5,-0x7462(r1)		store r5 in table + 2
001ad710: 00602821 addu r5,r3,r0		r5 = r5 + 1
001ad714: 3c01801c lui r1,0x801c
001ad718: 00220821 addu r1,r1,r2
001ad71c: a0258b9c sb r5,-0x7464(r1)		store r5 + 1 in table
001ad720: 3c01801c lui r1,0x801c
001ad724: 00220821 addu r1,r1,r2
001ad728: a0248b9d sb r4,-0x7463(r1)		store r5 - 1 in table + 1
001ad72c: 3c01801c lui r1,0x801c
001ad730: 00220821 addu r1,r1,r2
001ad734: a0208b9f sb r0,-0x7461(r1)		store 0 in table + 3
001ad738: 3c01801c lui r1,0x801c
001ad73c: 00220821 addu r1,r1,r2
001ad740: ac208bec sw r0,-0x7414(r1)		store 0 in table, in all 4 bytes before next table entry
001ad744: 28a20010 slti r2,r5,0x0010		set if r5 < 16
001ad748: 1440ffe7 bne r2,r0,0x001ad6e8	loop 16 times (for all 16 possible targets of 1 ability)
001ad74c: 00002021 addu r4,r0,r0
001ad750: 3c02801c lui r2,0x801c
001ad754: 24428b9c addiu r2,r2,0x8b9c		Start of some manually set effects table?
001ad758: 24450030 addiu r5,r2,0x0030		points to 0x30?
001ad75c: a0400000 sb r0,0x0000(r2)		set 0 in first table entry
001ad760: 3402000f ori r2,r0,0x000f
001ad764: 3c01801c lui r1,0x801c
001ad768: a02290dd sb r2,-0x6f23(r1)
001ad76c: 34020010 ori r2,r0,0x0010
001ad770: 3c01801c lui r1,0x801c
001ad774: a02290de sb r2,-0x6f22(r1)
001ad778: 34020001 ori r2,r0,0x0001
001ad77c: 3c01801c lui r1,0x801c
001ad780: a4229134 sh r2,-0x6ecc(r1)
001ad784: 3c02801b lui r2,0x801b
001ad788: 24427690 addiu r2,r2,0x7690
001ad78c: 3c01801c lui r1,0x801c
001ad790: a0208b9d sb r0,-0x7463(r1)
001ad794: 3c01801c lui r1,0x801c
001ad798: a0208b9e sb r0,-0x7462(r1)
001ad79c: 3c01801c lui r1,0x801c
001ad7a0: a0208b9f sb r0,-0x7461(r1)
001ad7a4: 3c01801c lui r1,0x801c
001ad7a8: ac208bec sw r0,-0x7414(r1)
001ad7ac: 3c01801c lui r1,0x801c
001ad7b0: a02090dc sb r0,-0x6f24(r1)
001ad7b4: 3c01801c lui r1,0x801c
001ad7b8: a02090df sb r0,-0x6f21(r1)
001ad7bc: 3c01801c lui r1,0x801c
001ad7c0: ac20912c sw r0,-0x6ed4(r1)
001ad7c4: 3c01801c lui r1,0x801c
001ad7c8: a4209130 sh r0,-0x6ed0(r1)
001ad7cc: 3c01801c lui r1,0x801c
001ad7d0: ac22913c sw r2,-0x6ec4(r1)
001ad7d4: 3c01801c lui r1,0x801c
001ad7d8: 00240821 addu r1,r1,r4
001ad7dc: a4208bc8 sh r0,-0x7438(r1)
001ad7e0: 3403001f ori r3,r0,0x001f
001ad7e4: 24a2001f addiu r2,r5,0x001f
001ad7e8: a0400000 sb r0,0x0000(r2)
001ad7ec: 2463ffff addiu r3,r3,0xffff
001ad7f0: 0461fffd bgez r3,0x001ad7e8
001ad7f4: 2442ffff addiu r2,r2,0xffff
001ad7f8: 24840054 addiu r4,r4,0x0054
001ad7fc: 28820594 slti r2,r4,0x0594
001ad800: 1440fff4 bne r2,r0,0x001ad7d4
001ad804: 24a50054 addiu r5,r5,0x0054
001ad808: 0c06946f jal 0x001a51bc
001ad80c: 00000000 nop
001ad810: 0c06aabf jal 0x001aaafc
001ad814: 00000000 nop
001ad818: 8fbf0010 lw r31,0x0010(r29)
001ad81c: 27bd0018 addiu r29,r29,0x0018
001ad820: 03e00008 jr r31
001ad824: 00000000 nop