From c48cf5565c9ece114d41abc913e7649e118ca4e6 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 27 May 2018 01:04:28 +0200 Subject: Move home to its own file --- Makefile | 2 +- home.asm | 20 ++++++++++++++++++++ main.asm | 4 ---- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 home.asm 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 - -- cgit v1.2.3