summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-06-05 17:13:53 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-06-05 17:13:53 -0400
commit3581484fbfedf8ddda059200e9f06eaf85f49956 (patch)
treea92e8da457f7fe2539214a52adc322d136f05ac5
parentb1ec6d8da9aab9f072bbae815b41813cc5b50462 (diff)
Reset function
-rw-r--r--home/init.asm14
-rw-r--r--shim.sym1
2 files changed, 13 insertions, 2 deletions
diff --git a/home/init.asm b/home/init.asm
index ef4b745..515ce84 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -21,8 +21,20 @@ else
endc
endc
+SECTION "Init", ROM0[$51C]
-SECTION "Init", ROM0[$52F]
+Reset: ; 51c (0:051c)
+ call DisableAudio
+ call ClearPalettes
+ ei
+
+ ld hl, wJoypadFlags
+ set 7, [hl]
+
+ ld c, 32
+ call DelayFrames
+
+ jr Init
Init: ; 052f
di
diff --git a/shim.sym b/shim.sym
index a052b10..478acf0 100644
--- a/shim.sym
+++ b/shim.sym
@@ -1,5 +1,4 @@
; ROM0
-00:051C Reset
00:0D0A LoadFont
00:0D1A LoadFontExtra
00:0E18 ClearBox