aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorColton G. Rushton <colton51919@gmail.com>2022-07-09 18:18:18 -0300
committerGitHub <noreply@github.com>2022-07-09 17:18:18 -0400
commitcc46b0e510e07f2e7a0d14732c02a2f416eac9e1 (patch)
tree2c3123876e48b8888b940aa239139c64e1eade82 /home
parentRemove comment about addresses (diff)
downloadpokeyellow-cc46b0e510e07f2e7a0d14732c02a2f416eac9e1.tar.gz
pokeyellow-cc46b0e510e07f2e7a0d14732c02a2f416eac9e1.tar.xz
pokeyellow-cc46b0e510e07f2e7a0d14732c02a2f416eac9e1.zip
wOAMBuffer -> wShadowOAM (#370)
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