Difference between revisions of "00142d58 - 001433a8"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 00142d58: 3c02801a lui r2,0x801a 00142d5c: 8c42f3ac lw r2,-0x0c54(r2) 00142d60: 3c038016 lui r3,0x8016 00142d64: 94635ff2 lhu r3,0x5ff2(r3) 00...") |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
00142d68: 27bdffd8 addiu r29,r29,0xffd8 | 00142d68: 27bdffd8 addiu r29,r29,0xffd8 | ||
00142d6c: afb00018 sw r16,0x0018(r29) | 00142d6c: afb00018 sw r16,0x0018(r29) | ||
− | 00142d70: 00808021 addu r16,r4,r0 | + | 00142d70: 00808021 addu r16,r4,r0 height display entry pointer? |
00142d74: afb20020 sw r18,0x0020(r29) | 00142d74: afb20020 sw r18,0x0020(r29) | ||
00142d78: afbf0024 sw r31,0x0024(r29) | 00142d78: afbf0024 sw r31,0x0024(r29) | ||
Line 14: | Line 14: | ||
00142d84: ac224048 sw r2,0x4048(r1) | 00142d84: ac224048 sw r2,0x4048(r1) | ||
00142d88: 10600013 beq r3,r0,0x00142dd8 | 00142d88: 10600013 beq r3,r0,0x00142dd8 | ||
− | 00142d8c: 00a09021 addu r18,r5,r0 | + | 00142d8c: 00a09021 addu r18,r5,r0 p2 |
− | 00142d90: 0c0091b5 jal 0x000246d4 | + | 00142d90: 0c0091b5 jal 0x000246d4 [[SYS DrawSync]] <- wait for all "non blocking" functions in queue? probably so it doesn't try to open a file while the DMA is busy. |
− | 00142d94: 00002021 addu r4,r0,r0 | + | 00142d94: 00002021 addu r4,r0,r0 wait & don't return anything. |
− | 00142d98: 27a40010 addiu r4,r29,0x0010 | + | 00142d98: 27a40010 addiu r4,r29,0x0010 *rect |
00142d9c: 3c058001 lui r5,0x8001 | 00142d9c: 3c058001 lui r5,0x8001 | ||
− | 00142da0: 8ca50010 lw r5,0x0010(r5) | + | 00142da0: 8ca50010 lw r5,0x0010(r5) 801df000 |
00142da4: 3c038004 lui r3,0x8004 | 00142da4: 3c038004 lui r3,0x8004 | ||
− | 00142da8: 8c63597c lw r3,0x597c(r3) | + | 00142da8: 8c63597c lw r3,0x597c(r3) "1" at time of break when I investigated. flag? |
00142dac: 34020100 ori r2,r0,0x0100 | 00142dac: 34020100 ori r2,r0,0x0100 | ||
− | 00142db0: a7a20014 sh r2,0x0014(r29) | + | 00142db0: a7a20014 sh r2,0x0014(r29) width = 0x100 |
00142db4: 340200f0 ori r2,r0,0x00f0 | 00142db4: 340200f0 ori r2,r0,0x00f0 | ||
− | 00142db8: a7a00010 sh r0,0x0010(r29) | + | 00142db8: a7a00010 sh r0,0x0010(r29) x = 0 |
− | 00142dbc: a7a20016 sh r2,0x0016(r29) | + | 00142dbc: a7a20016 sh r2,0x0016(r29) height = 0xf0 |
00142dc0: 30630001 andi r3,r3,0x0001 | 00142dc0: 30630001 andi r3,r3,0x0001 | ||
00142dc4: 00031100 sll r2,r3,0x04 | 00142dc4: 00031100 sll r2,r3,0x04 | ||
00142dc8: 00431023 subu r2,r2,r3 | 00142dc8: 00431023 subu r2,r2,r3 | ||
− | 00142dcc: 00021100 sll r2,r2,0x04 | + | 00142dcc: 00021100 sll r2,r2,0x04 0xf0 |
− | 00142dd0: 0c00923f jal 0x000248fc | + | 00142dd0: 0c00923f jal 0x000248fc [[SYS LoadImage]] <- transfer image data at r5 into frame buffer (investigate?) |
− | 00142dd4: a7a20012 sh r2,0x0012(r29) | + | 00142dd4: a7a20012 sh r2,0x0012(r29) y = flag * 0xf0 |
00142dd8: 3c058016 lui r5,0x8016 | 00142dd8: 3c058016 lui r5,0x8016 | ||
− | 00142ddc: 8ca5603c lw r5,0x603c(r5) | + | 00142ddc: 8ca5603c lw r5,0x603c(r5) ? |
00142de0: 3c028016 lui r2,0x8016 | 00142de0: 3c028016 lui r2,0x8016 | ||
− | 00142de4: 8c426014 lw r2,0x6014(r2) | + | 00142de4: 8c426014 lw r2,0x6014(r2) ? |
00142de8: 3c018017 lui r1,0x8017 | 00142de8: 3c018017 lui r1,0x8017 | ||
− | 00142dec: ac303f44 sw r16,0x3f44(r1) | + | 00142dec: ac303f44 sw r16,0x3f44(r1) store height display entry pointer |
00142df0: 000220c0 sll r4,r2,0x03 | 00142df0: 000220c0 sll r4,r2,0x03 | ||
− | 00142df4: 00822023 subu r4,r4,r2 | + | 00142df4: 00822023 subu r4,r4,r2 ? * 0x07 |
− | 00142df8: 00042080 sll r4,r4,0x02 | + | 00142df8: 00042080 sll r4,r4,0x02 ? * 0x0e |
00142dfc: 3c028017 lui r2,0x8017 | 00142dfc: 3c028017 lui r2,0x8017 | ||
00142e00: 24423c34 addiu r2,r2,0x3c34 | 00142e00: 24423c34 addiu r2,r2,0x3c34 | ||
− | 00142e04: 0c04ee9a jal 0x0013ba68 | + | 00142e04: 0c04ee9a jal 0x0013ba68 [[0013ba68 - 0013bb6c]] |
00142e08: 00822021 addu r4,r4,r2 | 00142e08: 00822021 addu r4,r4,r2 | ||
− | 00142e0c: 0c050ea7 jal 0x00143a9c | + | 00142e0c: 0c050ea7 jal 0x00143a9c [[00143a9c - 00143b64]] |
00142e10: 00000000 nop | 00142e10: 00000000 nop | ||
− | 00142e14: 0c04b997 jal 0x0012e65c | + | 00142e14: 0c04b997 jal 0x0012e65c [[0012e65c - 0012e9bc]] |
00142e18: 00000000 nop | 00142e18: 00000000 nop | ||
00142e1c: 3c028017 lui r2,0x8017 | 00142e1c: 3c028017 lui r2,0x8017 | ||
Line 55: | Line 55: | ||
00142e28: 1040004b beq r2,r0,0x00142f58 | 00142e28: 1040004b beq r2,r0,0x00142f58 | ||
00142e2c: 34110001 ori r17,r0,0x0001 | 00142e2c: 34110001 ori r17,r0,0x0001 | ||
− | 00142e30: 0c053325 jal 0x0014cc94 | + | 00142e30: 0c053325 jal 0x0014cc94 [[Check Thread Running Status]] |
− | 00142e34: 02202021 addu r4,r17,r0 | + | 00142e34: 02202021 addu r4,r17,r0 check thread 1 |
00142e38: 14400005 bne r2,r0,0x00142e50 | 00142e38: 14400005 bne r2,r0,0x00142e50 | ||
00142e3c: 34020010 ori r2,r0,0x0010 | 00142e3c: 34020010 ori r2,r0,0x0010 | ||
Line 65: | Line 65: | ||
00142e50: 1622003f bne r17,r2,0x00142f50 | 00142e50: 1622003f bne r17,r2,0x00142f50 | ||
00142e54: 00000000 nop | 00142e54: 00000000 nop | ||
− | 00142e58: 0c050ad7 jal 0x00142b5c | + | 00142e58: 0c050ad7 jal 0x00142b5c [[00142b5c - 00142ba0]] |
00142e5c: 00000000 nop | 00142e5c: 00000000 nop | ||
00142e60: 00408021 addu r16,r2,r0 | 00142e60: 00408021 addu r16,r2,r0 | ||
− | 00142e64: 1200000b beq r16,r0,0x00142e94 | + | 00142e64: 1200000b beq r16,r0,0x00142e94 skip checking credit sequence? |
00142e68: 00000000 nop | 00142e68: 00000000 nop | ||
− | 00142e6c: 0c04ed64 jal 0x0013b590 | + | 00142e6c: 0c04ed64 jal 0x0013b590 [[Get Script Variable]] |
− | 00142e70: 340401fc ori r4,r0,0x01fc | + | 00142e70: 340401fc ori r4,r0,0x01fc get "brave story" record event flag? |
− | 00142e74: 1040000d beq r2,r0,0x00142eac | + | 00142e74: 1040000d beq r2,r0,0x00142eac branch if not brave story re-recording of event |
00142e78: 340401fc ori r4,r0,0x01fc | 00142e78: 340401fc ori r4,r0,0x01fc | ||
00142e7c: 3c018017 lui r1,0x8017 | 00142e7c: 3c018017 lui r1,0x8017 | ||
Line 80: | Line 80: | ||
00142e8c: 08050ce4 j 0x00143390 | 00142e8c: 08050ce4 j 0x00143390 | ||
00142e90: 34020009 ori r2,r0,0x0009 | 00142e90: 34020009 ori r2,r0,0x0009 | ||
+ | |||
00142e94: 3c018017 lui r1,0x8017 | 00142e94: 3c018017 lui r1,0x8017 | ||
00142e98: a420d9c0 sh r0,-0x2640(r1) | 00142e98: a420d9c0 sh r0,-0x2640(r1) | ||
Line 86: | Line 87: | ||
00142ea4: 08050ce4 j 0x00143390 | 00142ea4: 08050ce4 j 0x00143390 | ||
00142ea8: 00001021 addu r2,r0,r0 | 00142ea8: 00001021 addu r2,r0,r0 | ||
− | 00142eac: 0c04ed64 jal 0x0013b590 | + | |
− | 00142eb0: 34040027 ori r4,r0,0x0027 | + | 00142eac: 0c04ed64 jal 0x0013b590 [[Get Script Variable]] |
+ | 00142eb0: 34040027 ori r4,r0,0x0027 get current event | ||
00142eb4: 34030147 ori r3,r0,0x0147 | 00142eb4: 34030147 ori r3,r0,0x0147 | ||
− | 00142eb8: 14430003 bne r2,r3,0x00142ec8 | + | 00142eb8: 14430003 bne r2,r3,0x00142ec8 skip if current event != Reunion & beyond |
00142ebc: 34040027 ori r4,r0,0x0027 | 00142ebc: 34040027 ori r4,r0,0x0027 | ||
− | 00142ec0: 08050ce4 j 0x00143390 | + | 00142ec0: 08050ce4 j 0x00143390 if Reunion & Beyond: Return ? code 0x13 (start credit sequence and movie) |
00142ec4: 34020013 ori r2,r0,0x0013 | 00142ec4: 34020013 ori r2,r0,0x0013 | ||
+ | |||
00142ec8: 32050c00 andi r5,r16,0x0c00 | 00142ec8: 32050c00 andi r5,r16,0x0c00 | ||
00142ecc: 00052883 sra r5,r5,0x02 | 00142ecc: 00052883 sra r5,r5,0x02 | ||
Line 109: | Line 112: | ||
00142f00: 08050ce4 j 0x00143390 | 00142f00: 08050ce4 j 0x00143390 | ||
00142f04: 34020009 ori r2,r0,0x0009 | 00142f04: 34020009 ori r2,r0,0x0009 | ||
+ | |||
00142f08: 16020003 bne r16,r2,0x00142f18 | 00142f08: 16020003 bne r16,r2,0x00142f18 | ||
00142f0c: 34020082 ori r2,r0,0x0082 | 00142f0c: 34020082 ori r2,r0,0x0082 | ||
00142f10: 08050ce4 j 0x00143390 | 00142f10: 08050ce4 j 0x00143390 | ||
00142f14: 3402000a ori r2,r0,0x000a | 00142f14: 3402000a ori r2,r0,0x000a | ||
+ | |||
00142f18: 16020003 bne r16,r2,0x00142f28 | 00142f18: 16020003 bne r16,r2,0x00142f28 | ||
00142f1c: 34040027 ori r4,r0,0x0027 | 00142f1c: 34040027 ori r4,r0,0x0027 | ||
00142f20: 08050ce4 j 0x00143390 | 00142f20: 08050ce4 j 0x00143390 | ||
00142f24: 3402000b ori r2,r0,0x000b | 00142f24: 3402000b ori r2,r0,0x000b | ||
+ | |||
00142f28: 0c04ed91 jal 0x0013b644 | 00142f28: 0c04ed91 jal 0x0013b644 | ||
00142f2c: 00002821 addu r5,r0,r0 | 00142f2c: 00002821 addu r5,r0,r0 | ||
Line 127: | Line 133: | ||
00142f48: 08050ce4 j 0x00143390 | 00142f48: 08050ce4 j 0x00143390 | ||
00142f4c: 34020009 ori r2,r0,0x0009 | 00142f4c: 34020009 ori r2,r0,0x0009 | ||
+ | |||
00142f50: 3c018017 lui r1,0x8017 | 00142f50: 3c018017 lui r1,0x8017 | ||
00142f54: a420d9c0 sh r0,-0x2640(r1) | 00142f54: a420d9c0 sh r0,-0x2640(r1) | ||
Line 216: | Line 223: | ||
001430ac: 3c048015 lui r4,0x8015 | 001430ac: 3c048015 lui r4,0x8015 | ||
001430b0: 8484d08a lh r4,-0x2f76(r4) | 001430b0: 8484d08a lh r4,-0x2f76(r4) | ||
− | 001430b4: 0c077c66 jal 0x001df198 | + | 001430b4: 0c077c66 jal 0x001df198 jobstts.out |
001430b8: 00002821 addu r5,r0,r0 | 001430b8: 00002821 addu r5,r0,r0 | ||
001430bc: 3c018017 lui r1,0x8017 | 001430bc: 3c018017 lui r1,0x8017 | ||
001430c0: ac22d9c4 sw r2,-0x263c(r1) | 001430c0: ac22d9c4 sw r2,-0x263c(r1) | ||
− | 001430c4: 10400007 beq r2,r0,0x001430e4 | + | 001430c4: 10400007 beq r2,r0,0x001430e4 ? |
001430c8: 00402821 addu r5,r2,r0 | 001430c8: 00402821 addu r5,r2,r0 | ||
001430cc: 3c048017 lui r4,0x8017 | 001430cc: 3c048017 lui r4,0x8017 | ||
001430d0: 8c843f44 lw r4,0x3f44(r4) | 001430d0: 8c843f44 lw r4,0x3f44(r4) | ||
− | 001430d4: 0c008efc jal 0x00023bf0 | + | 001430d4: 0c008efc jal 0x00023bf0 [[P07 AddPrims]] |
001430d8: 24a600fc addiu r6,r5,0x00fc | 001430d8: 24a600fc addiu r6,r5,0x00fc | ||
001430dc: 08050c3b j 0x001430ec | 001430dc: 08050c3b j 0x001430ec | ||
001430e0: 00000000 nop | 001430e0: 00000000 nop | ||
+ | |||
001430e4: 3c018016 lui r1,0x8016 | 001430e4: 3c018016 lui r1,0x8016 | ||
001430e8: ac20600c sw r0,0x600c(r1) | 001430e8: ac20600c sw r0,0x600c(r1) | ||
Line 239: | Line 247: | ||
00143108: 3c048015 lui r4,0x8015 | 00143108: 3c048015 lui r4,0x8015 | ||
0014310c: 8484d08a lh r4,-0x2f76(r4) | 0014310c: 8484d08a lh r4,-0x2f76(r4) | ||
− | 00143110: 0c06fdf8 jal 0x001bf7e0 | + | 00143110: 0c06fdf8 jal 0x001bf7e0 equip change |
00143114: 24a50004 addiu r5,r5,0x0004 | 00143114: 24a50004 addiu r5,r5,0x0004 | ||
00143118: 00402821 addu r5,r2,r0 | 00143118: 00402821 addu r5,r2,r0 | ||
Line 253: | Line 261: | ||
00143140: 08050c54 j 0x00143150 | 00143140: 08050c54 j 0x00143150 | ||
00143144: 00000000 nop | 00143144: 00000000 nop | ||
+ | |||
00143148: 3c018016 lui r1,0x8016 | 00143148: 3c018016 lui r1,0x8016 | ||
0014314c: ac20600c sw r0,0x600c(r1) | 0014314c: ac20600c sw r0,0x600c(r1) | ||
Line 277: | Line 286: | ||
001431a0: 1440fff8 bne r2,r0,0x00143184 | 001431a0: 1440fff8 bne r2,r0,0x00143184 | ||
001431a4: 00000000 nop | 001431a4: 00000000 nop | ||
− | 001431a8: 0c0532a0 jal 0x0014ca80 | + | 001431a8: 0c0532a0 jal 0x0014ca80 [[Switch To Next Thread]] |
001431ac: 34110001 ori r17,r0,0x0001 | 001431ac: 34110001 ori r17,r0,0x0001 | ||
001431b0: 34120005 ori r18,r0,0x0005 | 001431b0: 34120005 ori r18,r0,0x0005 | ||
Line 283: | Line 292: | ||
001431b8: 00310821 addu r1,r1,r17 | 001431b8: 00310821 addu r1,r1,r17 | ||
001431bc: 9030dac4 lbu r16,-0x253c(r1) | 001431bc: 9030dac4 lbu r16,-0x253c(r1) | ||
− | 001431c0: 0c053325 jal 0x0014cc94 | + | 001431c0: 0c053325 jal 0x0014cc94 [[Check Thread Running Status]] |
− | 001431c4: 02202021 addu r4,r17,r0 | + | 001431c4: 02202021 addu r4,r17,r0 |
001431c8: 12020003 beq r16,r2,0x001431d8 | 001431c8: 12020003 beq r16,r2,0x001431d8 | ||
001431cc: 26310001 addiu r17,r17,0x0001 | 001431cc: 26310001 addiu r17,r17,0x0001 | ||
Line 299: | Line 308: | ||
001431f8: 3c018016 lui r1,0x8016 | 001431f8: 3c018016 lui r1,0x8016 | ||
001431fc: a4226050 sh r2,0x6050(r1) | 001431fc: a4226050 sh r2,0x6050(r1) | ||
− | 00143200: 0c050e70 jal 0x001439c0 | + | 00143200: 0c050e70 jal 0x001439c0 [[001439c0 - 00143a98]] |
00143204: 00000000 nop | 00143204: 00000000 nop | ||
00143208: 3c028016 lui r2,0x8016 | 00143208: 3c028016 lui r2,0x8016 | ||
Line 336: | Line 345: | ||
0014328c: 08050cc4 j 0x00143310 | 0014328c: 08050cc4 j 0x00143310 | ||
00143290: 00000000 nop | 00143290: 00000000 nop | ||
+ | |||
00143294: 1462000f bne r3,r2,0x001432d4 | 00143294: 1462000f bne r3,r2,0x001432d4 | ||
00143298: 34020005 ori r2,r0,0x0005 | 00143298: 34020005 ori r2,r0,0x0005 | ||
Line 341: | Line 351: | ||
001432a0: 34040001 ori r4,r0,0x0001 | 001432a0: 34040001 ori r4,r0,0x0001 | ||
001432a4: 00002021 addu r4,r0,r0 | 001432a4: 00002021 addu r4,r0,r0 | ||
− | 001432a8: 0c070c64 jal 0x001c3190 | + | 001432a8: 0c070c64 jal 0x001c3190 [[BUNIT.OUT Entrypoint]] |
001432ac: 00002821 addu r5,r0,r0 | 001432ac: 00002821 addu r5,r0,r0 | ||
001432b0: 00408821 addu r17,r2,r0 | 001432b0: 00408821 addu r17,r2,r0 | ||
Line 352: | Line 362: | ||
001432cc: 08050cc4 j 0x00143310 | 001432cc: 08050cc4 j 0x00143310 | ||
001432d0: 00000000 nop | 001432d0: 00000000 nop | ||
+ | |||
001432d4: 1462000e bne r3,r2,0x00143310 | 001432d4: 1462000e bne r3,r2,0x00143310 | ||
001432d8: 00000000 nop | 001432d8: 00000000 nop | ||
Line 367: | Line 378: | ||
00143308: 3c018004 lui r1,0x8004 | 00143308: 3c018004 lui r1,0x8004 | ||
0014330c: ac30597c sw r16,0x597c(r1) | 0014330c: ac30597c sw r16,0x597c(r1) | ||
− | 00143310: 0c04f2f7 jal 0x0013cbdc | + | 00143310: 0c04f2f7 jal 0x0013cbdc |
00143314: 00000000 nop | 00143314: 00000000 nop | ||
00143318: 0c04f2bf jal 0x0013cafc | 00143318: 0c04f2bf jal 0x0013cafc | ||
Line 385: | Line 396: | ||
00143350: 08050ce4 j 0x00143390 | 00143350: 08050ce4 j 0x00143390 | ||
00143354: 00001021 addu r2,r0,r0 | 00143354: 00001021 addu r2,r0,r0 | ||
+ | |||
00143358: 0c053325 jal 0x0014cc94 | 00143358: 0c053325 jal 0x0014cc94 | ||
0014335c: 02202021 addu r4,r17,r0 | 0014335c: 02202021 addu r4,r17,r0 |
Latest revision as of 04:45, 20 December 2024
00142d58: 3c02801a lui r2,0x801a 00142d5c: 8c42f3ac lw r2,-0x0c54(r2) 00142d60: 3c038016 lui r3,0x8016 00142d64: 94635ff2 lhu r3,0x5ff2(r3) 00142d68: 27bdffd8 addiu r29,r29,0xffd8 00142d6c: afb00018 sw r16,0x0018(r29) 00142d70: 00808021 addu r16,r4,r0 height display entry pointer? 00142d74: afb20020 sw r18,0x0020(r29) 00142d78: afbf0024 sw r31,0x0024(r29) 00142d7c: afb1001c sw r17,0x001c(r29) 00142d80: 3c018017 lui r1,0x8017 00142d84: ac224048 sw r2,0x4048(r1) 00142d88: 10600013 beq r3,r0,0x00142dd8 00142d8c: 00a09021 addu r18,r5,r0 p2 00142d90: 0c0091b5 jal 0x000246d4 SYS DrawSync <- wait for all "non blocking" functions in queue? probably so it doesn't try to open a file while the DMA is busy. 00142d94: 00002021 addu r4,r0,r0 wait & don't return anything. 00142d98: 27a40010 addiu r4,r29,0x0010 *rect 00142d9c: 3c058001 lui r5,0x8001 00142da0: 8ca50010 lw r5,0x0010(r5) 801df000 00142da4: 3c038004 lui r3,0x8004 00142da8: 8c63597c lw r3,0x597c(r3) "1" at time of break when I investigated. flag? 00142dac: 34020100 ori r2,r0,0x0100 00142db0: a7a20014 sh r2,0x0014(r29) width = 0x100 00142db4: 340200f0 ori r2,r0,0x00f0 00142db8: a7a00010 sh r0,0x0010(r29) x = 0 00142dbc: a7a20016 sh r2,0x0016(r29) height = 0xf0 00142dc0: 30630001 andi r3,r3,0x0001 00142dc4: 00031100 sll r2,r3,0x04 00142dc8: 00431023 subu r2,r2,r3 00142dcc: 00021100 sll r2,r2,0x04 0xf0 00142dd0: 0c00923f jal 0x000248fc SYS LoadImage <- transfer image data at r5 into frame buffer (investigate?) 00142dd4: a7a20012 sh r2,0x0012(r29) y = flag * 0xf0 00142dd8: 3c058016 lui r5,0x8016 00142ddc: 8ca5603c lw r5,0x603c(r5) ? 00142de0: 3c028016 lui r2,0x8016 00142de4: 8c426014 lw r2,0x6014(r2) ? 00142de8: 3c018017 lui r1,0x8017 00142dec: ac303f44 sw r16,0x3f44(r1) store height display entry pointer 00142df0: 000220c0 sll r4,r2,0x03 00142df4: 00822023 subu r4,r4,r2 ? * 0x07 00142df8: 00042080 sll r4,r4,0x02 ? * 0x0e 00142dfc: 3c028017 lui r2,0x8017 00142e00: 24423c34 addiu r2,r2,0x3c34 00142e04: 0c04ee9a jal 0x0013ba68 0013ba68 - 0013bb6c 00142e08: 00822021 addu r4,r4,r2 00142e0c: 0c050ea7 jal 0x00143a9c 00143a9c - 00143b64 00142e10: 00000000 nop 00142e14: 0c04b997 jal 0x0012e65c 0012e65c - 0012e9bc 00142e18: 00000000 nop 00142e1c: 3c028017 lui r2,0x8017 00142e20: 8442d9c0 lh r2,-0x2640(r2) 00142e24: 00000000 nop 00142e28: 1040004b beq r2,r0,0x00142f58 00142e2c: 34110001 ori r17,r0,0x0001 00142e30: 0c053325 jal 0x0014cc94 Check Thread Running Status 00142e34: 02202021 addu r4,r17,r0 check thread 1 00142e38: 14400005 bne r2,r0,0x00142e50 00142e3c: 34020010 ori r2,r0,0x0010 00142e40: 26310001 addiu r17,r17,0x0001 00142e44: 2a220010 slti r2,r17,0x0010 00142e48: 1440fff9 bne r2,r0,0x00142e30 00142e4c: 34020010 ori r2,r0,0x0010 00142e50: 1622003f bne r17,r2,0x00142f50 00142e54: 00000000 nop 00142e58: 0c050ad7 jal 0x00142b5c 00142b5c - 00142ba0 00142e5c: 00000000 nop 00142e60: 00408021 addu r16,r2,r0 00142e64: 1200000b beq r16,r0,0x00142e94 skip checking credit sequence? 00142e68: 00000000 nop 00142e6c: 0c04ed64 jal 0x0013b590 Get Script Variable 00142e70: 340401fc ori r4,r0,0x01fc get "brave story" record event flag? 00142e74: 1040000d beq r2,r0,0x00142eac branch if not brave story re-recording of event 00142e78: 340401fc ori r4,r0,0x01fc 00142e7c: 3c018017 lui r1,0x8017 00142e80: a420d9c0 sh r0,-0x2640(r1) 00142e84: 0c04ed91 jal 0x0013b644 00142e88: 00002821 addu r5,r0,r0 00142e8c: 08050ce4 j 0x00143390 00142e90: 34020009 ori r2,r0,0x0009
00142e94: 3c018017 lui r1,0x8017 00142e98: a420d9c0 sh r0,-0x2640(r1) 00142e9c: 3c018016 lui r1,0x8016 00142ea0: a4206048 sh r0,0x6048(r1) 00142ea4: 08050ce4 j 0x00143390 00142ea8: 00001021 addu r2,r0,r0
00142eac: 0c04ed64 jal 0x0013b590 Get Script Variable 00142eb0: 34040027 ori r4,r0,0x0027 get current event 00142eb4: 34030147 ori r3,r0,0x0147 00142eb8: 14430003 bne r2,r3,0x00142ec8 skip if current event != Reunion & beyond 00142ebc: 34040027 ori r4,r0,0x0027 00142ec0: 08050ce4 j 0x00143390 if Reunion & Beyond: Return ? code 0x13 (start credit sequence and movie) 00142ec4: 34020013 ori r2,r0,0x0013
00142ec8: 32050c00 andi r5,r16,0x0c00 00142ecc: 00052883 sra r5,r5,0x02 00142ed0: 320200ff andi r2,r16,0x00ff 00142ed4: 0c04ed91 jal 0x0013b644 00142ed8: 00a22825 or r5,r5,r2 00142edc: 3202f300 andi r2,r16,0xf300 00142ee0: 00028203 sra r16,r2,0x08 00142ee4: 34020080 ori r2,r0,0x0080 00142ee8: 3c018017 lui r1,0x8017 00142eec: a420d9c0 sh r0,-0x2640(r1) 00142ef0: 3c018016 lui r1,0x8016 00142ef4: a4206048 sh r0,0x6048(r1) 00142ef8: 16020003 bne r16,r2,0x00142f08 00142efc: 34020081 ori r2,r0,0x0081 00142f00: 08050ce4 j 0x00143390 00142f04: 34020009 ori r2,r0,0x0009
00142f08: 16020003 bne r16,r2,0x00142f18 00142f0c: 34020082 ori r2,r0,0x0082 00142f10: 08050ce4 j 0x00143390 00142f14: 3402000a ori r2,r0,0x000a
00142f18: 16020003 bne r16,r2,0x00142f28 00142f1c: 34040027 ori r4,r0,0x0027 00142f20: 08050ce4 j 0x00143390 00142f24: 3402000b ori r2,r0,0x000b
00142f28: 0c04ed91 jal 0x0013b644 00142f2c: 00002821 addu r5,r0,r0 00142f30: 34040032 ori r4,r0,0x0032 00142f34: 0c04ed91 jal 0x0013b644 00142f38: 00002821 addu r5,r0,r0 00142f3c: 34020004 ori r2,r0,0x0004 00142f40: 3c018004 lui r1,0x8004 00142f44: ac2259dc sw r2,0x59dc(r1) 00142f48: 08050ce4 j 0x00143390 00142f4c: 34020009 ori r2,r0,0x0009
00142f50: 3c018017 lui r1,0x8017 00142f54: a420d9c0 sh r0,-0x2640(r1) 00142f58: 0c04b7e6 jal 0x0012df98 00142f5c: 02402021 addu r4,r18,r0 00142f60: 3c038016 lui r3,0x8016 00142f64: 94635ff6 lhu r3,0x5ff6(r3) 00142f68: 34020002 ori r2,r0,0x0002 00142f6c: 14620010 bne r3,r2,0x00142fb0 00142f70: 00000000 nop 00142f74: 3c028017 lui r2,0x8017 00142f78: 8c4297d0 lw r2,-0x6830(r2) 00142f7c: 3c048017 lui r4,0x8017 00142f80: 248497d0 addiu r4,r4,0x97d0 00142f84: 3c018017 lui r1,0x8017 00142f88: ac22d9b4 sw r2,-0x264c(r1) 00142f8c: 0c050b09 jal 0x00142c24 00142f90: 00000000 nop 00142f94: 3404002a ori r4,r0,0x002a 00142f98: 3c028017 lui r2,0x8017 00142f9c: 8c4297d0 lw r2,-0x6830(r2) 00142fa0: 3c018017 lui r1,0x8017 00142fa4: ac22d9b8 sw r2,-0x2648(r1) 00142fa8: 0c04ed91 jal 0x0013b644 00142fac: 00002821 addu r5,r0,r0 00142fb0: 3c028016 lui r2,0x8016 00142fb4: 94425fde lhu r2,0x5fde(r2) 00142fb8: 00000000 nop 00142fbc: 2c420003 sltiu r2,r2,0x0003 00142fc0: 14400003 bne r2,r0,0x00142fd0 00142fc4: 00000000 nop 00142fc8: 3c018016 lui r1,0x8016 00142fcc: a4205fde sh r0,0x5fde(r1) 00142fd0: 3c028016 lui r2,0x8016 00142fd4: 94425fe0 lhu r2,0x5fe0(r2) 00142fd8: 00000000 nop 00142fdc: 2c420003 sltiu r2,r2,0x0003 00142fe0: 14400006 bne r2,r0,0x00142ffc 00142fe4: 2403ffff addiu r3,r0,0xffff 00142fe8: 34020001 ori r2,r0,0x0001 00142fec: 3c018016 lui r1,0x8016 00142ff0: a4205fe0 sh r0,0x5fe0(r1) 00142ff4: 3c018016 lui r1,0x8016 00142ff8: a422605c sh r2,0x605c(r1) 00142ffc: 3c018017 lui r1,0x8017 00143000: a4234054 sh r3,0x4054(r1) 00143004: 3c018017 lui r1,0x8017 00143008: a4233f68 sh r3,0x3f68(r1) 0014300c: 3c018017 lui r1,0x8017 00143010: a4233f64 sh r3,0x3f64(r1) 00143014: 3c018017 lui r1,0x8017 00143018: a423405c sh r3,0x405c(r1) 0014301c: 3c018017 lui r1,0x8017 00143020: a4233cb4 sh r3,0x3cb4(r1) 00143024: 3c018016 lui r1,0x8016 00143028: a4235fb8 sh r3,0x5fb8(r1) 0014302c: 3c018016 lui r1,0x8016 00143030: a4235fc8 sh r3,0x5fc8(r1) 00143034: 3c018016 lui r1,0x8016 00143038: a4235fca sh r3,0x5fca(r1) 0014303c: 3c038016 lui r3,0x8016 00143040: 8c63600c lw r3,0x600c(r3) 00143044: 2402ffff addiu r2,r0,0xffff 00143048: 3c018017 lui r1,0x8017 0014304c: ac223c9c sw r2,0x3c9c(r1) 00143050: 3c018017 lui r1,0x8017 00143054: ac223f4c sw r2,0x3f4c(r1) 00143058: 3c018017 lui r1,0x8017 0014305c: ac223f50 sw r2,0x3f50(r1) 00143060: 3c018017 lui r1,0x8017 00143064: ac223ca0 sw r2,0x3ca0(r1) 00143068: 3c018017 lui r1,0x8017 0014306c: ac223cac sw r2,0x3cac(r1) 00143070: 3c018017 lui r1,0x8017 00143074: ac223f48 sw r2,0x3f48(r1) 00143078: 3c018016 lui r1,0x8016 0014307c: ac225fb4 sw r2,0x5fb4(r1) 00143080: 3c018016 lui r1,0x8016 00143084: ac225fc0 sw r2,0x5fc0(r1) 00143088: 34020003 ori r2,r0,0x0003 0014308c: 3c018017 lui r1,0x8017 00143090: a420d9bc sh r0,-0x2644(r1) 00143094: 3c018016 lui r1,0x8016 00143098: a4205fe2 sh r0,0x5fe2(r1) 0014309c: 3c018016 lui r1,0x8016 001430a0: a4205fe4 sh r0,0x5fe4(r1) 001430a4: 14620011 bne r3,r2,0x001430ec 001430a8: 00000000 nop 001430ac: 3c048015 lui r4,0x8015 001430b0: 8484d08a lh r4,-0x2f76(r4) 001430b4: 0c077c66 jal 0x001df198 jobstts.out 001430b8: 00002821 addu r5,r0,r0 001430bc: 3c018017 lui r1,0x8017 001430c0: ac22d9c4 sw r2,-0x263c(r1) 001430c4: 10400007 beq r2,r0,0x001430e4 ? 001430c8: 00402821 addu r5,r2,r0 001430cc: 3c048017 lui r4,0x8017 001430d0: 8c843f44 lw r4,0x3f44(r4) 001430d4: 0c008efc jal 0x00023bf0 P07 AddPrims 001430d8: 24a600fc addiu r6,r5,0x00fc 001430dc: 08050c3b j 0x001430ec 001430e0: 00000000 nop
001430e4: 3c018016 lui r1,0x8016 001430e8: ac20600c sw r0,0x600c(r1) 001430ec: 3c038016 lui r3,0x8016 001430f0: 8c63600c lw r3,0x600c(r3) 001430f4: 34020004 ori r2,r0,0x0004 001430f8: 14620015 bne r3,r2,0x00143150 001430fc: 00000000 nop 00143100: 3c058017 lui r5,0x8017 00143104: 8ca53f44 lw r5,0x3f44(r5) 00143108: 3c048015 lui r4,0x8015 0014310c: 8484d08a lh r4,-0x2f76(r4) 00143110: 0c06fdf8 jal 0x001bf7e0 equip change 00143114: 24a50004 addiu r5,r5,0x0004 00143118: 00402821 addu r5,r2,r0 0014311c: 2ca20002 sltiu r2,r5,0x0002 00143120: 3c018017 lui r1,0x8017 00143124: ac25d9c4 sw r5,-0x263c(r1) 00143128: 14400007 bne r2,r0,0x00143148 0014312c: 00000000 nop 00143130: 3c048017 lui r4,0x8017 00143134: 8c843f44 lw r4,0x3f44(r4) 00143138: 0c008efc jal 0x00023bf0 0014313c: 24a600fc addiu r6,r5,0x00fc 00143140: 08050c54 j 0x00143150 00143144: 00000000 nop
00143148: 3c018016 lui r1,0x8016 0014314c: ac20600c sw r0,0x600c(r1) 00143150: 0c04b721 jal 0x0012dc84 00143154: 00000000 nop 00143158: 1440000a bne r2,r0,0x00143184 0014315c: 34110001 ori r17,r0,0x0001 00143160: 3c038017 lui r3,0x8017 00143164: 8c6397d0 lw r3,-0x6830(r3) 00143168: 34020100 ori r2,r0,0x0100 0014316c: 10620005 beq r3,r2,0x00143184 00143170: 00000000 nop 00143174: 10600003 beq r3,r0,0x00143184 00143178: 34020005 ori r2,r0,0x0005 0014317c: 3c018016 lui r1,0x8016 00143180: a4226050 sh r2,0x6050(r1) 00143184: 0c053325 jal 0x0014cc94 00143188: 02202021 addu r4,r17,r0 0014318c: 3c018017 lui r1,0x8017 00143190: 00310821 addu r1,r1,r17 00143194: a022dac4 sb r2,-0x253c(r1) 00143198: 26310001 addiu r17,r17,0x0001 0014319c: 2a220010 slti r2,r17,0x0010 001431a0: 1440fff8 bne r2,r0,0x00143184 001431a4: 00000000 nop 001431a8: 0c0532a0 jal 0x0014ca80 Switch To Next Thread 001431ac: 34110001 ori r17,r0,0x0001 001431b0: 34120005 ori r18,r0,0x0005 001431b4: 3c018017 lui r1,0x8017 001431b8: 00310821 addu r1,r1,r17 001431bc: 9030dac4 lbu r16,-0x253c(r1) 001431c0: 0c053325 jal 0x0014cc94 Check Thread Running Status 001431c4: 02202021 addu r4,r17,r0 001431c8: 12020003 beq r16,r2,0x001431d8 001431cc: 26310001 addiu r17,r17,0x0001 001431d0: 3c018016 lui r1,0x8016 001431d4: a4326050 sh r18,0x6050(r1) 001431d8: 2a220010 slti r2,r17,0x0010 001431dc: 1440fff5 bne r2,r0,0x001431b4 001431e0: 00000000 nop 001431e4: 3c028016 lui r2,0x8016 001431e8: 94426050 lhu r2,0x6050(r2) 001431ec: 00000000 nop 001431f0: 10400003 beq r2,r0,0x00143200 001431f4: 2442ffff addiu r2,r2,0xffff 001431f8: 3c018016 lui r1,0x8016 001431fc: a4226050 sh r2,0x6050(r1) 00143200: 0c050e70 jal 0x001439c0 001439c0 - 00143a98 00143204: 00000000 nop 00143208: 3c028016 lui r2,0x8016 0014320c: 8c426010 lw r2,0x6010(r2) 00143210: 3c038016 lui r3,0x8016 00143214: 8c636014 lw r3,0x6014(r3) 00143218: 24420001 addiu r2,r2,0x0001 0014321c: 24630001 addiu r3,r3,0x0001 00143220: 3c018016 lui r1,0x8016 00143224: ac226010 sw r2,0x6010(r1) 00143228: 3c028016 lui r2,0x8016 0014322c: 94426052 lhu r2,0x6052(r2) 00143230: 30630001 andi r3,r3,0x0001 00143234: 3c018016 lui r1,0x8016 00143238: ac236014 sw r3,0x6014(r1) 0014323c: 10400003 beq r2,r0,0x0014324c 00143240: 2442ffff addiu r2,r2,0xffff 00143244: 3c018016 lui r1,0x8016 00143248: a4226052 sh r2,0x6052(r1) 0014324c: 0c04f69c jal 0x0013da70 00143250: 00000000 nop 00143254: 3c028017 lui r2,0x8017 00143258: 94423c80 lhu r2,0x3c80(r2) 0014325c: 00000000 nop 00143260: 1440004b bne r2,r0,0x00143390 00143264: 00000000 nop 00143268: 3c038016 lui r3,0x8016 0014326c: 8c63600c lw r3,0x600c(r3) 00143270: 34020001 ori r2,r0,0x0001 00143274: 14620007 bne r3,r2,0x00143294 00143278: 34020002 ori r2,r0,0x0002 0014327c: 0c04f33b jal 0x0013ccec 00143280: 00000000 nop 00143284: 3c018016 lui r1,0x8016 00143288: ac20600c sw r0,0x600c(r1) 0014328c: 08050cc4 j 0x00143310 00143290: 00000000 nop
00143294: 1462000f bne r3,r2,0x001432d4 00143298: 34020005 ori r2,r0,0x0005 0014329c: 0c04f680 jal 0x0013da00 001432a0: 34040001 ori r4,r0,0x0001 001432a4: 00002021 addu r4,r0,r0 001432a8: 0c070c64 jal 0x001c3190 BUNIT.OUT Entrypoint 001432ac: 00002821 addu r5,r0,r0 001432b0: 00408821 addu r17,r2,r0 001432b4: 0c02387e jal 0x0008e1f8 001432b8: 02202021 addu r4,r17,r0 001432bc: 3c018015 lui r1,0x8015 001432c0: a431d08a sh r17,-0x2f76(r1) 001432c4: 3c018016 lui r1,0x8016 001432c8: ac20600c sw r0,0x600c(r1) 001432cc: 08050cc4 j 0x00143310 001432d0: 00000000 nop
001432d4: 1462000e bne r3,r2,0x00143310 001432d8: 00000000 nop 001432dc: 0c04f680 jal 0x0013da00 001432e0: 34040001 ori r4,r0,0x0001 001432e4: 34040051 ori r4,r0,0x0051 001432e8: 3c108004 lui r16,0x8004 001432ec: 8e10597c lw r16,0x597c(r16) 001432f0: 0c04ed91 jal 0x0013b644 001432f4: 34050001 ori r5,r0,0x0001 001432f8: 0c06fcee jal 0x001bf3b8 001432fc: 00002021 addu r4,r0,r0 00143300: 3c018016 lui r1,0x8016 00143304: ac20600c sw r0,0x600c(r1) 00143308: 3c018004 lui r1,0x8004 0014330c: ac30597c sw r16,0x597c(r1) 00143310: 0c04f2f7 jal 0x0013cbdc 00143314: 00000000 nop 00143318: 0c04f2bf jal 0x0013cafc 0014331c: 00000000 nop 00143320: 0c050d06 jal 0x00143418 00143324: 00000000 nop 00143328: 0c052a0b jal 0x0014a82c 0014332c: 00000000 nop 00143330: 3c038016 lui r3,0x8016 00143334: 94635ff6 lhu r3,0x5ff6(r3) 00143338: 34020001 ori r2,r0,0x0001 0014333c: 10620014 beq r3,r2,0x00143390 00143340: 00000000 nop 00143344: 34020002 ori r2,r0,0x0002 00143348: 14620003 bne r3,r2,0x00143358 0014334c: 34110001 ori r17,r0,0x0001 00143350: 08050ce4 j 0x00143390 00143354: 00001021 addu r2,r0,r0
00143358: 0c053325 jal 0x0014cc94 0014335c: 02202021 addu r4,r17,r0 00143360: 14400005 bne r2,r0,0x00143378 00143364: 34020010 ori r2,r0,0x0010 00143368: 26310001 addiu r17,r17,0x0001 0014336c: 2a220010 slti r2,r17,0x0010 00143370: 1440fff9 bne r2,r0,0x00143358 00143374: 34020010 ori r2,r0,0x0010 00143378: 16220005 bne r17,r2,0x00143390 0014337c: 34020001 ori r2,r0,0x0001 00143380: 34020001 ori r2,r0,0x0001 00143384: 3c018017 lui r1,0x8017 00143388: a422d9c0 sh r2,-0x2640(r1) 0014338c: 34020001 ori r2,r0,0x0001 00143390: 8fbf0024 lw r31,0x0024(r29) 00143394: 8fb20020 lw r18,0x0020(r29) 00143398: 8fb1001c lw r17,0x001c(r29) 0014339c: 8fb00018 lw r16,0x0018(r29) 001433a0: 27bd0028 addiu r29,r29,0x0028 001433a4: 03e00008 jr r31 001433a8: 00000000 nop