aboutsummaryrefslogtreecommitdiffstats
path: root/home/audio.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/audio.asm')
-rw-r--r--home/audio.asm24
1 files changed, 13 insertions, 11 deletions
diff --git a/home/audio.asm b/home/audio.asm
index bf2537a7..aa48985d 100644
--- a/home/audio.asm
+++ b/home/audio.asm
@@ -262,33 +262,35 @@ DetermineAudioFunction::
call BankswitchCommon
; determine the audio function, based on the bank
cp BANK(Audio1_PlaySound)
- jr nz, .checkForBank08
-; bank 02 (audio 1)
+ jr nz, .checkForAudio2
+; audio 1
ld a, b
call Audio1_PlaySound
jr .done
-.checkForBank08
+.checkForAudio2
cp BANK(Audio2_PlaySound)
- jr nz, .checkForBank1F
-; bank 08 (audio 2)
+ jr nz, .checkForAudio3
+; audio 2
ld a, b
call Audio2_PlaySound
jr .done
-.checkForBank1F
+.checkForAudio3
cp BANK(Audio3_PlaySound)
- jr nz, .bank20
-; bank 1f (audio 3)
+ jr nz, .audio4
+; audio 3
ld a, b
call Audio3_PlaySound
jr .done
-.bank20
-; invalid banks will default to XX:6bd4
-; this is seen when encountering Missingno, as its sprite dimensions overflow to wAudioROMBank
+.audio4
+; invalid banks will default to audio 4
+; this is seen when encountering Missingno,
+; as its sprite dimensions overflow to wAudioROMBank
ld a, b
call Audio4_PlaySound
+
.done
pop af
call BankswitchCommon