summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorISSOtm <eldredhabert0@gmail.com>2018-05-27 01:04:28 +0200
committerISSOtm <eldredhabert0@gmail.com>2018-05-27 01:04:28 +0200
commitc48cf5565c9ece114d41abc913e7649e118ca4e6 (patch)
tree67572fcaaaa0727b999f4503aea1a292321858b0
parent775d9f7ef0f8436039567e9071cd39c405e998b5 (diff)
Move home to its own file
-rw-r--r--Makefile2
-rw-r--r--home.asm20
-rw-r--r--main.asm4
3 files changed, 21 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6b95aa7..a3c4e68 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
ROMS := pokegold-spaceworld.gb
BASEROM := baserom.gb
-OBJS := main.o wram.o
+OBJS := home.o main.o wram.o
# Link objects together to build a rom.
all: $(ROMS) compare
diff --git a/home.asm b/home.asm
new file mode 100644
index 0000000..e737f78
--- /dev/null
+++ b/home.asm
@@ -0,0 +1,20 @@
+
+SECTION "Entry point", ROM0[$100]
+ nop
+ jp Init
+
+SECTION "Global check value", ROM0[$14E]
+; The ROM has an incorrect global check, so set it here
+; It is not corrected by RGBFIX
+ db $21, $C6
+
+
+SECTION "VBlank handler", ROM0[$150]
+ ; TODO
+
+
+SECTION "Init", ROM0[$52F]
+
+Init:
+ di
+ xor a \ No newline at end of file
diff --git a/main.asm b/main.asm
index 2e71857..e69de29 100644
--- a/main.asm
+++ b/main.asm
@@ -1,4 +0,0 @@
-SECTION "Init", ROM0[$100]
- nop
- jp $52f
-