001370a4 - 00137b8c
Jump to navigation
Jump to search
001370a4: 27bdfec0 addiu r29,r29,0xfec0 001370a8: afbf013c sw r31,0x013c(r29) 001370ac: afbe0138 sw r30,0x0138(r29) 001370b0: afb70134 sw r23,0x0134(r29) 001370b4: afb60130 sw r22,0x0130(r29) 001370b8: afb5012c sw r21,0x012c(r29) 001370bc: afb40128 sw r20,0x0128(r29) 001370c0: afb30124 sw r19,0x0124(r29) 001370c4: afb20120 sw r18,0x0120(r29) 001370c8: afb1011c sw r17,0x011c(r29) 001370cc: 0c04f15b jal 0x0013c56c 0013c56c - 0013c664 001370d0: afb00118 sw r16,0x0118(r29) 001370d4: 0c052752 jal 0x00149d48 ? 0x149d48 001370d8: 34040015 ori r4,r0,0x0015 001370dc: 0c0237a8 jal 0x0008dea0 0008dea0 - 0008dec4 001370e0: 00000000 nop 001370e4: 3404000a ori r4,r0,0x000a 001370e8: 00002821 addu r5,r0,r0 001370ec: 00003021 addu r6,r0,r0 001370f0: 34020001 ori r2,r0,0x0001 001370f4: 3c018016 lui r1,0x8016 001370f8: a4226048 sh r2,0x6048(r1) 001370fc: 34020002 ori r2,r0,0x0002 00137100: 3c018016 lui r1,0x8016 00137104: ac226060 sw r2,0x6060(r1) 00137108: 0c05328e jal 0x0014ca38 Store event command bytes 0013710c: 34070001 ori r7,r0,0x0001 00137110: 34040008 ori r4,r0,0x0008 00137114: 00002821 addu r5,r0,r0 00137118: 00003021 addu r6,r0,r0 0013711c: 0c05328e jal 0x0014ca38 Store event command bytes 00137120: 34070001 ori r7,r0,0x0001 00137124: 0c050223 jal 0x0014088c 0014088c - 00140904 00137128: 00000000 nop 0013712c: 0c04b73e jal 0x0012dcf8 0012dcf8 - 0012dd08 00137130: 00000000 nop 00137134: 0c0532a0 jal 0x0014ca80 Some event data setting routine 00137138: 00000000 nop 0013713c: 3c028016 lui r2,0x8016 00137140: 94427972 lhu r2,0x7972(r2) 00137144: 00000000 nop 00137148: 2c420002 sltiu r2,r2,0x0002 0013714c: 1440fff9 bne r2,r0,0x00137134 00137150: 00000000 nop 00137154: 0c04b743 jal 0x0012dd0c 0012dd0c - 0012dd18 00137158: 00008821 addu r17,r0,r0 0013715c: 3c148017 lui r20,0x8017 00137160: 269430f8 addiu r20,r20,0x30f8 00137164: 0280f021 addu r30,r20,r0 00137168: 0c04e2b7 jal 0x00138adc 00138adc - 00138b0c 0013716c: 268402a8 addiu r4,r20,0x02a8 00137170: 02802021 addu r4,r20,r0 00137174: 3402001a ori r2,r0,0x001a 00137178: 3c018017 lui r1,0x8017 0013717c: a422864a sh r2,-0x79b6(r1) 00137180: 3c018017 lui r1,0x8017 00137184: a422886e sh r2,-0x7792(r1) 00137188: 0c0529b9 jal 0x0014a6e4 0014a6e4 - 0014a7a4 0013718c: 00002821 addu r5,r0,r0 00137190: 2684000c addiu r4,r20,0x000c 00137194: 0c0529b9 jal 0x0014a6e4 0014a6e4 - 0014a7a4 00137198: 34050002 ori r5,r0,0x0002 0013719c: 26840018 addiu r4,r20,0x0018 001371a0: 0c0529b9 jal 0x0014a6e4 0014a6e4 - 0014a7a4 001371a4: 34050004 ori r5,r0,0x0004 001371a8: 26900204 addiu r16,r20,0x0204 001371ac: 0c008f74 jal 0x00023dd0 00023dd0 - 00023de0 001371b0: 02002021 addu r4,r16,r0 001371b4: 02002021 addu r4,r16,r0 001371b8: 0c008f1a jal 0x00023c68 00023c68 - 00023c8c 001371bc: 34050001 ori r5,r0,0x0001 001371c0: 26840214 addiu r4,r20,0x0214 001371c4: 02002821 addu r5,r16,r0 001371c8: 34060010 ori r6,r0,0x0010 001371cc: 26920224 addiu r18,r20,0x0224 001371d0: 3c028017 lui r2,0x8017 001371d4: 24428a88 addiu r2,r2,0x8a88 001371d8: 00409821 addu r19,r2,r0 001371dc: 34020030 ori r2,r0,0x0030 001371e0: 3c018017 lui r1,0x8017 001371e4: a0223300 sb r2,0x3300(r1) 001371e8: 3c018017 lui r1,0x8017 001371ec: a0223301 sb r2,0x3301(r1) 001371f0: 3c018017 lui r1,0x8017 001371f4: a0223302 sb r2,0x3302(r1) 001371f8: 34020010 ori r2,r0,0x0010 001371fc: 3c018017 lui r1,0x8017 00137200: a4223308 sh r2,0x3308(r1) 00137204: 96670000 lhu r7,0x0000(r19) 00137208: 3c038017 lui r3,0x8017 0013720c: 94638a8a lhu r3,-0x7576(r3) 00137210: 3402005a ori r2,r0,0x005a 00137214: 3c018017 lui r1,0x8017 00137218: a422330a sh r2,0x330a(r1) 0013721c: 24630001 addiu r3,r3,0x0001 00137220: 3c018017 lui r1,0x8017 00137224: a4273304 sh r7,0x3304(r1) 00137228: 3c018017 lui r1,0x8017 0013722c: a4233306 sh r3,0x3306(r1) 00137230: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 00137234: 26900232 addiu r16,r20,0x0232 00137238: 3c028017 lui r2,0x8017 0013723c: 94423304 lhu r2,0x3304(r2) 00137240: 3c038017 lui r3,0x8017 00137244: 94633314 lhu r3,0x3314(r3) 00137248: 24420012 addiu r2,r2,0x0012 0013724c: 2463007c addiu r3,r3,0x007c 00137250: 3c018017 lui r1,0x8017 00137254: a4223304 sh r2,0x3304(r1) 00137258: 3c018017 lui r1,0x8017 0013725c: a4233314 sh r3,0x3314(r1) 00137260: 0c008f79 jal 0x00023de4 00023de4 - 00023df4 00137264: 02402021 addu r4,r18,r0 00137268: 02402021 addu r4,r18,r0 0013726c: 0c008f1a jal 0x00023c68 00023c68 - 00023c8c 00137270: 34050001 ori r5,r0,0x0001 00137274: 3c018017 lui r1,0x8017 00137278: 00310821 addu r1,r1,r17 0013727c: 90228d0c lbu r2,-0x72f4(r1) 00137280: 00000000 nop 00137284: a202fff6 sb r2,-0x000a(r16) 00137288: 3c018017 lui r1,0x8017 0013728c: 00310821 addu r1,r1,r17 00137290: 90228d0d lbu r2,-0x72f3(r1) 00137294: 00000000 nop 00137298: a202fff7 sb r2,-0x0009(r16) 0013729c: 3c018017 lui r1,0x8017 001372a0: 00310821 addu r1,r1,r17 001372a4: 90228d0e lbu r2,-0x72f2(r1) 001372a8: 00000000 nop 001372ac: a202fff8 sb r2,-0x0008(r16) 001372b0: 3c018017 lui r1,0x8017 001372b4: 00310821 addu r1,r1,r17 001372b8: 90228d0f lbu r2,-0x72f1(r1) 001372bc: 96630000 lhu r3,0x0000(r19) 001372c0: 00000000 nop 001372c4: 00431021 addu r2,r2,r3 001372c8: a602fffa sh r2,-0x0006(r16) 001372cc: 3c018017 lui r1,0x8017 001372d0: 00310821 addu r1,r1,r17 001372d4: 90228d10 lbu r2,-0x72f0(r1) 001372d8: 96630002 lhu r3,0x0002(r19) 001372dc: 00000000 nop 001372e0: 00431021 addu r2,r2,r3 001372e4: a602fffc sh r2,-0x0004(r16) 001372e8: 3c018017 lui r1,0x8017 001372ec: 00310821 addu r1,r1,r17 001372f0: 90228d11 lbu r2,-0x72ef(r1) 001372f4: 96630000 lhu r3,0x0000(r19) 001372f8: 26520010 addiu r18,r18,0x0010 001372fc: 00431021 addu r2,r2,r3 00137300: a602fffe sh r2,-0x0002(r16) 00137304: 3c018017 lui r1,0x8017 00137308: 00310821 addu r1,r1,r17 0013730c: 90228d12 lbu r2,-0x72ee(r1) 00137310: 96630002 lhu r3,0x0002(r19) 00137314: 26310007 addiu r17,r17,0x0007 00137318: 00431021 addu r2,r2,r3 0013731c: a6020000 sh r2,0x0000(r16) 00137320: 2a220038 slti r2,r17,0x0038 00137324: 1440ffce bne r2,r0,0x00137260 00137328: 26100010 addiu r16,r16,0x0010 0013732c: 26840024 addiu r4,r20,0x0024 00137330: 3405000c ori r5,r0,0x000c 00137334: 0c04b8ae jal 0x0012e2b8 0012e2b8 - 0012e31c 00137338: 34067d7c ori r6,r0,0x7d7c 0013733c: 26840114 addiu r4,r20,0x0114 00137340: 34050007 ori r5,r0,0x0007 00137344: 0c04b8ae jal 0x0012e2b8 0012e2b8 - 0012e31c 00137348: 34067c3c ori r6,r0,0x7c3c 0013734c: 3c028015 lui r2,0x8015 00137350: 8442d0b0 lh r2,-0x2f50(r2) 00137354: 00000000 nop 00137358: 10400007 beq r2,r0,0x00137378 0013735c: 00000000 nop 00137360: 3c118017 lui r17,0x8017 00137364: 26318ac0 addiu r17,r17,0x8ac0 00137368: 3c108017 lui r16,0x8017 0013736c: 26108ca0 addiu r16,r16,0x8ca0 00137370: 0804dce3 j 0x0013738c 00137374: 02202021 addu r4,r17,r0 00137378: 3c118017 lui r17,0x8017 0013737c: 26318ac0 addiu r17,r17,0x8ac0 00137380: 02202021 addu r4,r17,r0 00137384: 3c108017 lui r16,0x8017 00137388: 26108c70 addiu r16,r16,0x8c70 0013738c: 02002821 addu r5,r16,r0 00137390: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 00137394: 34060018 ori r6,r0,0x0018 00137398: 26240090 addiu r4,r17,0x0090 0013739c: 26120018 addiu r18,r16,0x0018 001373a0: 02402821 addu r5,r18,r0 001373a4: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 001373a8: 34060018 ori r6,r0,0x0018 001373ac: 3c118017 lui r17,0x8017 001373b0: 26318ba4 addiu r17,r17,0x8ba4 001373b4: 02202021 addu r4,r17,r0 001373b8: 02002821 addu r5,r16,r0 001373bc: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 001373c0: 34060018 ori r6,r0,0x0018 001373c4: 26240090 addiu r4,r17,0x0090 001373c8: 02402821 addu r5,r18,r0 001373cc: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 001373d0: 34060018 ori r6,r0,0x0018 001373d4: 3c028015 lui r2,0x8015 001373d8: 8442d0ae lh r2,-0x2f52(r2) 001373dc: 00000000 nop 001373e0: 14400019 bne r2,r0,0x00137448 001373e4: 00008821 addu r17,r0,r0 001373e8: 3c128017 lui r18,0x8017 001373ec: 26528aa8 addiu r18,r18,0x8aa8 001373f0: 34100024 ori r16,r0,0x0024 001373f4: 02902021 addu r4,r20,r16 001373f8: 3c058016 lui r5,0x8016 001373fc: 24a55ea4 addiu r5,r5,0x5ea4 00137400: 3c068017 lui r6,0x8017 00137404: 24c68a88 addiu r6,r6,0x8a88 00137408: 0c052a0d jal 0x0014a834 Image loading setup? (0x14a834) 0013740c: 02403821 addu r7,r18,r0 00137410: 2652000c addiu r18,r18,0x000c 00137414: 26310001 addiu r17,r17,0x0001 00137418: 2a220013 slti r2,r17,0x0013 0013741c: 1440fff5 bne r2,r0,0x001373f4 00137420: 26100014 addiu r16,r16,0x0014 00137424: 0804dd22 j 0x00137488 00137428: 268401a0 addiu r4,r20,0x01a0 0013742c: 3404000a ori r4,r0,0x000a 00137430: 00002821 addu r5,r0,r0 00137434: 00003021 addu r6,r0,r0 00137438: 0c05328e jal 0x0014ca38 Store event command bytes 0013743c: 34070001 ori r7,r0,0x0001 00137440: 0804deae j 0x00137ab8 00137444: 340200aa ori r2,r0,0x00aa 00137448: 3c128017 lui r18,0x8017 0013744c: 26528b8c addiu r18,r18,0x8b8c 00137450: 34100024 ori r16,r0,0x0024 00137454: 02902021 addu r4,r20,r16 00137458: 3c058016 lui r5,0x8016 0013745c: 24a55ea4 addiu r5,r5,0x5ea4 00137460: 3c068017 lui r6,0x8017 00137464: 24c68a88 addiu r6,r6,0x8a88 00137468: 0c052a0d jal 0x0014a834 Image loading setup? (0x14a834) 0013746c: 02403821 addu r7,r18,r0 00137470: 2652000c addiu r18,r18,0x000c 00137474: 26310001 addiu r17,r17,0x0001 00137478: 2a220013 slti r2,r17,0x0013 0013747c: 1440fff5 bne r2,r0,0x00137454 00137480: 26100014 addiu r16,r16,0x0014 00137484: 268401a0 addiu r4,r20,0x01a0 00137488: 34050005 ori r5,r0,0x0005 0013748c: 0c04b8ae jal 0x0012e2b8 0012e2b8 - 0012e31c 00137490: 34067cfc ori r6,r0,0x7cfc 00137494: 00008821 addu r17,r0,r0 00137498: 00009821 addu r19,r0,r0 0013749c: 341201a0 ori r18,r0,0x01a0 001374a0: 02928021 addu r16,r20,r18 001374a4: 02002021 addu r4,r16,r0 *** 001374a8: 3c058016 lui r5,0x8016 001374ac: 24a55eac addiu r5,r5,0x5eac 001374b0: 3c068017 lui r6,0x8017 001374b4: 24c68a88 addiu r6,r6,0x8a88 001374b8: 3c078017 lui r7,0x8017 001374bc: 24e78cd0 addiu r7,r7,0x8cd0 001374c0: 0c052a0d jal 0x0014a834 Image loading setup? (0x14a834) 001374c4: 02673821 addu r7,r19,r7 001374c8: 02002021 addu r4,r16,r0 001374cc: 00111040 sll r2,r17,0x01 001374d0: 3c018015 lui r1,0x8015 001374d4: 00220821 addu r1,r1,r2 001374d8: 8425d0c4 lh r5,-0x2f3c(r1) Load right hand equipment (display data) 001374dc: 2673000c addiu r19,r19,0x000c 001374e0: 26520014 addiu r18,r18,0x0014 001374e4: 0c04dac4 jal 0x00136b10 Get Item Graphic Data 001374e8: 26310001 addiu r17,r17,0x0001 001374ec: 3c158015 lui r21,0x8015 001374f0: 26b5d0c4 addiu r21,r21,0xd0c4 Right hand equipment (display data) 001374f4: 2a220005 slti r2,r17,0x0005 5 equipment slots 001374f8: 1440ffea bne r2,r0,0x001374a4 Branch up to *** (?) 001374fc: 02928021 addu r16,r20,r18 00137500: 0c04bc0b jal 0x0012f02c 0012f02c - 0012f048 00137504: 34040c80 ori r4,r0,0x0c80 00137508: 0040b021 addu r22,r2,r0 0013750c: 02c02021 addu r4,r22,r0 00137510: 0c052fb6 jal 0x0014bed8 0014bed8 - 0014bf50 00137514: 34050c80 ori r5,r0,0x0c80 00137518: 3c108016 lui r16,0x8016 0013751c: 26105fa8 addiu r16,r16,0x5fa8 00137520: 34020050 ori r2,r0,0x0050 00137524: ae020000 sw r2,0x0000(r16) 00137528: 00002021 addu r4,r0,r0 0013752c: 0c0529b3 jal 0x0014a6cc ? 0x14a6cc 00137530: 00002821 addu r5,r0,r0 00137534: 00008821 addu r17,r0,r0 00137538: 2617fffa addiu r23,r16,0xfffa 0013753c: 2610fff8 addiu r16,r16,0xfff8 00137540: 02a09021 addu r18,r21,r0 00137544: 86420000 lh r2,0x0000(r18) 00137548: 96430000 lhu r3,0x0000(r18) 0013754c: 24533800 addiu r19,r2,0x3800 00137550: 3402ffff ori r2,r0,0xffff 00137554: 14620006 bne r3,r2,0x00137570 00137558: 02602021 addu r4,r19,r0 0013755c: 96e20000 lhu r2,0x0000(r23) 00137560: 00000000 nop 00137564: 24420010 addiu r2,r2,0x0010 00137568: 0804dd65 j 0x00137594 0013756c: a6e20000 sh r2,0x0000(r23) 00137570: 02c02821 addu r5,r22,r0 00137574: 0c052cbc jal 0x0014b2f0 Display Menu Text Entry 00137578: 02003021 addu r6,r16,r0 0013757c: 3c028016 lui r2,0x8016 00137580: 94425fa2 lhu r2,0x5fa2(r2) 00137584: 00000000 nop 00137588: 24420010 addiu r2,r2,0x0010 0013758c: 3c018016 lui r1,0x8016 00137590: a4225fa2 sh r2,0x5fa2(r1) 00137594: 26310001 addiu r17,r17,0x0001 00137598: 2a220005 slti r2,r17,0x0005 0013759c: 1440ffe9 bne r2,r0,0x00137544 001375a0: 26520002 addiu r18,r18,0x0002 001375a4: 3c048017 lui r4,0x8017 001375a8: 24848a98 addiu r4,r4,0x8a98 001375ac: 0c00923f jal 0x000248fc ? 0x248fc 001375b0: 02c02821 addu r5,r22,r0 001375b4: 0c0532a0 jal 0x0014ca80 Some event data setting routine 001375b8: 00008821 addu r17,r0,r0 001375bc: 02c02021 addu r4,r22,r0 001375c0: 0c052fb6 jal 0x0014bed8 0014bed8 - 0014bf50 001375c4: 34050c80 ori r5,r0,0x0c80 001375c8: 3c108016 lui r16,0x8016 001375cc: 26105fa8 addiu r16,r16,0x5fa8 001375d0: 34020050 ori r2,r0,0x0050 001375d4: ae020000 sw r2,0x0000(r16) 001375d8: 00002021 addu r4,r0,r0 001375dc: 0c0529b3 jal 0x0014a6cc ? 0x14a6cc 001375e0: 00002821 addu r5,r0,r0 001375e4: 2615fffa addiu r21,r16,0xfffa 001375e8: 2610fff8 addiu r16,r16,0xfff8 001375ec: 3c178015 lui r23,0x8015 001375f0: 26f7d0ce addiu r23,r23,0xd0ce 001375f4: 02e09021 addu r18,r23,r0 001375f8: 3403b000 ori r3,r0,0xb000 001375fc: 86440000 lh r4,0x0000(r18) 00137600: 86e2ffe0 lh r2,-0x0020(r23) 00137604: 00000000 nop 00137608: 10400002 beq r2,r0,0x00137614 0013760c: 00839821 addu r19,r4,r3 00137610: 24937000 addiu r19,r4,0x7000 00137614: 96430000 lhu r3,0x0000(r18) 00137618: 3402ffff ori r2,r0,0xffff 0013761c: 14620006 bne r3,r2,0x00137638 00137620: 02602021 addu r4,r19,r0 00137624: 96a20000 lhu r2,0x0000(r21) 00137628: 00000000 nop 0013762c: 24420010 addiu r2,r2,0x0010 00137630: 0804dd97 j 0x0013765c 00137634: a6a20000 sh r2,0x0000(r21) 00137638: 02c02821 addu r5,r22,r0 0013763c: 0c052cbc jal 0x0014b2f0 Display Menu Text Entry 00137640: 02003021 addu r6,r16,r0 00137644: 3c028016 lui r2,0x8016 00137648: 94425fa2 lhu r2,0x5fa2(r2) 0013764c: 00000000 nop 00137650: 24420010 addiu r2,r2,0x0010 00137654: 3c018016 lui r1,0x8016 00137658: a4225fa2 sh r2,0x5fa2(r1) 0013765c: 26310001 addiu r17,r17,0x0001 00137660: 2a220002 slti r2,r17,0x0002 00137664: 1440ffe4 bne r2,r0,0x001375f8 00137668: 26520002 addiu r18,r18,0x0002 0013766c: 34110002 ori r17,r0,0x0002 00137670: 3c128016 lui r18,0x8016 00137674: 26525fa2 addiu r18,r18,0x5fa2 00137678: 2655fffe addiu r21,r18,0xfffe 0013767c: 3c108015 lui r16,0x8015 00137680: 2610d0d2 addiu r16,r16,0xd0d2 Reaction ability 00137684: 86020000 lh r2,0x0000(r16) 00137688: 96030000 lhu r3,0x0000(r16) Load reaction ability (display data) 0013768c: 24537000 addiu r19,r2,0x7000 00137690: 3402ffff ori r2,r0,0xffff 00137694: 14620006 bne r3,r2,0x001376b0 Branch if present? 00137698: 02602021 addu r4,r19,r0 0013769c: 96420000 lhu r2,0x0000(r18) 001376a0: 00000000 nop 001376a4: 24420010 addiu r2,r2,0x0010 001376a8: 0804ddb5 j 0x001376d4 001376ac: a6420000 sh r2,0x0000(r18) 001376b0: 02c02821 addu r5,r22,r0 001376b4: 0c052cbc jal 0x0014b2f0 Display Menu Text Entry 001376b8: 02a03021 addu r6,r21,r0 001376bc: 3c028016 lui r2,0x8016 001376c0: 94425fa2 lhu r2,0x5fa2(r2) 001376c4: 00000000 nop 001376c8: 24420010 addiu r2,r2,0x0010 001376cc: 3c018016 lui r1,0x8016 001376d0: a4225fa2 sh r2,0x5fa2(r1) 001376d4: 26310001 addiu r17,r17,0x0001 001376d8: 2a220005 slti r2,r17,0x0005 001376dc: 1440ffe9 bne r2,r0,0x00137684 001376e0: 26100002 addiu r16,r16,0x0002 001376e4: 3c038015 lui r3,0x8015 001376e8: 2463d0ae addiu r3,r3,0xd0ae 001376ec: 84620000 lh r2,0x0000(r3) 001376f0: 00000000 nop 001376f4: 10400011 beq r2,r0,0x0013773c 001376f8: 3405008c ori r5,r0,0x008c 001376fc: 00008821 addu r17,r0,r0 00137700: 3406ffff ori r6,r0,0xffff 00137704: 24640020 addiu r4,r3,0x0020 00137708: 94820000 lhu r2,0x0000(r4) 0013770c: 00000000 nop 00137710: 14460006 bne r2,r6,0x0013772c 00137714: 24840002 addiu r4,r4,0x0002 00137718: 02851821 addu r3,r20,r5 0013771c: 9462002c lhu r2,0x002c(r3) 00137720: 00000000 nop 00137724: 2442fe00 addiu r2,r2,0xfe00 00137728: a462002c sh r2,0x002c(r3) 0013772c: 26310001 addiu r17,r17,0x0001 00137730: 2a220005 slti r2,r17,0x0005 00137734: 1440fff4 bne r2,r0,0x00137708 00137738: 24a50014 addiu r5,r5,0x0014 0013773c: 3c048017 lui r4,0x8017 00137740: 24848aa0 addiu r4,r4,0x8aa0 00137744: 0c00923f jal 0x000248fc ? 0x248fc 00137748: 02c02821 addu r5,r22,r0 0013774c: 0c0532a0 jal 0x0014ca80 Some event data setting routine 00137750: 00000000 nop 00137754: 0c04bc13 jal 0x0012f04c ? 0x12f04c 00137758: 02c02021 addu r4,r22,r0 0013775c: 27c402d0 addiu r4,r30,0x02d0 00137760: 02802821 addu r5,r20,r0 00137764: 0c052fd5 jal 0x0014bf54 Copy Bytes (0x14bf54) 00137768: 340602d0 ori r6,r0,0x02d0 0013776c: 3c108017 lui r16,0x8017 00137770: 26108a88 addiu r16,r16,0x8a88 00137774: 02002021 addu r4,r16,r0 00137778: 0000b021 addu r22,r0,r0 0013777c: 27a20010 addiu r2,r29,0x0010 00137780: afc202a4 sw r2,0x02a4(r30) 00137784: 8fc502a4 lw r5,0x02a4(r30) 00137788: 3c028017 lui r2,0x8017 0013778c: 2442d16c addiu r2,r2,0xd16c 00137790: 0c04bc43 jal 0x0012f10c 0012f10c - 0012f35c 00137794: afc20574 sw r2,0x0574(r30) 00137798: 8fc50574 lw r5,0x0574(r30) 0013779c: 0c04bc43 jal 0x0012f10c 0012f10c - 0012f35c 001377a0: 02002021 addu r4,r16,r0 001377a4: 3c058013 lui r5,0x8013 001377a8: 24a56d34 addiu r5,r5,0x6d34 001377ac: 0c053228 jal 0x0014c8a0 Some event data setting routine 001377b0: 3404000a ori r4,r0,0x000a 001377b4: 3404000a ori r4,r0,0x000a 001377b8: 00002821 addu r5,r0,r0 001377bc: 00003021 addu r6,r0,r0 001377c0: 0c05328e jal 0x0014ca38 001377c4: 00003821 addu r7,r0,r0 001377c8: 0c0532a0 jal 0x0014ca80 Some event data setting routine 001377cc: 00000000 nop 001377d0: 0c0532a0 jal 0x0014ca80 Some event data setting routine 001377d4: 00000000 nop 001377d8: 32c20001 andi r2,r22,0x0001 001377dc: 00021840 sll r3,r2,0x01 001377e0: 00621821 addu r3,r3,r2 001377e4: 00031100 sll r2,r3,0x04 001377e8: 00431023 subu r2,r2,r3 001377ec: 00021100 sll r2,r2,0x04 001377f0: 03c2a021 addu r20,r30,r2 001377f4: 268402a8 addiu r4,r20,0x02a8 001377f8: 3c058017 lui r5,0x8017 001377fc: 24a58a90 addiu r5,r5,0x8a90 00137800: 3c078004 lui r7,0x8004 00137804: 8ce7597c lw r7,0x597c(r7) 00137808: 0c04e243 jal 0x0013890c 0013890c - 00138ad8 0013780c: 02c03021 addu r6,r22,r0 00137810: 3c028016 lui r2,0x8016 00137814: 8c426028 lw r2,0x6028(r2) 00137818: 00000000 nop 0013781c: 1440000a bne r2,r0,0x00137848 00137820: 00008821 addu r17,r0,r0 00137824: 3c028016 lui r2,0x8016 00137828: 8c42602c lw r2,0x602c(r2) 0013782c: 00000000 nop 00137830: 14400005 bne r2,r0,0x00137848 00137834: 00000000 nop 00137838: 0c05330a jal 0x0014cc28 0014cc28 - 0014cc58 0013783c: 00000000 nop 00137840: 1440009d bne r2,r0,0x00137ab8 00137844: 340200aa ori r2,r0,0x00aa 00137848: 3c048017 lui r4,0x8017 0013784c: 8c844038 lw r4,0x4038(r4) 00137850: 0c053325 jal 0x0014cc94 Check Thread Running Status 00137854: 2484ffff addiu r4,r4,0xffff 00137858: 00409821 addu r19,r2,r0 0013785c: 00132840 sll r5,r19,0x01 00137860: 3c048017 lui r4,0x8017 00137864: 24848d44 addiu r4,r4,0x8d44 00137868: 02801821 addu r3,r20,r0 0013786c: 00a41021 addu r2,r5,r4 00137870: 24840004 addiu r4,r4,0x0004 00137874: 94420000 lhu r2,0x0000(r2) 00137878: 26310001 addiu r17,r17,0x0001 0013787c: a4620032 sh r2,0x0032(r3) 00137880: 2a220013 slti r2,r17,0x0013 00137884: 1440fff9 bne r2,r0,0x0013786c 00137888: 24630014 addiu r3,r3,0x0014 0013788c: 00008821 addu r17,r0,r0 00137890: 34150040 ori r21,r0,0x0040 00137894: 341201a0 ori r18,r0,0x01a0 00137898: 02808021 addu r16,r20,r0 0013789c: 12600008 beq r19,r0,0x001378c0 001378a0: 02922021 addu r4,r20,r18 001378a4: 0c008f24 jal 0x00023c90 00023c90 - 00023cb4 001378a8: 00002821 addu r5,r0,r0 001378ac: 34020080 ori r2,r0,0x0080 001378b0: a21501a4 sb r21,0x01a4(r16) 001378b4: a21501a5 sb r21,0x01a5(r16) 001378b8: 0804de32 j 0x001378c8 001378bc: a20201a6 sb r2,0x01a6(r16) 001378c0: 0c008f24 jal 0x00023c90 00023c90 - 00023cb4 001378c4: 34050001 ori r5,r0,0x0001 001378c8: 26520014 addiu r18,r18,0x0014 001378cc: 26310001 addiu r17,r17,0x0001 001378d0: 2a220005 slti r2,r17,0x0005 001378d4: 1440fff1 bne r2,r0,0x0013789c 001378d8: 26100014 addiu r16,r16,0x0014 001378dc: 16600006 bne r19,r0,0x001378f8 001378e0: 00000000 nop 001378e4: 8e8402a4 lw r4,0x02a4(r20) 001378e8: 0c04bcf3 jal 0x0012f3cc 0012f3cc - 0012f450 001378ec: 00000000 nop 001378f0: 0804de41 j 0x00137904 001378f4: 00000000 nop 001378f8: 8e8402a4 lw r4,0x02a4(r20) 001378fc: 0c04bd15 jal 0x0012f454 0012f454 - 0012f4dc 00137900: 00000000 nop 00137904: 0c04dee6 jal 0x00137b98 00137b90 - 00137c0c 00137908: 00000000 nop 0013790c: 1040002c beq r2,r0,0x001379c0 00137910: 00000000 nop 00137914: 3c038017 lui r3,0x8017 00137918: 8c6397d0 lw r3,-0x6830(r3) 0013791c: 00000000 nop 00137920: 30620040 andi r2,r3,0x0040 00137924: 1440fec1 bne r2,r0,0x0013742c 00137928: 30620020 andi r2,r3,0x0020 0013792c: 10400024 beq r2,r0,0x001379c0 00137930: 00000000 nop 00137934: 0c053325 jal 0x0014cc94 Check Thread Running Status 00137938: 34040003 ori r4,r0,0x0003 0013793c: 14400020 bne r2,r0,0x001379c0 00137940: 00000000 nop 00137944: 3c048015 lui r4,0x8015 00137948: 8484d08a lh r4,-0x2f76(r4) 0013794c: 0c04cf26 jal 0x00133c98 Has Status Effect (For Status Window) 00137950: 00000000 nop 00137954: 1440000b bne r2,r0,0x00137984 Branch if unit has a status effect 00137958: 00000000 nop 0013795c: 3c028015 lui r2,0x8015 00137960: 8442d0ae lh r2,-0x2f52(r2) Load primary skillset 00137964: 00000000 nop 00137968: 14400015 bne r2,r0,0x001379c0 Branch if 0 0013796c: 34020001 ori r2,r0,0x0001 00137970: 3c038015 lui r3,0x8015 00137974: 8463d03a lh r3,-0x2fc6(r3) 00137978: 00000000 nop 0013797c: 10620010 beq r3,r2,0x001379c0 00137980: 00000000 nop 00137984: 3c048017 lui r4,0x8017 00137988: 8c844038 lw r4,0x4038(r4) number of abilities found? 0013798c: 3c058013 lui r5,0x8013 00137990: 24a53cec addiu r5,r5,0x3cec 00137994: 0c053228 jal 0x0014c8a0 Initialize Thread 00137998: 2484ffff addiu r4,r4,0xffff 0013799c: 00003021 addu r6,r0,r0 001379a0: 00003821 addu r7,r0,r0 001379a4: 3c048017 lui r4,0x8017 001379a8: 8c844038 lw r4,0x4038(r4) number of abilities found? 001379ac: 3c058017 lui r5,0x8017 001379b0: 8ca53cb8 lw r5,0x3cb8(r5) pointer to 166b10 (start of some data (skillset/ability loading)) 001379b4: 2484ffff addiu r4,r4,0xffff 001379b8: 0c05328e jal 0x0014ca38 Store event command bytes 001379bc: 24a501e0 addiu r5,r5,0x01e0 001379c0: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 001379c4: 268402b4 addiu r4,r20,0x02b4 001379c8: 00008821 addu r17,r0,r0 001379cc: 34100024 ori r16,r0,0x0024 001379d0: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 001379d4: 02902021 addu r4,r20,r16 001379d8: 26310001 addiu r17,r17,0x0001 001379dc: 2a22000c slti r2,r17,0x000c 001379e0: 1440fffb bne r2,r0,0x001379d0 001379e4: 26100014 addiu r16,r16,0x0014 001379e8: 3411000e ori r17,r0,0x000e 001379ec: 3410013c ori r16,r0,0x013c 001379f0: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 001379f4: 02902021 addu r4,r20,r16 001379f8: 26310001 addiu r17,r17,0x0001 001379fc: 2a220013 slti r2,r17,0x0013 00137a00: 1440fffb bne r2,r0,0x001379f0 00137a04: 26100014 addiu r16,r16,0x0014 00137a08: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a0c: 02802021 addu r4,r20,r0 00137a10: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a14: 26840114 addiu r4,r20,0x0114 00137a18: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a1c: 26840128 addiu r4,r20,0x0128 00137a20: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a24: 2684000c addiu r4,r20,0x000c 00137a28: 00008821 addu r17,r0,r0 00137a2c: 3413ffff ori r19,r0,0xffff 00137a30: 341201a0 ori r18,r0,0x01a0 00137a34: 3c108015 lui r16,0x8015 00137a38: 2610d0c4 addiu r16,r16,0xd0c4 Right hand equipment (display data) 00137a3c: 96020000 lhu r2,0x0000(r16) 00137a40: 00000000 nop 00137a44: 10530003 beq r2,r19,0x00137a54 Branch if doesn't exist 00137a48: 26100002 addiu r16,r16,0x0002 00137a4c: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a50: 02922021 addu r4,r20,r18 00137a54: 26310001 addiu r17,r17,0x0001 00137a58: 2a220005 slti r2,r17,0x0005 00137a5c: 1440fff7 bne r2,r0,0x00137a3c 00137a60: 26520014 addiu r18,r18,0x0014 00137a64: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a68: 26840018 addiu r4,r20,0x0018 00137a6c: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a70: 26840204 addiu r4,r20,0x0204 00137a74: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a78: 26840214 addiu r4,r20,0x0214 00137a7c: 00008821 addu r17,r0,r0 00137a80: 34100224 ori r16,r0,0x0224 00137a84: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137a88: 02902021 addu r4,r20,r16 00137a8c: 26310001 addiu r17,r17,0x0001 00137a90: 2a220008 slti r2,r17,0x0008 00137a94: 1440fffb bne r2,r0,0x00137a84 00137a98: 26100010 addiu r16,r16,0x0010 00137a9c: 8e8402a4 lw r4,0x02a4(r20) 00137aa0: 0c04bcd8 jal 0x0012f360 0012f360 - 0012f3c8 00137aa4: 26d60001 addiu r22,r22,0x0001 00137aa8: 0c05297a jal 0x0014a5e8 Image Loading Setup (0x14a5e8) 00137aac: 268402a8 addiu r4,r20,0x02a8 00137ab0: 0804ddf4 j 0x001377d0 00137ab4: 00000000 nop 00137ab8: 3c018017 lui r1,0x8017 00137abc: a422864a sh r2,-0x79b6(r1) 00137ac0: 3c018017 lui r1,0x8017 00137ac4: a422886e sh r2,-0x7792(r1) 00137ac8: 34020001 ori r2,r0,0x0001 00137acc: 3c018016 lui r1,0x8016 00137ad0: ac226060 sw r2,0x6060(r1) 00137ad4: 34020006 ori r2,r0,0x0006 00137ad8: 3c018016 lui r1,0x8016 00137adc: a422796e sh r2,0x796e(r1) 00137ae0: 0c04b74c jal 0x0012dd30 0012dd30 - 0012dd40 00137ae4: 00000000 nop 00137ae8: 0c0532a0 jal 0x0014ca80 Some event data setting routine 00137aec: 00000000 nop 00137af0: 3c028016 lui r2,0x8016 00137af4: 9442796e lhu r2,0x796e(r2) 00137af8: 00000000 nop 00137afc: 1440fffa bne r2,r0,0x00137ae8 00137b00: 00000000 nop 00137b04: 3c058013 lui r5,0x8013 00137b08: 24a54438 addiu r5,r5,0x4438 00137b0c: 0c053228 jal 0x0014c8a0 Some event data setting routine 00137b10: 3404000a ori r4,r0,0x000a 00137b14: 3404000a ori r4,r0,0x000a 00137b18: 00002821 addu r5,r0,r0 00137b1c: 00003021 addu r6,r0,r0 00137b20: 0c05328e jal 0x0014ca38 Store event command bytes 00137b24: 00003821 addu r7,r0,r0 00137b28: 34020010 ori r2,r0,0x0010 00137b2c: 3c018017 lui r1,0x8017 00137b30: ac22c0b8 sw r2,-0x3f48(r1) 00137b34: 3c018016 lui r1,0x8016 00137b38: a4206048 sh r0,0x6048(r1) 00137b3c: 0c0237b2 jal 0x0008dec8 0008dec8 - 0008ded4 00137b40: 00000000 nop 00137b44: 3c048016 lui r4,0x8016 00137b48: 8c845f84 lw r4,0x5f84(r4) 00137b4c: 0c04f3d6 jal 0x0013cf58 menu Routine 00137b50: 00000000 nop 00137b54: 0c053256 jal 0x0014c958 Stop Current Thread 00137b58: 00000000 nop 00137b5c: 8fbf013c lw r31,0x013c(r29) 00137b60: 8fbe0138 lw r30,0x0138(r29) 00137b64: 8fb70134 lw r23,0x0134(r29) 00137b68: 8fb60130 lw r22,0x0130(r29) 00137b6c: 8fb5012c lw r21,0x012c(r29) 00137b70: 8fb40128 lw r20,0x0128(r29) 00137b74: 8fb30124 lw r19,0x0124(r29) 00137b78: 8fb20120 lw r18,0x0120(r29) 00137b7c: 8fb1011c lw r17,0x011c(r29) 00137b80: 8fb00118 lw r16,0x0118(r29) 00137b84: 27bd0140 addiu r29,r29,0x0140 00137b88: 03e00008 jr r31 00137b8c: 00000000 nop