diff options
author | pfero <ohpee@loves.dicksinhisan.us> | 2018-06-05 23:59:08 +0200 |
---|---|---|
committer | pfero <ohpee@loves.dicksinhisan.us> | 2018-06-05 23:59:08 +0200 |
commit | e9a8f8a769f77c289a4aa38423a39e00425b4813 (patch) | |
tree | bd32ad7b774f4e0879d8ca3a7e6e310acbd59091 /home/overworld.asm | |
parent | 7439c3107e8d972f88221a8d45781f3388d9ca64 (diff) |
Finish disassembling the names functions
Diffstat (limited to 'home/overworld.asm')
-rw-r--r-- | home/overworld.asm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/home/overworld.asm b/home/overworld.asm index 4b10b72..56e4e90 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -1,5 +1,39 @@ INCLUDE "constants.asm" +SECTION "RunMapScript", ROM0[$20ff] +RunMapScript:: ; 00:20ff + push hl + push de + push bc + ld a, [wMapScriptNumber] + add a + add a + ld d, 0 + ld e, a + add hl, de + ld a, [hli] + ld h, [hl] + ld l, a + 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 + + if DEBUG SECTION "Startmenu and Select Button Check", ROM0[$2C05] else |