summaryrefslogtreecommitdiff
path: root/home/init.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/init.asm')
-rw-r--r--home/init.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/home/init.asm b/home/init.asm
index e5840e65..bb70615d 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -54,7 +54,7 @@ rLCDC_DEFAULT EQU %11100011
call ClearVram
ld hl, HRAM_Begin
- ld bc, HRAM_End - HRAM_Begin
+ ld bc, HRAM_End - HRAM_Begin - 1
call FillMemory
call ClearSprites
@@ -70,6 +70,8 @@ rLCDC_DEFAULT EQU %11100011
ldh [hSCX], a
ldh [hSCY], a
ldh [rIF], a
+ ld [wc0f3], a
+ ld [wc0f4], a
ld a, 1 << VBLANK + 1 << TIMER + 1 << SERIAL
ldh [rIE], a
@@ -133,5 +135,4 @@ StopAllSounds::
ld [wAudioFadeOutControl], a
ld [wNewSoundID], a
ld [wLastMusicSoundID], a
- dec a
- jp PlaySound
+ jp StopAllMusic