mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
wOAMBuffer -> wShadowOAM (#370)
This commit is contained in:
parent
b045ac4f16
commit
cc46b0e510
29 changed files with 105 additions and 105 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue