Play Sound Effect (Inner Routine For Ability Learned)
Jump to navigation
Jump to search
called to play audio for an weapon attack? 000125a8: 3c028003 lui r2,0x8003 000125ac: 94422a54 lhu r2,0x2a54(r2) #load ? 000125b0: 27bdffe8 addiu r29,r29,0xffe8 000125b4: afb00010 sw r16,0x0010(r29) 000125b8: 00808021 addu r16,r4,r0 #audio byte ID 000125bc: 30421000 andi r2,r2,0x1000 000125c0: 1040000d beq r2,r0,0x000125f8 #branch if ? is not flagged 0x1000 000125c4: afbf0014 sw r31,0x0014(r29) 000125c8: 0c004b50 jal 0x00012d40 #00012d40 - 00012e78 000125cc: 34050002 ori r5,r0,0x0002 #r5 = 2 000125d0: 34030002 ori r3,r0,0x0002 000125d4: 3c018003 lui r1,0x8003 000125d8: a42329f0 sh r3,0x29f0(r1) #store 2 there 000125dc: 34422000 ori r2,r2,0x2000 000125e0: 00021400 sll r2,r2,0x10 000125e4: 00022403 sra r4,r2,0x10 #r4 = 0x2000 OR output? 000125e8: 02002821 addu r5,r16,r0 #r5 = audio Byte ID 000125ec: 34066000 ori r6,r0,0x6000 000125f0: 0c004ec8 jal 0x00013b20 000125f4: 34074000 ori r7,r0,0x4000 000125f8: 8fbf0014 lw r31,0x0014(r29) 000125fc: 8fb00010 lw r16,0x0010(r29) 00012600: 27bd0018 addiu r29,r29,0x0018 00012604: 03e00008 jr r31 00012608: 00000000 nop