aboutsummaryrefslogtreecommitdiffstats
path: root/audio/engine_3.asm
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-23 23:51:44 -0400
committerGitHub <noreply@github.com>2024-09-23 23:51:44 -0400
commit8f1dcf07e598c6e3d34b5d255f04faff1667d83b (patch)
treefe962b2c23dd40ad3d69f7145a46a002c3285a76 /audio/engine_3.asm
parentRemove the Discord webhook and tools/unnamed.py (diff)
downloadpokeyellow-8f1dcf07e598c6e3d34b5d255f04faff1667d83b.tar.gz
pokeyellow-8f1dcf07e598c6e3d34b5d255f04faff1667d83b.tar.xz
pokeyellow-8f1dcf07e598c6e3d34b5d255f04faff1667d83b.zip
Identify more flag bits (#464)
Diffstat (limited to 'audio/engine_3.asm')
-rw-r--r--audio/engine_3.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/engine_3.asm b/audio/engine_3.asm
index e5d285a3..f524875f 100644
--- a/audio/engine_3.asm
+++ b/audio/engine_3.asm
@@ -15,9 +15,9 @@ Audio3_UpdateMusic::
ld a, [wMuteAudioAndPauseMusic]
and a
jr z, .applyAffects
- bit 7, a
+ bit BIT_MUTE_AUDIO, a
jr nz, .nextChannel
- set 7, a
+ set BIT_MUTE_AUDIO, a
ld [wMuteAudioAndPauseMusic], a
xor a ; disable all channels' output
ldh [rNR51], a
@@ -197,7 +197,7 @@ Audio3_sound_ret:
.dontDisable
jr .afterDisable
.returnFromCall
- res 1, [hl]
+ res BIT_SOUND_CALL, [hl]
ld d, $0
ld a, c
add a
@@ -377,8 +377,8 @@ Audio3_toggle_perfect_pitch:
ld hl, wChannelFlags1
add hl, bc
ld a, [hl]
- xor $1
- ld [hl], a ; flip bit 0 of wChannelFlags1
+ xor 1 << BIT_PERFECT_PITCH
+ ld [hl], a
jp Audio3_sound_ret
Audio3_vibrato: