Difference between revisions of "0013c028 - 0013c12c"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0013c028: 27bdffd8 addiu r29,r29,0xffd8 0013c02c: 34020004 ori r2,r0,0x0004 0013c030: afbf0020 sw r31,0x0020(r29) 0013c034: afb1001c sw r17,0x0...")
 
m
 
Line 8: Line 8:
 
  0013c03c: 3c018016 lui r1,0x8016
 
  0013c03c: 3c018016 lui r1,0x8016
 
  0013c040: a422604a sh r2,0x604a(r1)
 
  0013c040: a422604a sh r2,0x604a(r1)
  0013c044: 0c0532a0 jal 0x0014ca80
+
  0013c044: 0c0532a0 jal 0x0014ca80                 [[Switch To Next Thread]]
 
  0013c048: 00000000 nop
 
  0013c048: 00000000 nop
  0013c04c: 0c053325 jal 0x0014cc94
+
  0013c04c: 0c053325 jal 0x0014cc94                 [[Check Thread Running Status]]
  0013c050: 34040006 ori r4,r0,0x0006
+
  0013c050: 34040006 ori r4,r0,0x0006               check thread 6
 
  0013c054: 1440fffb bne r2,r0,0x0013c044
 
  0013c054: 1440fffb bne r2,r0,0x0013c044
 
  0013c058: 34020002 ori r2,r0,0x0002
 
  0013c058: 34020002 ori r2,r0,0x0002
Line 18: Line 18:
 
  0013c064: 3c018016 lui r1,0x8016
 
  0013c064: 3c018016 lui r1,0x8016
 
  0013c068: ac20602c sw r0,0x602c(r1)
 
  0013c068: ac20602c sw r0,0x602c(r1)
  0013c06c: 0c053216 jal 0x0014c858
+
  0013c06c: 0c053216 jal 0x0014c858                 [[Switch To Next Thread Multiple Times]]
  0013c070: 34040001 ori r4,r0,0x0001
+
  0013c070: 34040001 ori r4,r0,0x0001               once
 
  0013c074: 3c028016 lui r2,0x8016
 
  0013c074: 3c028016 lui r2,0x8016
 
  0013c078: 8c42600c lw r2,0x600c(r2)
 
  0013c078: 8c42600c lw r2,0x600c(r2)
Line 25: Line 25:
 
  0013c080: 1440fffa bne r2,r0,0x0013c06c
 
  0013c080: 1440fffa bne r2,r0,0x0013c06c
 
  0013c084: 00000000 nop
 
  0013c084: 00000000 nop
  0013c088: 0c04eefb jal 0x0013bbec
+
  0013c088: 0c04eefb jal 0x0013bbec                 [[0013bbec - 0013bc10]] call [[C52 Free]]
 
  0013c08c: 34100002 ori r16,r0,0x0002
 
  0013c08c: 34100002 ori r16,r0,0x0002
  0013c090: 02002021 addu r4,r16,r0
+
  0013c090: 02002021 addu r4,r16,r0                 i == 2
 
  0013c094: 00002821 addu r5,r0,r0
 
  0013c094: 00002821 addu r5,r0,r0
 
  0013c098: 00003021 addu r6,r0,r0
 
  0013c098: 00003021 addu r6,r0,r0
  0013c09c: 0c05328e jal 0x0014ca38
+
  0013c09c: 0c05328e jal 0x0014ca38                 [[Store Thread Function Parameters]] Thread(ID == i++, 0, 0, 1)
 
  0013c0a0: 34070001 ori r7,r0,0x0001
 
  0013c0a0: 34070001 ori r7,r0,0x0001
 
  0013c0a4: 26100001 addiu r16,r16,0x0001
 
  0013c0a4: 26100001 addiu r16,r16,0x0001
 
  0013c0a8: 2a02000f slti r2,r16,0x000f
 
  0013c0a8: 2a02000f slti r2,r16,0x000f
  0013c0ac: 1440fff9 bne r2,r0,0x0013c094
+
  0013c0ac: 1440fff9 bne r2,r0,0x0013c094           i < 0xf
 
  0013c0b0: 02002021 addu r4,r16,r0
 
  0013c0b0: 02002021 addu r4,r16,r0
 
  0013c0b4: 00008021 addu r16,r0,r0
 
  0013c0b4: 00008021 addu r16,r0,r0
Line 40: Line 40:
 
  0013c0bc: 02301023 subu r2,r17,r16
 
  0013c0bc: 02301023 subu r2,r17,r16
 
  0013c0c0: 3c018016 lui r1,0x8016
 
  0013c0c0: 3c018016 lui r1,0x8016
  0013c0c4: ac22603c sw r2,0x603c(r1)
+
  0013c0c4: ac22603c sw r2,0x603c(r1)              
  0013c0c8: 0c0532a0 jal 0x0014ca80
+
  0013c0c8: 0c0532a0 jal 0x0014ca80                 [[Switch To Next Thread]]
 
  0013c0cc: 26100008 addiu r16,r16,0x0008
 
  0013c0cc: 26100008 addiu r16,r16,0x0008
 
  0013c0d0: 2a020100 slti r2,r16,0x0100
 
  0013c0d0: 2a020100 slti r2,r16,0x0100
  0013c0d4: 1440fffa bne r2,r0,0x0013c0c0
+
  0013c0d4: 1440fffa bne r2,r0,0x0013c0c0           loop for 100/8 threads
 
  0013c0d8: 02301023 subu r2,r17,r16
 
  0013c0d8: 02301023 subu r2,r17,r16
  0013c0dc: 0c04b743 jal 0x0012dd0c
+
  0013c0dc: 0c04b743 jal 0x0012dd0c                 [[0012dd0c - 0012dd18]]
 
  0013c0e0: 00000000 nop
 
  0013c0e0: 00000000 nop
 
  0013c0e4: 34040002 ori r4,r0,0x0002
 
  0013c0e4: 34040002 ori r4,r0,0x0002
Line 57: Line 57:
 
  0013c100: 3c018016 lui r1,0x8016
 
  0013c100: 3c018016 lui r1,0x8016
 
  0013c104: a420604a sh r0,0x604a(r1)
 
  0013c104: a420604a sh r0,0x604a(r1)
  0013c108: 0c04f58d jal 0x0013d634
+
  0013c108: 0c04f58d jal 0x0013d634                 [[Store unit names and some event block data]]
 
  0013c10c: 340600ff ori r6,r0,0x00ff
 
  0013c10c: 340600ff ori r6,r0,0x00ff
  0013c110: 0c053256 jal 0x0014c958
+
  0013c110: 0c053256 jal 0x0014c958                 [[Stop Current Thread]]
 
  0013c114: 00000000 nop
 
  0013c114: 00000000 nop
 
  0013c118: 8fbf0020 lw r31,0x0020(r29)
 
  0013c118: 8fbf0020 lw r31,0x0020(r29)

Latest revision as of 06:16, 28 April 2024

0013c028: 27bdffd8 addiu r29,r29,0xffd8
0013c02c: 34020004 ori r2,r0,0x0004
0013c030: afbf0020 sw r31,0x0020(r29)
0013c034: afb1001c sw r17,0x001c(r29)
0013c038: afb00018 sw r16,0x0018(r29)
0013c03c: 3c018016 lui r1,0x8016
0013c040: a422604a sh r2,0x604a(r1)
0013c044: 0c0532a0 jal 0x0014ca80                 Switch To Next Thread
0013c048: 00000000 nop
0013c04c: 0c053325 jal 0x0014cc94                 Check Thread Running Status
0013c050: 34040006 ori r4,r0,0x0006               check thread 6
0013c054: 1440fffb bne r2,r0,0x0013c044
0013c058: 34020002 ori r2,r0,0x0002
0013c05c: 3c018016 lui r1,0x8016
0013c060: ac22600c sw r2,0x600c(r1)
0013c064: 3c018016 lui r1,0x8016
0013c068: ac20602c sw r0,0x602c(r1)
0013c06c: 0c053216 jal 0x0014c858                 Switch To Next Thread Multiple Times
0013c070: 34040001 ori r4,r0,0x0001               once
0013c074: 3c028016 lui r2,0x8016
0013c078: 8c42600c lw r2,0x600c(r2)
0013c07c: 00000000 nop
0013c080: 1440fffa bne r2,r0,0x0013c06c
0013c084: 00000000 nop
0013c088: 0c04eefb jal 0x0013bbec                 0013bbec - 0013bc10 call C52 Free
0013c08c: 34100002 ori r16,r0,0x0002
0013c090: 02002021 addu r4,r16,r0                 i == 2
0013c094: 00002821 addu r5,r0,r0
0013c098: 00003021 addu r6,r0,r0
0013c09c: 0c05328e jal 0x0014ca38                 Store Thread Function Parameters Thread(ID == i++, 0, 0, 1)
0013c0a0: 34070001 ori r7,r0,0x0001
0013c0a4: 26100001 addiu r16,r16,0x0001
0013c0a8: 2a02000f slti r2,r16,0x000f
0013c0ac: 1440fff9 bne r2,r0,0x0013c094           i < 0xf
0013c0b0: 02002021 addu r4,r16,r0
0013c0b4: 00008021 addu r16,r0,r0
0013c0b8: 341100ff ori r17,r0,0x00ff
0013c0bc: 02301023 subu r2,r17,r16
0013c0c0: 3c018016 lui r1,0x8016
0013c0c4: ac22603c sw r2,0x603c(r1)               
0013c0c8: 0c0532a0 jal 0x0014ca80                 Switch To Next Thread
0013c0cc: 26100008 addiu r16,r16,0x0008
0013c0d0: 2a020100 slti r2,r16,0x0100
0013c0d4: 1440fffa bne r2,r0,0x0013c0c0           loop for 100/8 threads
0013c0d8: 02301023 subu r2,r17,r16
0013c0dc: 0c04b743 jal 0x0012dd0c                 0012dd0c - 0012dd18
0013c0e0: 00000000 nop
0013c0e4: 34040002 ori r4,r0,0x0002
0013c0e8: 3c058015 lui r5,0x8015
0013c0ec: 84a5d08a lh r5,-0x2f76(r5)
0013c0f0: 3c018016 lui r1,0x8016
0013c0f4: a4206048 sh r0,0x6048(r1)
0013c0f8: 3c018016 lui r1,0x8016
0013c0fc: ac20603c sw r0,0x603c(r1)
0013c100: 3c018016 lui r1,0x8016
0013c104: a420604a sh r0,0x604a(r1)
0013c108: 0c04f58d jal 0x0013d634                 Store unit names and some event block data
0013c10c: 340600ff ori r6,r0,0x00ff
0013c110: 0c053256 jal 0x0014c958                 Stop Current Thread
0013c114: 00000000 nop
0013c118: 8fbf0020 lw r31,0x0020(r29)
0013c11c: 8fb1001c lw r17,0x001c(r29)
0013c120: 8fb00018 lw r16,0x0018(r29)
0013c124: 27bd0028 addiu r29,r29,0x0028
0013c128: 03e00008 jr r31
0013c12c: 00000000 nop