summaryrefslogtreecommitdiff
path: root/home/init.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/init.asm')
-rw-r--r--home/init.asm23
1 files changed, 6 insertions, 17 deletions
diff --git a/home/init.asm b/home/init.asm
index ec541ad16..dc1f538be 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -1,4 +1,4 @@
-Reset:: ; 150
+Reset::
di
call MapSetup_Sound_Off
xor a
@@ -17,10 +17,8 @@ Reset:: ; 150
call DelayFrames
jr Init
-; 16e
-
-_Start:: ; 16e
+_Start::
cp $11
jr z, .cgb
xor a
@@ -33,11 +31,8 @@ _Start:: ; 16e
ld [hCGB], a
ld a, $1
ld [hSystemBooted], a
-; 17d
-
-
-Init:: ; 17d
+Init::
di
xor a
@@ -102,7 +97,6 @@ Init:: ; 17d
call ClearSprites
call ClearsScratch
-
ld a, BANK(WriteOAMDMACodeToHRAM)
rst Bankswitch
@@ -172,10 +166,8 @@ Init:: ; 17d
xor a
ld [wMapMusic], a
jp GameInit
-; 245
-
-ClearVRAM:: ; 245
+ClearVRAM::
; Wipe VRAM banks 0 and 1
ld a, 1
@@ -190,9 +182,8 @@ ClearVRAM:: ; 245
xor a
call ByteFill
ret
-; 25a
-ClearWRAM:: ; 25a
+ClearWRAM::
; Wipe swappable WRAM banks (1-7)
; Assumes CGB or AGB
@@ -209,9 +200,8 @@ ClearWRAM:: ; 25a
cp 8
jr nc, .bank_loop ; Should be jr c
ret
-; 270
-ClearsScratch:: ; 270
+ClearsScratch::
; Wipe the first 32 bytes of sScratch
ld a, BANK(sScratch)
@@ -222,4 +212,3 @@ ClearsScratch:: ; 270
call ByteFill
call CloseSRAM
ret
-; 283