wOAMBuffer -> wShadowOAM (#370)

This commit is contained in:
Colton G. Rushton 2022-07-09 18:18:18 -03:00 committed by GitHub
parent b045ac4f16
commit cc46b0e510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 105 additions and 105 deletions

View file

@ -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

View file

@ -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