summaryrefslogtreecommitdiff
path: root/home/map.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/map.asm')
-rw-r--r--home/map.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/map.asm b/home/map.asm
index 2583643..8ec34be 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -19,8 +19,17 @@ RunMapScript:: ; 20ff
ld de, .return
push de
jp hl
+
.return
pop bc
pop de
pop hl
ret
+
+SECTION "ClearMapBuffer", ROM0[$2123]
+ClearMapBuffer:: ; 00:2123
+ ld hl, wMapBuffer
+ ld bc, wMapBufferEnd - wMapBuffer
+ ld a, 0
+ call ByteFill
+ ret