0008b120 - 0008b198

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

0008b120: 27bdffd8 addiu r29,r29,0xffd8
0008b124: afb00020 sw r16,0x0020(r29)
0008b128: afbf0024 sw r31,0x0024(r29)
0008b12c: 0c011033 jal 0x000440cc                000440cc - 000440f0 goes to Turn off all MUS? 
0008b130: 00808021 addu r16,r4,r0                preserve p1 (which 4 sound bytes to play)
0008b134: 00002021 addu r4,r0,r0
0008b138: 3c0500e1 lui r5,0x00e1                 0x00e1 0000
0008b13c: 27a30010 addiu r3,r29,0x0010
0008b140: 3c02800a lui r2,0x800a
0008b144: 2442ec18 addiu r2,r2,0xec18            list of 4 sound effects by ID? (0008b120 sound effect quads)
0008b148: 00108080 sll r16,r16,0x02
0008b14c: 02028021 addu r16,r16,r2
0008b150: 92020000 lbu r2,0x0000(r16)            sound effect
0008b154: 26100001 addiu r16,r16,0x0001
0008b158: 24840001 addiu r4,r4,0x0001
0008b15c: 00451021 addu r2,r2,r5                 + 0x00e1 0000
0008b160: ac620000 sw r2,0x0000(r3)              store sound effect in stack
0008b164: 28820004 slti r2,r4,0x0004
0008b168: 1440fff9 bne r2,r0,0x0008b150          loop 4 times
0008b16c: 24630004 addiu r3,r3,0x0004
0008b170: 8fa40010 lw r4,0x0010(r29)
0008b174: 8fa50014 lw r5,0x0014(r29)
0008b178: 8fa60018 lw r6,0x0018(r29)
0008b17c: 8fa7001c lw r7,0x001c(r29)             put stack sound effects in p1 through p4
0008b180: 0c0049ed jal 0x000127b4                000127b4 - 0001285c play 4 sound effects
0008b184: 00000000 nop 
0008b188: 8fbf0024 lw r31,0x0024(r29)
0008b18c: 8fb00020 lw r16,0x0020(r29)
0008b190: 27bd0028 addiu r29,r29,0x0028
0008b194: 03e00008 jr r31
0008b198: 00000000 nop