aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2024-01-03 10:59:04 -0500
committerGitHub <noreply@github.com>2024-01-03 10:59:04 -0500
commitfabe2b3fb3fb5a849c5220298acabbdc9ad30f3b (patch)
treeaeec4e2e98eb8a8ad122ebb59346b1028bf92b69 /home
parentUse BANK("Trainer Sight") to apply to all four possible functions in the "Tra... (diff)
downloadpokeyellow-fabe2b3fb3fb5a849c5220298acabbdc9ad30f3b.tar.gz
pokeyellow-fabe2b3fb3fb5a849c5220298acabbdc9ad30f3b.tar.xz
pokeyellow-fabe2b3fb3fb5a849c5220298acabbdc9ad30f3b.zip
Update to RGBDS 0.7.0 (#447)
Diffstat (limited to 'home')
-rw-r--r--home/header.asm2
-rw-r--r--home/init.asm12
2 files changed, 8 insertions, 6 deletions
diff --git a/home/header.asm b/home/header.asm
index c12a0565..5b8de838 100644
--- a/home/header.asm
+++ b/home/header.asm
@@ -79,3 +79,5 @@ Start::
; This makes sure it doesn't get used for anything else.
ds $0150 - @
+
+ENDSECTION
diff --git a/home/init.asm b/home/init.asm
index db21efbc..619a2493 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
+ ld hl, STARTOF(HRAM)
+ ld bc, SIZEOF(HRAM)
call FillMemory
call ClearSprites
@@ -119,8 +119,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