aboutsummaryrefslogtreecommitdiffstats
path: root/home/init.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2024-05-05 11:06:40 -0500
committerdannye <33dannye@gmail.com>2024-05-05 11:06:40 -0500
commitb135272f9510ed78e8c062efe552d6dbdcc1523f (patch)
tree5dc1941a3b42651f268dbb90f6e3170ccd977408 /home/init.asm
parentRemove pcm.py since pcm.c handles it (diff)
parentUse constant in wram for hidden item flags (#445) (diff)
downloadpokeyellow-b135272f9510ed78e8c062efe552d6dbdcc1523f.tar.gz
pokeyellow-b135272f9510ed78e8c062efe552d6dbdcc1523f.tar.xz
pokeyellow-b135272f9510ed78e8c062efe552d6dbdcc1523f.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/init.asm')
-rw-r--r--home/init.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/home/init.asm b/home/init.asm
index 58264dcf..f6d6d372 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -41,8 +41,8 @@ DEF rLCDC_DEFAULT EQU %11100011
ld sp, wStack
- ld hl, WRAM0_Begin
- ld bc, WRAM1_End - WRAM0_Begin
+ ld hl, STARTOF(WRAM0)
+ ld bc, SIZEOF(WRAM0)
.loop
ld [hl], 0
inc hl
@@ -53,8 +53,8 @@ DEF rLCDC_DEFAULT EQU %11100011
call ClearVram
- ld hl, HRAM_Begin
- ld bc, HRAM_End - HRAM_Begin - 1
+ ld hl, STARTOF(HRAM)
+ ld bc, SIZEOF(HRAM) - 1
call FillMemory
call ClearSprites
@@ -121,8 +121,8 @@ DEF rLCDC_DEFAULT EQU %11100011
jp PrepareTitleScreen
ClearVram::
- ld hl, VRAM_Begin
- ld bc, VRAM_End - VRAM_Begin
+ ld hl, STARTOF(VRAM)
+ ld bc, SIZEOF(VRAM)
xor a
jp FillMemory