aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorColton G. Rushton <colton51919@gmail.com>2022-07-09 18:18:20 -0300
committerGitHub <noreply@github.com>2022-07-09 17:18:20 -0400
commitc0085ea1b21a171ef9f4c73ad28a5306558f2cc3 (patch)
tree311a4a64f13395e2f711b46f8b13bbc1b5ff849e /home
parentFix typo: HeatButt -> HeadButt (diff)
downloadpokeyellow-c0085ea1b21a171ef9f4c73ad28a5306558f2cc3.tar.gz
pokeyellow-c0085ea1b21a171ef9f4c73ad28a5306558f2cc3.tar.xz
pokeyellow-c0085ea1b21a171ef9f4c73ad28a5306558f2cc3.zip
wOAMBuffer -> wShadowOAM (#95)
Diffstat (limited to 'home')
-rw-r--r--home/clear_sprites.asm6
-rw-r--r--home/oam.asm2
2 files changed, 4 insertions, 4 deletions
diff --git a/home/clear_sprites.asm b/home/clear_sprites.asm
index 79cc99d6..6d1066fa 100644
--- a/home/clear_sprites.asm
+++ b/home/clear_sprites.asm
@@ -1,7 +1,7 @@
ClearSprites::
xor a
- ld hl, wOAMBuffer
- ld b, wOAMBufferEnd - wOAMBuffer
+ ld hl, wShadowOAM
+ ld b, wShadowOAMEnd - wShadowOAM
.loop
ld [hli], a
dec b
@@ -10,7 +10,7 @@ ClearSprites::
HideSprites::
ld a, 160
- ld hl, wOAMBuffer
+ ld hl, wShadowOAM
ld de, 4
ld b, 40
.loop
diff --git a/home/oam.asm b/home/oam.asm
index 8a940d97..8be59f6e 100644
--- a/home/oam.asm
+++ b/home/oam.asm
@@ -4,7 +4,7 @@
; c = X coordinate of upper left corner of sprite
; de = base address of 4 tile number and attribute pairs
WriteOAMBlock::
- ld h, HIGH(wOAMBuffer)
+ ld h, HIGH(wShadowOAM)
swap a ; multiply by 16
ld l, a
call .writeOneEntry ; upper left