aboutsummaryrefslogtreecommitdiffstats
path: root/home/fade_audio.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
committerdannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
commitca019eac8fd96559f4d4e712f0b53e95492e5dcb (patch)
tree209a500e3bda6c2109e5acec60448e9e52f8c2af /home/fade_audio.asm
parentUse more ldpikacry (diff)
parentRequire RGBDS 0.9.3 for its DMG palette specs (#513) (diff)
downloadpokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.gz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.xz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/fade_audio.asm')
-rw-r--r--home/fade_audio.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/fade_audio.asm b/home/fade_audio.asm
index 373b9bf8..a84ff2fe 100644
--- a/home/fade_audio.asm
+++ b/home/fade_audio.asm
@@ -6,7 +6,7 @@ FadeOutAudio::
bit BIT_NO_AUDIO_FADE_OUT, a
ret nz
ld a, $77
- ldh [rNR50], a
+ ldh [rAUDVOL], a
ret
.fadingOut
ld a, [wAudioFadeOutCounter]
@@ -18,7 +18,7 @@ FadeOutAudio::
.counterReachedZero
ld a, [wAudioFadeOutCounterReloadValue]
ld [wAudioFadeOutCounter], a
- ldh a, [rNR50]
+ ldh a, [rAUDVOL]
and a ; has the volume reached 0?
jr z, .fadeOutComplete
ld b, a
@@ -31,7 +31,7 @@ FadeOutAudio::
dec a
swap a
or c
- ldh [rNR50], a
+ ldh [rAUDVOL], a
ret
.fadeOutComplete
ld a, [wAudioFadeOutControl]