Reorganize home header

This commit is contained in:
Rangi 2020-07-03 13:03:21 -04:00
parent c9c59dc343
commit 6bd86e10c3
6 changed files with 143 additions and 192 deletions

21
home/clear_sprites.asm Normal file
View 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