00082620 - 00082788
Jump to navigation
Jump to search
prepares to play a hit/woosh sound. 00082620: 27bdffd0 addiu r29,r29,0xffd0 00082624: afb00018 sw r16,0x0018(r29) 00082628: 00808021 addu r16,r4,r0 r16 = misc unit data pointer 0008262c: afbf0028 sw r31,0x0028(r29) 00082630: afb30024 sw r19,0x0024(r29) 00082634: afb20020 sw r18,0x0020(r29) 00082638: afb1001c sw r17,0x001c(r29) 0008263c: 920401ab lbu r4,0x01ab(r16) Load weapon ID 00082640: 0c016a21 jal 0x0005a884 Get item data pointer 00082644: 00a08821 addu r17,r5,r0 Load input (0x00 or 0x01) 00082648: 90520005 lbu r18,0x0005(r2) Load Item type 0008264c: 00000000 nop 00082650: 2a420020 slti r2,r18,0x0020 set if an item 00082654: 14400002 bne r2,r0,0x00082660 probably branch if not throw stone tbh 00082658: 00000000 nop 0008265c: 34120001 ori r18,r0,0x0001 00082660: 12200005 beq r17,r0,0x00082678 branch if input is "woosh" 00082664: 34020001 ori r2,r0,0x0001 00082668: 1222000a beq r17,r2,0x00082694 branch if input is "hit" 0008266c: 00000000 nop 00082670: 080209db j 0x0008276c end if neither 00082674: 00000000 nop
Woosh:
00082678: 3c018009 lui r1,0x8009 0008267c: 00320821 addu r1,r1,r18 00082680: 90253d40 lbu r5,0x3d40(r1) Load weapon woosh sound effect 00082684: 0c01ae58 jal 0x0006b960 0006b960 - 0006b990 - How odd, this routine is called by anim. instruction fff6, which has only been used for projectile weapons so far... 00082688: 02002021 addu r4,r16,r0 0008268c: 080209db j 0x0008276c 00082690: 00000000 nop
Hit:
00082694: 9202018d lbu r2,0x018d(r16) 00082698: 00000000 nop 0008269c: 18400033 blez r2,0x0008276c 000826a0: 00008821 addu r17,r0,r0 000826a4: 3c138006 lui r19,0x8006 000826a8: 26737e60 addiu r19,r19,0x7e60 000826ac: 02111021 addu r2,r16,r17 000826b0: 9044018e lbu r4,0x018e(r2) 000826b4: 0c01e9c9 jal 0x0007a724 000826b8: 00000000 nop 000826bc: 00402021 addu r4,r2,r0 000826c0: 10800025 beq r4,r0,0x00082758 000826c4: 00000000 nop 000826c8: 8c820134 lw r2,0x0134(r4) 000826cc: 00000000 nop 000826d0: 10400021 beq r2,r0,0x00082758 000826d4: 00000000 nop 000826d8: 9042018e lbu r2,0x018e(r2) 000826dc: 00000000 nop 000826e0: 2443ffff addiu r3,r2,0xffff 000826e4: 2c62000d sltiu r2,r3,0x000d 000826e8: 1040000e beq r2,r0,0x00082724 000826ec: 00031080 sll r2,r3,0x02 000826f0: 00531021 addu r2,r2,r19 000826f4: 8c420000 lw r2,0x0000(r2) 000826f8: 00000000 nop 000826fc: 00400008 jr r2 00082700: 00000000 nop 00082704: 3c018009 lui r1,0x8009 00082708: 00320821 addu r1,r1,r18 0008270c: 90253d80 lbu r5,0x3d80(r1) 00082710: 080209d4 j 0x00082750 00082714: 02002021 addu r4,r16,r0 00082718: 02002021 addu r4,r16,r0 0008271c: 080209d4 j 0x00082750 00082720: 34050030 ori r5,r0,0x0030 00082724: 8c820134 lw r2,0x0134(r4) 00082728: 00000000 nop 0008272c: 9042018d lbu r2,0x018d(r2) 00082730: 00000000 nop 00082734: 10400003 beq r2,r0,0x00082744 00082738: 02002021 addu r4,r16,r0 0008273c: 080209d4 j 0x00082750 00082740: 34050072 ori r5,r0,0x0072 00082744: 3c018009 lui r1,0x8009 00082748: 00320821 addu r1,r1,r18 0008274c: 90253d60 lbu r5,0x3d60(r1) 00082750: 0c01ae58 jal 0x0006b960 00082754: 00000000 nop 00082758: 9202018d lbu r2,0x018d(r16) 0008275c: 26310001 addiu r17,r17,0x0001 00082760: 0222102a slt r2,r17,r2 00082764: 1440ffd2 bne r2,r0,0x000826b0 00082768: 02111021 addu r2,r16,r17 0008276c: 8fbf0028 lw r31,0x0028(r29) 00082770: 8fb30024 lw r19,0x0024(r29) 00082774: 8fb20020 lw r18,0x0020(r29) 00082778: 8fb1001c lw r17,0x001c(r29) 0008277c: 8fb00018 lw r16,0x0018(r29) 00082780: 27bd0030 addiu r29,r29,0x0030 00082784: 03e00008 jr r31 00082788: 00000000 nop