mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 15:12:18 +13:00
Reorganize home header
This commit is contained in:
parent
c9c59dc343
commit
6bd86e10c3
6 changed files with 143 additions and 192 deletions
21
home/clear_sprites.asm
Normal file
21
home/clear_sprites.asm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
ClearSprites::
|
||||
xor a
|
||||
ld hl, wOAMBuffer
|
||||
ld b, 40 * 4
|
||||
.loop
|
||||
ld [hli], a
|
||||
dec b
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
HideSprites::
|
||||
ld a, 160
|
||||
ld hl, wOAMBuffer
|
||||
ld de, 4
|
||||
ld b, 40
|
||||
.loop
|
||||
ld [hl], a
|
||||
add hl, de
|
||||
dec b
|
||||
jr nz, .loop
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue