summaryrefslogtreecommitdiff
path: root/home/init.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-16 15:49:32 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-16 15:49:32 -0400
commitc552390a15ae27a24109f369264f1caa6b9f8295 (patch)
tree50a4aafba10095097004f09452c055b44b564c49 /home/init.asm
parent7b2515d1e47198322407081dfe57c7ca49f22c5f (diff)
Harmonize home/ with pokegold
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