Play Sound Effect (Inner Routine)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: PLAY SOUND EFFECT (INNER ROUTINE)
#       Parameters:
#           r4 = SoundEffectID (17 = Zoom Out, 14 = Zoom In)

80012518: 27bdffe8 addiu r29,r29,-0x0018
8001251c: 3c028003 lui r2,0x8003
80012520: 94422a54 lhu r2,0x2a54(r2)            #   *0x80032a54
80012524: 00802821 addu r5,r4,r0                #   SoundEffectID
80012528: 30421000 andi r2,r2,0x1000            #   *0x80032a54 & 0x1000
8001252c: 10400008 beq r2,r0,0x80012550         
80012530: afbf0010 sw r31,0x0010(r29)
                                                #   if (*0x80032a54 & 0x1000 != 0) {
80012534: 34020002 ori r2,r0,0x0002             #       2
80012538: 3c018003 lui r1,0x8003
8001253c: a42229f0 sh r2,0x29f0(r1)             #       *0x800329f0 = 2
80012540: 24048006 addiu r4,r0,-0x7ffa          #       -0x7ffa
80012544: 34066000 ori r6,r0,0x6000             #       0x6000
80012548: 0c004ec8 jal 0x80013b20               #       Play Sound Effect (Worker Routine) (-0x7ffa, SoundEffectID, 0x6000, 0x4000);
8001254c: 34074000 ori r7,r0,0x4000             #       0x4000
                                                #   }
80012550: 8fbf0010 lw r31,0x0010(r29)
80012554: 27bd0018 addiu r29,r29,0x0018
80012558: 03e00008 jr r31
8001255c: 00000000 nop