summaryrefslogtreecommitdiff
path: root/home/clear_sprites.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 13:03:21 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 13:03:21 -0400
commit6bd86e10c32cd7b464425adfc01621f3ff6726aa (patch)
tree808b190bd43f5024cc694c4e229167ce7928b4d4 /home/clear_sprites.asm
parentc9c59dc34323a5e0b1886db5f845c8d41620826e (diff)
Reorganize home header
Diffstat (limited to 'home/clear_sprites.asm')
-rw-r--r--home/clear_sprites.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/home/clear_sprites.asm b/home/clear_sprites.asm
new file mode 100644
index 00000000..34f4b4ec
--- /dev/null
+++ b/home/clear_sprites.asm
@@ -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