summaryrefslogtreecommitdiff
path: root/home/init.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/init.asm')
-rw-r--r--home/init.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/init.asm b/home/init.asm
index 33a727371..52da71ece 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -21,15 +21,15 @@ Reset::
_Start::
cp $11
jr z, .cgb
- xor a
+ xor a ; FALSE
jr .load
.cgb
- ld a, $1
+ ld a, TRUE
.load
ldh [hCGB], a
- ld a, $1
+ ld a, TRUE
ldh [hSystemBooted], a
Init::
@@ -74,7 +74,7 @@ Init::
or c
jr nz, .ByteFill
- ld sp, wStack
+ ld sp, wStackTop
; Clear HRAM
ldh a, [hCGB]
@@ -97,7 +97,7 @@ Init::
call ClearSprites
call ClearsScratch
- ld a, BANK(GameInit) ; aka BANK(WriteOAMDMACodeToHRAM)
+ ld a, BANK(WriteOAMDMACodeToHRAM) ; aka BANK(GameInit)
rst Bankswitch
call WriteOAMDMACodeToHRAM
@@ -142,7 +142,7 @@ Init::
farcall StartClock
- xor a
+ xor a ; SRAM_DISABLE
ld [MBC3LatchClock], a
ld [MBC3SRamEnable], a
@@ -160,7 +160,7 @@ Init::
call DelayFrame
- predef InitSGBBorder ; SGB init
+ predef InitSGBBorder
call InitSound
xor a