00146ee4 - 00146f1c
Jump to navigation
Jump to search
00146940: 27bdff48 addiu r29,r29,0xff48 00146944: afb00090 sw r16,0x0090(r29) 00146948: 00808021 addu r16,r4,r0 r16 = event code pointer 0014694c: afb20098 sw r18,0x0098(r29) 00146950: 00a09021 addu r18,r5,r0 r18 = PV 00146954: afbf00b4 sw r31,0x00b4(r29) 00146958: afbe00b0 sw r30,0x00b0(r29) 0014695c: afb700ac sw r23,0x00ac(r29) 00146960: afb600a8 sw r22,0x00a8(r29) 00146964: afb500a4 sw r21,0x00a4(r29) 00146968: afb400a0 sw r20,0x00a0(r29) 0014696c: afb3009c sw r19,0x009c(r29) 00146970: 0c05181e jal 0x00146078 load EVTCHR data 00146974: afb10094 sw r17,0x0094(r29) 00146978: 00021400 sll r2,r2,0x10 0014697c: 0c04cc56 jal 0x00133158 get misc ID? 00146980: 00022403 sra r4,r2,0x10 00146984: afa20058 sw r2,0x0058(r29) store misc ID 00146988: 8fa70058 lw r7,0x0058(r29) load misc ID 0014698c: 340207d0 ori r2,r0,0x07d0 00146990: 10e20147 beq r7,r2,0x00146eb0 branch if return from 0x133158 was 0x07d0 00146994: 00000000 nop 00146998: 3c028017 lui r2,0x8017 0014699c: 8c424038 lw r2,0x4038(r2) load block pointer 001469a0: 8fa40058 lw r4,0x0058(r29) load misc ID 001469a4: 00021280 sll r2,r2,0x0a 001469a8: 3c018017 lui r1,0x8017 001469ac: 00220821 addu r1,r1,r2 001469b0: ac2798bc sw r7,-0x6744(r1) store misc ID in data block 001469b4: 0c023292 jal 0x0008ca48 001469b8: 26100002 addiu r16,r16,0x0002 event code pointer++ 001469bc: 84430000 lh r3,0x0000(r2) load X 001469c0: 00000000 nop 001469c4: afa30010 sw r3,0x0010(r29) store X 001469c8: 84430002 lh r3,0x0002(r2) load height 001469cc: 00000000 nop 001469d0: afa30014 sw r3,0x0014(r29) store 001469d4: 84430004 lh r3,0x0004(r2) load Y 001469d8: 00000000 nop 001469dc: afa30018 sw r3,0x0018(r29) store 001469e0: 84430000 lh r3,0x0000(r2) load X 001469e4: 00000000 nop 001469e8: 00031823 subu r3,r0,r3 001469ec: afa30040 sw r3,0x0040(r29) 001469f0: 84430002 lh r3,0x0002(r2) 001469f4: 0000a821 addu r21,r0,r0 001469f8: 00031823 subu r3,r0,r3 001469fc: afa30044 sw r3,0x0044(r29) 00146a00: 84420004 lh r2,0x0004(r2) 00146a04: 27b10010 addiu r17,r29,0x0010 00146a08: 00021023 subu r2,r0,r2 00146a0c: afa20048 sw r2,0x0048(r29) Store event code data 00146a10: 0c05181e jal 0x00146078 load next event code 00146a14: 02002021 addu r4,r16,r0 00146a18: 00021400 sll r2,r2,0x10 00146a1c: 00021403 sra r2,r2,0x10 00146a20: ae220010 sw r2,0x0010(r17) store data 00146a24: 26100002 addiu r16,r16,0x0002 event code pointer++ 00146a28: 26b50001 addiu r21,r21,0x0001 counter++ 00146a2c: 2aa20003 slti r2,r21,0x0003 set if counter < 3 00146a30: 1440fff7 bne r2,r0,0x00146a10 branch if not 00146a34: 26310004 addiu r17,r17,0x0004 00146a38: 92070000 lbu r7,0x0000(r16) load event code 00146a3c: 26100001 addiu r16,r16,0x0001 event code pointer++ 00146a40: 26040001 addiu r4,r16,0x0001 event code pointer++ = r4 00146a44: afa70068 sw r7,0x0068(r29) store event code 00146a48: 92100000 lbu r16,0x0000(r16) load event code 00146a4c: 0c05181e jal 0x00146078 Load more event code 00146a50: afb00060 sw r16,0x0060(r29) store event code 00146a54: 00021400 sll r2,r2,0x10 00146a58: 0002f403 sra r30,r2,0x10 00146a5c: 34020001 ori r2,r0,0x0001 00146a60: 16420017 bne r18,r2,0x00146ac0 00146a64: 00000000 nop 00146a68: 0000b821 addu r23,r0,r0 00146a6c: 27a40010 addiu r4,r29,0x0010 00146a70: 8c820010 lw r2,0x0010(r4) 00146a74: 8c830000 lw r3,0x0000(r4) 00146a78: 00000000 nop 00146a7c: 00431023 subu r2,r2,r3 00146a80: 00420018 mult r2,r2 00146a84: 26f70001 addiu r23,r23,0x0001 00146a88: 00001012 mflo r2 00146a8c: 00021100 sll r2,r2,0x04 00146a90: ac820020 sw r2,0x0020(r4) 00146a94: 2ae20003 slti r2,r23,0x0003 00146a98: 1440fff5 bne r2,r0,0x00146a70 00146a9c: 24840004 addiu r4,r4,0x0004 00146aa0: 8fa40030 lw r4,0x0030(r29) 00146aa4: 8fa20034 lw r2,0x0034(r29) 00146aa8: 8fa30038 lw r3,0x0038(r29) 00146aac: 00822021 addu r4,r4,r2 00146ab0: 0c006fce jal 0x0001bf38 00146ab4: 00832021 addu r4,r4,r3 00146ab8: 005e001a div r2,r30 00146abc: 0000f012 mflo r30 00146ac0: 0000a821 addu r21,r0,r0 00146ac4: 27a40010 addiu r4,r29,0x0010 00146ac8: 26b50001 addiu r21,r21,0x0001 00146acc: 8c820000 lw r2,0x0000(r4) 00146ad0: 8c830010 lw r3,0x0010(r4) 00146ad4: 00021200 sll r2,r2,0x08 00146ad8: 00031a00 sll r3,r3,0x08 00146adc: ac820000 sw r2,0x0000(r4) 00146ae0: ac830010 sw r3,0x0010(r4) 00146ae4: 2aa20003 slti r2,r21,0x0003 00146ae8: 1440fff7 bne r2,r0,0x00146ac8 00146aec: 24840004 addiu r4,r4,0x0004 00146af0: 34150001 ori r21,r0,0x0001 00146af4: 02be102a slt r2,r21,r30 00146af8: 104000c3 beq r2,r0,0x00146e08 00146afc: 34020010 ori r2,r0,0x0010 00146b00: 8fa70060 lw r7,0x0060(r29) 00146b04: 00000000 nop 00146b08: 00471023 subu r2,r2,r7 00146b0c: 001e3940 sll r7,r30,0x05 00146b10: afa20070 sw r2,0x0070(r29) 00146b14: afa70078 sw r7,0x0078(r29) 00146b18: 0c0532a0 jal 0x0014ca80 00146b1c: 0000b821 addu r23,r0,r0 00146b20: 03d51023 subu r2,r30,r21 00146b24: 00550018 mult r2,r21 00146b28: 00003812 mflo r7 00146b2c: afa70080 sw r7,0x0080(r29) 00146b30: 8fa70078 lw r7,0x0078(r29) 00146b34: 00000000 nop 00146b38: 03c70018 mult r30,r7 00146b3c: 00003812 mflo r7 00146b40: afa70088 sw r7,0x0088(r29) 00146b44: 00171880 sll r3,r23,0x02 00146b48: 27a20010 addiu r2,r29,0x0010 00146b4c: 0062a021 addu r20,r3,r2 00146b50: 8e830010 lw r3,0x0010(r20) 00146b54: 8e820000 lw r2,0x0000(r20) 00146b58: 8fa70068 lw r7,0x0068(r29) 00146b5c: 00000000 nop 00146b60: 14e00007 bne r7,r0,0x00146b80 00146b64: 00622023 subu r4,r3,r2 00146b68: 02a02821 addu r5,r21,r0 00146b6c: 0c05332e jal 0x0014ccb8 00146b70: 03c03021 addu r6,r30,r0 00146b74: 8e830000 lw r3,0x0000(r20) 00146b78: 08051b4b j 0x00146d2c 00146b7c: 00431021 addu r2,r2,r3 00146b80: 34020001 ori r2,r0,0x0001 00146b84: 14e20019 bne r7,r2,0x00146bec 00146b88: 34020003 ori r2,r0,0x0003 00146b8c: 8fa70070 lw r7,0x0070(r29) 00146b90: 00000000 nop 00146b94: 00870018 mult r4,r7 00146b98: 00009012 mflo r18 00146b9c: 8fa70060 lw r7,0x0060(r29) 00146ba0: 00000000 nop 00146ba4: 00870018 mult r4,r7 00146ba8: 02a02821 addu r5,r21,r0 00146bac: 8fa60078 lw r6,0x0078(r29) 00146bb0: 00001012 mflo r2 00146bb4: 00028840 sll r17,r2,0x01 00146bb8: 02322021 addu r4,r17,r18 00146bbc: 0c05332e jal 0x0014ccb8 00146bc0: 00922021 addu r4,r4,r18 00146bc4: 00408021 addu r16,r2,r0 00146bc8: 8fa50080 lw r5,0x0080(r29) 00146bcc: 8fa60088 lw r6,0x0088(r29) 00146bd0: 0c05332e jal 0x0014ccb8 00146bd4: 02202021 addu r4,r17,r0 00146bd8: 8e830000 lw r3,0x0000(r20) 00146bdc: 02028021 addu r16,r16,r2 00146be0: 02031821 addu r3,r16,r3 00146be4: 08051b4c j 0x00146d30 00146be8: ae830020 sw r3,0x0020(r20) 00146bec: 14e20015 bne r7,r2,0x00146c44 00146bf0: 34020002 ori r2,r0,0x0002 00146bf4: 8fa70070 lw r7,0x0070(r29) 00146bf8: 00000000 nop 00146bfc: 00870018 mult r4,r7 00146c00: 00009012 mflo r18 00146c04: 8fa70060 lw r7,0x0060(r29) 00146c08: 00000000 nop 00146c0c: 00870018 mult r4,r7 00146c10: 02a02821 addu r5,r21,r0 00146c14: 03c03021 addu r6,r30,r0 00146c18: 00002012 mflo r4 00146c1c: 0c05332e jal 0x0014ccb8 00146c20: 00042040 sll r4,r4,0x01 00146c24: 00521021 addu r2,r2,r18 00146c28: 00522021 addu r4,r2,r18 00146c2c: 02a02821 addu r5,r21,r0 00146c30: 0c05332e jal 0x0014ccb8 00146c34: 001e3140 sll r6,r30,0x05 00146c38: 8e830000 lw r3,0x0000(r20) 00146c3c: 08051b4b j 0x00146d2c 00146c40: 00431021 addu r2,r2,r3 00146c44: 8fa70068 lw r7,0x0068(r29) 00146c48: 00000000 nop 00146c4c: 14e20038 bne r7,r2,0x00146d30 00146c50: 001e17c2 srl r2,r30,0x1f 00146c54: 03c21021 addu r2,r30,r2 00146c58: 00029843 sra r19,r2,0x01 00146c5c: 000417c2 srl r2,r4,0x1f 00146c60: 16600002 bne r19,r0,0x00146c6c 00146c64: 0082b021 addu r22,r4,r2 00146c68: 34130001 ori r19,r0,0x0001 00146c6c: 00151040 sll r2,r21,0x01 00146c70: 005e102a slt r2,r2,r30 00146c74: 10400014 beq r2,r0,0x00146cc8 00146c78: 02a02821 addu r5,r21,r0 00146c7c: 8fa70070 lw r7,0x0070(r29) 00146c80: 00000000 nop 00146c84: 00870018 mult r4,r7 00146c88: 00009012 mflo r18 00146c8c: 8fa70060 lw r7,0x0060(r29) 00146c90: 00000000 nop 00146c94: 00870018 mult r4,r7 00146c98: 02603021 addu r6,r19,r0 00146c9c: 00002012 mflo r4 00146ca0: 0c05332e jal 0x0014ccb8 00146ca4: 00042040 sll r4,r4,0x01 00146ca8: 00521021 addu r2,r2,r18 00146cac: 00522021 addu r4,r2,r18 00146cb0: 02a02821 addu r5,r21,r0 00146cb4: 0c05332e jal 0x0014ccb8 00146cb8: 00133180 sll r6,r19,0x06 00146cbc: 8e830000 lw r3,0x0000(r20) 00146cc0: 08051b4b j 0x00146d2c 00146cc4: 00431021 addu r2,r2,r3 00146cc8: 8fa70070 lw r7,0x0070(r29) 00146ccc: 00000000 nop 00146cd0: 00870018 mult r4,r7 00146cd4: 00009012 mflo r18 00146cd8: 8fa70060 lw r7,0x0060(r29) 00146cdc: 00000000 nop 00146ce0: 00870018 mult r4,r7 00146ce4: 02b38023 subu r16,r21,r19 00146ce8: 02702823 subu r5,r19,r16 00146cec: 02603021 addu r6,r19,r0 00146cf0: 00001012 mflo r2 00146cf4: 00028840 sll r17,r2,0x01 00146cf8: 0c05332e jal 0x0014ccb8 00146cfc: 02202021 addu r4,r17,r0 00146d00: 02221021 addu r2,r17,r2 00146d04: 00521021 addu r2,r2,r18 00146d08: 00522021 addu r4,r2,r18 00146d0c: 02002821 addu r5,r16,r0 00146d10: 0c05332e jal 0x0014ccb8 00146d14: 00133180 sll r6,r19,0x06 00146d18: 8e830000 lw r3,0x0000(r20) 00146d1c: 00000000 nop 00146d20: 00431021 addu r2,r2,r3 00146d24: 00161843 sra r3,r22,0x01 00146d28: 00431021 addu r2,r2,r3 00146d2c: ae820020 sw r2,0x0020(r20) 00146d30: 26f70001 addiu r23,r23,0x0001 00146d34: 2ae20003 slti r2,r23,0x0003 00146d38: 1440ff83 bne r2,r0,0x00146b48 00146d3c: 00171880 sll r3,r23,0x02 00146d40: 8fa40058 lw r4,0x0058(r29) 00146d44: 0c0232ed jal 0x0008cbb4 00146d48: 00000000 nop 00146d4c: 14400004 bne r2,r0,0x00146d60 00146d50: 27b00050 addiu r16,r29,0x0050 00146d54: 0c053256 jal 0x0014c958 00146d58: 00000000 nop 00146d5c: 27b00050 addiu r16,r29,0x0050 00146d60: 8fa40058 lw r4,0x0058(r29) 00146d64: 97a20040 lhu r2,0x0040(r29) 00146d68: 97a30044 lhu r3,0x0044(r29) 00146d6c: 97a60048 lhu r6,0x0048(r29) 00146d70: 02002821 addu r5,r16,r0 00146d74: a7a20050 sh r2,0x0050(r29) 00146d78: a7a30052 sh r3,0x0052(r29) 00146d7c: 0c023271 jal 0x0008c9c4 00146d80: a7a60054 sh r6,0x0054(r29) 00146d84: 8fa20030 lw r2,0x0030(r29) 00146d88: 00000000 nop 00146d8c: 04410002 bgez r2,0x00146d98 00146d90: 00000000 nop 00146d94: 244200ff addiu r2,r2,0x00ff 00146d98: 8fa30034 lw r3,0x0034(r29) 00146d9c: 00021203 sra r2,r2,0x08 00146da0: 04610002 bgez r3,0x00146dac 00146da4: a7a20050 sh r2,0x0050(r29) 00146da8: 246300ff addiu r3,r3,0x00ff 00146dac: 8fa60038 lw r6,0x0038(r29) 00146db0: 00031203 sra r2,r3,0x08 00146db4: 04c10002 bgez r6,0x00146dc0 00146db8: a7a20052 sh r2,0x0052(r29) 00146dbc: 24c600ff addiu r6,r6,0x00ff 00146dc0: 02002821 addu r5,r16,r0 00146dc4: 8fa40058 lw r4,0x0058(r29) 00146dc8: 00061203 sra r2,r6,0x08 00146dcc: 0c023271 jal 0x0008c9c4 00146dd0: a7a20054 sh r2,0x0054(r29) 00146dd4: 26b50001 addiu r21,r21,0x0001 00146dd8: 87a20050 lh r2,0x0050(r29) 00146ddc: 87a30054 lh r3,0x0054(r29) 00146de0: 00021023 subu r2,r0,r2 00146de4: afa20040 sw r2,0x0040(r29) 00146de8: 87a20052 lh r2,0x0052(r29) 00146dec: 00031823 subu r3,r0,r3 00146df0: afa30048 sw r3,0x0048(r29) 00146df4: 00021023 subu r2,r0,r2 00146df8: afa20044 sw r2,0x0044(r29) 00146dfc: 02be102a slt r2,r21,r30 00146e00: 1440ff45 bne r2,r0,0x00146b18 00146e04: 00000000 nop 00146e08: 8fa40058 lw r4,0x0058(r29) load misc ID 00146e0c: 0c0232ed jal 0x0008cbb4 get misc data 00146e10: 00000000 nop 00146e14: 14400004 bne r2,r0,0x00146e28 branch if data found 00146e18: 27b00050 addiu r16,r29,0x0050 00146e1c: 0c053256 jal 0x0014c958 00146e20: 00000000 nop 00146e24: 27b00050 addiu r16,r29,0x0050 00146e28: 8fa40058 lw r4,0x0058(r29) load misc ID 00146e2c: 97a20040 lhu r2,0x0040(r29) 00146e30: 97a30044 lhu r3,0x0044(r29) 00146e34: 97a60048 lhu r6,0x0048(r29) 00146e38: 02002821 addu r5,r16,r0 00146e3c: a7a20050 sh r2,0x0050(r29) 00146e40: a7a30052 sh r3,0x0052(r29) 00146e44: 0c023271 jal 0x0008c9c4 store new coordinate data 00146e48: a7a60054 sh r6,0x0054(r29) 00146e4c: 8fa20020 lw r2,0x0020(r29) 00146e50: 00000000 nop 00146e54: 04410002 bgez r2,0x00146e60 00146e58: 00000000 nop 00146e5c: 244200ff addiu r2,r2,0x00ff 00146e60: 8fa40024 lw r4,0x0024(r29) 00146e64: 00021203 sra r2,r2,0x08 00146e68: 04810002 bgez r4,0x00146e74 00146e6c: a7a20050 sh r2,0x0050(r29) 00146e70: 248400ff addiu r4,r4,0x00ff 00146e74: 8fa30028 lw r3,0x0028(r29) 00146e78: 00041203 sra r2,r4,0x08 00146e7c: 04610002 bgez r3,0x00146e88 00146e80: a7a20052 sh r2,0x0052(r29) 00146e84: 246300ff addiu r3,r3,0x00ff 00146e88: 00031203 sra r2,r3,0x08 00146e8c: 8fa40058 lw r4,0x0058(r29) load misc ID 00146e90: 02002821 addu r5,r16,r0 00146e94: 0c023271 jal 0x0008c9c4 store new coordinate data 00146e98: a7a20054 sh r2,0x0054(r29) 00146e9c: 34020001 ori r2,r0,0x0001 00146ea0: 17c20003 bne r30,r2,0x00146eb0 00146ea4: 00000000 nop 00146ea8: 0c0532a0 jal 0x0014ca80 00146eac: 00000000 nop 00146eb0: 8fbf00b4 lw r31,0x00b4(r29) 00146eb4: 8fbe00b0 lw r30,0x00b0(r29) 00146eb8: 8fb700ac lw r23,0x00ac(r29) 00146ebc: 8fb600a8 lw r22,0x00a8(r29) 00146ec0: 8fb500a4 lw r21,0x00a4(r29) 00146ec4: 8fb400a0 lw r20,0x00a0(r29) 00146ec8: 8fb3009c lw r19,0x009c(r29) 00146ecc: 8fb20098 lw r18,0x0098(r29) 00146ed0: 8fb10094 lw r17,0x0094(r29) 00146ed4: 8fb00090 lw r16,0x0090(r29) 00146ed8: 27bd00b8 addiu r29,r29,0x00b8 00146edc: 03e00008 jr r31 00146ee0: 00000000 nop