Skip to content

Commit e4dd59b

Browse files
Consolidate audio init
1 parent c08b8bc commit e4dd59b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/judge/judge_copy.asm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ include "judge.inc"
1111
SECTION FRAGMENT "Judge", ROM0
1212
Judge::
1313
xor a
14-
IF !JUDGE_MUSIC
15-
ldh [rNR52], a ; Disable audio circuitry
16-
ENDC
1714
ldh [rBGP], a ; Mask out the tile update
1815

1916
ld hl, STARTOF(VRAM)

src/judge/judge_main.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ IF JUDGE_MUSIC
4545
ld a, MUSIC_DELAY
4646
ldh [hDelay], a
4747

48+
ELSE
49+
50+
ldh [rNR52], a ; Turn the APU off
51+
4852
ENDC
4953

5054
ld e, 0

0 commit comments

Comments
 (0)