001a4838 - 001a4c40
Jump to navigation
Jump to search
001a4838: 3c02801c lui r2,0x801c 001a483c: 8c42c0c8 lw r2,-0x3f38(r2) load misc timed data 001a4840: 27bdffb8 addiu r29,r29,0xffb8 001a4844: afb60040 sw r22,0x0040(r29) 001a4848: 0080b021 addu r22,r4,r0 temp. effect data 001a484c: afbf0044 sw r31,0x0044(r29) 001a4850: afb5003c sw r21,0x003c(r29) 001a4854: afb40038 sw r20,0x0038(r29) 001a4858: afb30034 sw r19,0x0034(r29) 001a485c: afb20030 sw r18,0x0030(r29) 001a4860: afb1002c sw r17,0x002c(r29) 001a4864: afb00028 sw r16,0x0028(r29) 001a4868: 86c30028 lh r3,0x0028(r22) load timer 001a486c: 94420004 lhu r2,0x0004(r2) timing data start timer? 001a4870: 00000000 nop 001a4874: 0062182a slt r3,r3,r2 001a4878: 1460002e bne r3,r0,0x001a4934 branch if not reached starting timer? 001a487c: 26d00026 addiu r16,r22,0x0026 Temp. effect data + 0x26 001a4880: 86c2002a lh r2,0x002a(r22) 001a4884: 00000000 nop 001a4888: 14400025 bne r2,r0,0x001a4920 001a488c: 00000000 nop 001a4890: 96020006 lhu r2,0x0006(r16) effect target counter? 001a4894: 3c03801c lui r3,0x801c 001a4898: 9463ad0c lhu r3,-0x52f4(r3) load hit counter 001a489c: 00000000 nop 001a48a0: 0043102b sltu r2,r2,r3 set if ?? < hit counter 001a48a4: 1040001e beq r2,r0,0x001a4920 end if more than hit counter? 001a48a8: 00000000 nop 001a48ac: 86c20006 lh r2,0x0006(r22) load instruction counter 001a48b0: 8ec40008 lw r4,0x0008(r22) load code script address 001a48b4: 86c60002 lh r6,0x0002(r22) ? 001a48b8: 00441021 addu r2,r2,r4 counter + address 001a48bc: 84450002 lh r5,0x0002(r2) parse argument as new code counter 001a48c0: 0c06883a jal 0x001a20e8 increment effect phase by 1 & store code script counter for next phase 001a48c4: 00000000 nop 001a48c8: 00021400 sll r2,r2,0x10 001a48cc: 00021403 sra r2,r2,0x10 001a48d0: 00021940 sll r3,r2,0x05 001a48d4: 00621823 subu r3,r3,r2 001a48d8: 96020006 lhu r2,0x0006(r16) load effect target counter 001a48dc: 000318c0 sll r3,r3,0x03 001a48e0: 3c01801c lui r1,0x801c 001a48e4: 00230821 addu r1,r1,r3 001a48e8: a422f052 sh r2,-0x0fae(r1) Store target counter? in new phase's 0x26 data point 001a48ec: 96020006 lhu r2,0x0006(r16) 001a48f0: 3c03801c lui r3,0x801c 001a48f4: 8c63c0c8 lw r3,-0x3f38(r3) load effect's miscellaneous timing data pointer 001a48f8: 24420001 addiu r2,r2,0x0001 increment target counter 001a48fc: a6020006 sh r2,0x0006(r16) store new target counter in old phase 001a4900: 96020004 lhu r2,0x0004(r16) ? 001a4904: 94630006 lhu r3,0x0006(r3) load misc. timing data 0x6 001a4908: 00000000 nop 001a490c: 00431021 addu r2,r2,r3 001a4910: a6020004 sh r2,0x0004(r16) store new? 001a4914: 00021400 sll r2,r2,0x10 001a4918: 1040ffdd beq r2,r0,0x001a4890 loop if 0? 001a491c: 00000000 nop 001a4920: 96020004 lhu r2,0x0004(r16) 001a4924: 00000000 nop 001a4928: 2442ffff addiu r2,r2,0xffff 001a492c: 080692a2 j 0x001a4a88 001a4930: a6020004 sh r2,0x0004(r16) subtract 1 and store in old phase?
not yet started initial time? 001a4934: 00008821 addu r17,r0,r0 0 001a4938: 34150070 ori r21,r0,0x0070 70 001a493c: 3414003c ori r20,r0,0x003c 3c 001a4940: 34130008 ori r19,r0,0x0008 8 001a4944: 3412082a ori r18,r0,0x082a 82a 001a4948: 02c02021 addu r4,r22,r0 temp effect data 001a494c: 02133021 addu r6,r16,r19 temp effect data + 0x2e 001a4950: 02143821 addu r7,r16,r20 temp effect data + 0x62 001a4954: 02151021 addu r2,r16,r21 temp effect data + 0x96 001a4958: 26b50002 addiu r21,r21,0x0002 increment 001a495c: 26940002 addiu r20,r20,0x0002 increment 001a4960: 26730002 addiu r19,r19,0x0002 increment 001a4964: 3c05801c lui r5,0x801c 001a4968: 8ca5c0c8 lw r5,-0x3f38(r5) load effect's misc. timing data pointer 001a496c: 26310001 addiu r17,r17,0x0001 001a4970: afa20010 sw r2,0x0010(r29) parse effect data + 0x96 001a4974: 0c069000 jal 0x001a4000 Effect Related (0x1a4000) 001a4978: 02452821 addu r5,r18,r5 misc. timing data + 0x82a 001a497c: 2a220005 slti r2,r17,0x0005 001a4980: 1440fff1 bne r2,r0,0x001a4948 do 5 times? 001a4984: 26520080 addiu r18,r18,0x0080 001a4988: 2605001c addiu r5,r16,0x001c 001a498c: 3c04801c lui r4,0x801c 001a4990: 8c84c0c8 lw r4,-0x3f38(r4) load effect misc timing data pointer 001a4994: 26060050 addiu r6,r16,0x0050 temp effect data + 0x76 001a4998: 0c069068 jal 0x001a41a0 001a41a0 - 001a4368 001a499c: 24840dde addiu r4,r4,0x0dde timing data + 0xdde 001a49a0: 3c02801c lui r2,0x801c 001a49a4: 9442adb0 lhu r2,-0x5250(r2) 001a49a8: 00000000 nop 001a49ac: 1440000a bne r2,r0,0x001a49d8 001a49b0: 26050024 addiu r5,r16,0x0024 001a49b4: 26050020 addiu r5,r16,0x0020 001a49b8: 26060054 addiu r6,r16,0x0054 temp. effect data + values 001a49bc: 3c04801c lui r4,0x801c 001a49c0: 8c84c0c8 lw r4,-0x3f38(r4) 001a49c4: 3c07801c lui r7,0x801c 001a49c8: 90e7adb2 lbu r7,-0x524e(r7) 001a49cc: 0c0690db jal 0x001a436c 001a49d0: 24840ea6 addiu r4,r4,0x0ea6 timing data + 0xea6 001a49d4: 26050024 addiu r5,r16,0x0024 001a49d8: 3c04801c lui r4,0x801c 001a49dc: 8c84c0c8 lw r4,-0x3f38(r4) 001a49e0: 26060058 addiu r6,r16,0x0058 001a49e4: 0c069113 jal 0x001a444c 001a49e8: 24840f6e addiu r4,r4,0x0f6e 001a49ec: 26050028 addiu r5,r16,0x0028 001a49f0: 3c04801c lui r4,0x801c 001a49f4: 8c84c0c8 lw r4,-0x3f38(r4) 001a49f8: 2606005c addiu r6,r16,0x005c 001a49fc: 0c069172 jal 0x001a45c8 001a4a00: 24841036 addiu r4,r4,0x1036 001a4a04: 2605002c addiu r5,r16,0x002c 001a4a08: 26060060 addiu r6,r16,0x0060 001a4a0c: 3c04801c lui r4,0x801c 001a4a10: 8c84c0c8 lw r4,-0x3f38(r4) 001a4a14: 26070095 addiu r7,r16,0x0095 001a4a18: 0c0691e3 jal 0x001a478c 001a4a1c: 24840d2a addiu r4,r4,0x0d2a 001a4a20: 26050030 addiu r5,r16,0x0030 001a4a24: 26060064 addiu r6,r16,0x0064 001a4a28: 3c04801c lui r4,0x801c 001a4a2c: 8c84c0c8 lw r4,-0x3f38(r4) 001a4a30: 26070099 addiu r7,r16,0x0099 001a4a34: 0c0691e3 jal 0x001a478c 001a4a38: 24840d48 addiu r4,r4,0x0d48 001a4a3c: 26050034 addiu r5,r16,0x0034 001a4a40: 26060068 addiu r6,r16,0x0068 001a4a44: 3c04801c lui r4,0x801c 001a4a48: 8c84c0c8 lw r4,-0x3f38(r4) 001a4a4c: 2607009d addiu r7,r16,0x009d 001a4a50: 0c0691e3 jal 0x001a478c lots of back to back routines? this entire routine seems very important. 001a4a54: 24840d66 addiu r4,r4,0x0d66 001a4a58: 3c02801c lui r2,0x801c 001a4a5c: 8c42acc8 lw r2,-0x5338(r2) 001a4a60: 00000000 nop 001a4a64: 8c420000 lw r2,0x0000(r2) 001a4a68: 00000000 nop 001a4a6c: 30420020 andi r2,r2,0x0020 001a4a70: 10400005 beq r2,r0,0x001a4a88 001a4a74: 00000000 nop 001a4a78: 0c068480 jal 0x001a1200 001a4a7c: 02c02021 addu r4,r22,r0 001a4a80: 0c0238ca jal 0x0008e328 001a4a84: 00402021 addu r4,r2,r0 001a4a88: 3c04801c lui r4,0x801c 001a4a8c: 8c84c0c8 lw r4,-0x3f38(r4) 001a4a90: 3c02801c lui r2,0x801c 001a4a94: 9442ad0c lhu r2,-0x52f4(r2) 001a4a98: 94830006 lhu r3,0x0006(r4) 001a4a9c: 2442ffff addiu r2,r2,0xffff 001a4aa0: 00430018 mult r2,r3 001a4aa4: 94830004 lhu r3,0x0004(r4) 001a4aa8: 9484000a lhu r4,0x000a(r4) 001a4aac: 00001012 mflo r2 001a4ab0: 00621821 addu r3,r3,r2 001a4ab4: 86020002 lh r2,0x0002(r16) 001a4ab8: 00648821 addu r17,r3,r4 001a4abc: 0051102a slt r2,r2,r17 001a4ac0: 1440004a bne r2,r0,0x001a4bec 001a4ac4: 00000000 nop 001a4ac8: 00008821 addu r17,r0,r0 001a4acc: 3415007a ori r21,r0,0x007a 001a4ad0: 34140046 ori r20,r0,0x0046 001a4ad4: 34130012 ori r19,r0,0x0012 001a4ad8: 34120aaa ori r18,r0,0x0aaa 001a4adc: 02c02021 addu r4,r22,r0 001a4ae0: 02133021 addu r6,r16,r19 001a4ae4: 02143821 addu r7,r16,r20 001a4ae8: 02151021 addu r2,r16,r21 001a4aec: 26b50002 addiu r21,r21,0x0002 001a4af0: 26940002 addiu r20,r20,0x0002 001a4af4: 26730002 addiu r19,r19,0x0002 001a4af8: 3c05801c lui r5,0x801c 001a4afc: 8ca5c0c8 lw r5,-0x3f38(r5) 001a4b00: 26310001 addiu r17,r17,0x0001 001a4b04: afa20010 sw r2,0x0010(r29) 001a4b08: 0c069000 jal 0x001a4000 001a4b0c: 02452821 addu r5,r18,r5 001a4b10: 2a220005 slti r2,r17,0x0005 001a4b14: 1440fff1 bne r2,r0,0x001a4adc 001a4b18: 26520080 addiu r18,r18,0x0080 001a4b1c: 2605001e addiu r5,r16,0x001e 001a4b20: 3c04801c lui r4,0x801c 001a4b24: 8c84c0c8 lw r4,-0x3f38(r4) 001a4b28: 26060052 addiu r6,r16,0x0052 001a4b2c: 0c069068 jal 0x001a41a0 001a4b30: 24841162 addiu r4,r4,0x1162 001a4b34: 3c02801c lui r2,0x801c 001a4b38: 9442adb0 lhu r2,-0x5250(r2) 001a4b3c: 00000000 nop 001a4b40: 1440000a bne r2,r0,0x001a4b6c 001a4b44: 26050026 addiu r5,r16,0x0026 001a4b48: 26050022 addiu r5,r16,0x0022 001a4b4c: 26060056 addiu r6,r16,0x0056 001a4b50: 3c04801c lui r4,0x801c 001a4b54: 8c84c0c8 lw r4,-0x3f38(r4) 001a4b58: 3c07801c lui r7,0x801c 001a4b5c: 90e7adb2 lbu r7,-0x524e(r7) 001a4b60: 0c0690db jal 0x001a436c 001a4b64: 2484122a addiu r4,r4,0x122a 001a4b68: 26050026 addiu r5,r16,0x0026 001a4b6c: 3c04801c lui r4,0x801c 001a4b70: 8c84c0c8 lw r4,-0x3f38(r4) 001a4b74: 2606005a addiu r6,r16,0x005a 001a4b78: 0c069113 jal 0x001a444c 001a4b7c: 248412f2 addiu r4,r4,0x12f2 001a4b80: 2605002a addiu r5,r16,0x002a 001a4b84: 3c04801c lui r4,0x801c 001a4b88: 8c84c0c8 lw r4,-0x3f38(r4) 001a4b8c: 2606005e addiu r6,r16,0x005e 001a4b90: 0c069172 jal 0x001a45c8 001a4b94: 248413ba addiu r4,r4,0x13ba 001a4b98: 2605002e addiu r5,r16,0x002e 001a4b9c: 26060062 addiu r6,r16,0x0062 001a4ba0: 3c04801c lui r4,0x801c 001a4ba4: 8c84c0c8 lw r4,-0x3f38(r4) 001a4ba8: 26070097 addiu r7,r16,0x0097 001a4bac: 0c0691e3 jal 0x001a478c 001a4bb0: 24840d84 addiu r4,r4,0x0d84 001a4bb4: 26050032 addiu r5,r16,0x0032 001a4bb8: 26060066 addiu r6,r16,0x0066 001a4bbc: 3c04801c lui r4,0x801c 001a4bc0: 8c84c0c8 lw r4,-0x3f38(r4) 001a4bc4: 2607009b addiu r7,r16,0x009b 001a4bc8: 0c0691e3 jal 0x001a478c 001a4bcc: 24840da2 addiu r4,r4,0x0da2 001a4bd0: 26050036 addiu r5,r16,0x0036 001a4bd4: 2606006a addiu r6,r16,0x006a 001a4bd8: 3c04801c lui r4,0x801c 001a4bdc: 8c84c0c8 lw r4,-0x3f38(r4) 001a4be0: 2607009f addiu r7,r16,0x009f 001a4be4: 0c0691e3 jal 0x001a478c 001a4be8: 24840dc0 addiu r4,r4,0x0dc0 001a4bec: 86040002 lh r4,0x0002(r16) 001a4bf0: 0c06b466 jal 0x001ad198 001a4bf4: 00000000 nop 001a4bf8: 96020002 lhu r2,0x0002(r16) 001a4bfc: 00000000 nop 001a4c00: 24420001 addiu r2,r2,0x0001 001a4c04: a6020002 sh r2,0x0002(r16) 001a4c08: 96c30006 lhu r3,0x0006(r22) 001a4c0c: 34020001 ori r2,r0,0x0001 001a4c10: 24630004 addiu r3,r3,0x0004 001a4c14: a6c30006 sh r3,0x0006(r22) 001a4c18: 8fbf0044 lw r31,0x0044(r29) 001a4c1c: 8fb60040 lw r22,0x0040(r29) 001a4c20: 8fb5003c lw r21,0x003c(r29) 001a4c24: 8fb40038 lw r20,0x0038(r29) 001a4c28: 8fb30034 lw r19,0x0034(r29) 001a4c2c: 8fb20030 lw r18,0x0030(r29) 001a4c30: 8fb1002c lw r17,0x002c(r29) 001a4c34: 8fb00028 lw r16,0x0028(r29) 001a4c38: 27bd0048 addiu r29,r29,0x0048 001a4c3c: 03e00008 jr r31 001a4c40: 00000000 nop