Difference between revisions of "Set All Voices Release Shift to 6"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
Line 21: Line 21:
 
  00017b94: 0c008811 jal 0x00022044                    [[Exit Critical Section]]
 
  00017b94: 0c008811 jal 0x00022044                    [[Exit Critical Section]]
 
  00017b98: 00000000 nop
 
  00017b98: 00000000 nop
  00017b9c: 02002021 addu r4,r16,r0
+
  00017b9c: 02002021 addu r4,r16,r0                   voiceID
 
  00017ba0: 0c006e0a jal 0x0001b828                    [[Set Voice Release Shift]]
 
  00017ba0: 0c006e0a jal 0x0001b828                    [[Set Voice Release Shift]]
  00017ba4: 34050006 ori r5,r0,0x0006
+
  00017ba4: 34050006 ori r5,r0,0x0006                 set release shift to 0x6
  00017ba8: 26100001 addiu r16,r16,0x0001
+
  00017ba8: 26100001 addiu r16,r16,0x0001             voiceID ++
 
  00017bac: 2a020018 slti r2,r16,0x0018
 
  00017bac: 2a020018 slti r2,r16,0x0018
 
  00017bb0: 1440fffb bne r2,r0,0x00017ba0              do 18 times
 
  00017bb0: 1440fffb bne r2,r0,0x00017ba0              do 18 times
 
  00017bb4: 02002021 addu r4,r16,r0
 
  00017bb4: 02002021 addu r4,r16,r0
  00017bb8: 00002021 addu r4,r0,r0
+
  00017bb8: 00002021 addu r4,r0,r0                     ? perform first function or whatever.
  00017bbc: 3c0500ff lui r5,0x00ff
+
  00017bbc: 3c0500ff lui r5,0x00ff                    
  00017bc0: 0c006b3c jal 0x0001acf0                    [[0001acf0 - 0001aef0]]
+
  00017bc0: 0c006b3c jal 0x0001acf0                    [[Set Voices to Release]]
  00017bc4: 34a5ffff ori r5,r5,0xffff
+
  00017bc4: 34a5ffff ori r5,r5,0xffff                 set all voices to release
 
  00017bc8: 00002021 addu r4,r0,r0                    ram reverb mode = 0
 
  00017bc8: 00002021 addu r4,r0,r0                    ram reverb mode = 0
 
  00017bcc: 00002821 addu r5,r0,r0
 
  00017bcc: 00002821 addu r5,r0,r0

Latest revision as of 11:19, 25 September 2024

00017b4c: 3c028003 lui r2,0x8003
00017b50: 84422a54 lh r2,0x2a54(r2)
00017b54: 27bdffe8 addiu r29,r29,0xffe8
00017b58: afbf0014 sw r31,0x0014(r29)
00017b5c: 10400021 beq r2,r0,0x00017be4
00017b60: afb00010 sw r16,0x0010(r29)
00017b64: 0c00880d jal 0x00022034                    enter critical section
00017b68: 00008021 addu r16,r0,r0
00017b6c: 3c048003 lui r4,0x8003
00017b70: 8c842a5c lw r4,0x2a5c(r4)                  EvCB
00017b74: 0c0087e1 jal 0x00021f84                    CloseEvent hence the critical section.
00017b78: 00000000 nop
00017b7c: 3c048003 lui r4,0x8003
00017b80: 8c842a48 lw r4,0x2a48(r4)                  EvCB
00017b84: 0c0087e1 jal 0x00021f84                    CloseEvent
00017b88: 00000000 nop
00017b8c: 3c018003 lui r1,0x8003
00017b90: a4202a54 sh r0,0x2a54(r1)                  very close to first EvCB?
00017b94: 0c008811 jal 0x00022044                    Exit Critical Section
00017b98: 00000000 nop
00017b9c: 02002021 addu r4,r16,r0                    voiceID
00017ba0: 0c006e0a jal 0x0001b828                    Set Voice Release Shift
00017ba4: 34050006 ori r5,r0,0x0006                  set release shift to 0x6
00017ba8: 26100001 addiu r16,r16,0x0001              voiceID ++
00017bac: 2a020018 slti r2,r16,0x0018
00017bb0: 1440fffb bne r2,r0,0x00017ba0              do 18 times
00017bb4: 02002021 addu r4,r16,r0
00017bb8: 00002021 addu r4,r0,r0                     ? perform first function or whatever.
00017bbc: 3c0500ff lui r5,0x00ff                     
00017bc0: 0c006b3c jal 0x0001acf0                    Set Voices to Release
00017bc4: 34a5ffff ori r5,r5,0xffff                  set all voices to release
00017bc8: 00002021 addu r4,r0,r0                     ram reverb mode = 0
00017bcc: 00002821 addu r5,r0,r0
00017bd0: 00003021 addu r6,r0,r0                     reverb delay = 0
00017bd4: 0c006050 jal 0x00018140                    00018140 - 0001823c set reverb parameters
00017bd8: 00003821 addu r7,r0,r0                     reverb feedback = 0
00017bdc: 3c018003 lui r1,0x8003
00017be0: a4202a28 sh r0,0x2a28(r1)
00017be4: 8fbf0014 lw r31,0x0014(r29)
00017be8: 8fb00010 lw r16,0x0010(r29)
00017bec: 27bd0018 addiu r29,r29,0x0018
00017bf0: 03e00008 jr r31
00017bf4: 00000000 nop