summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-30 14:13:14 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-30 14:13:14 -0500
commit802c7780ac23d60c8071009e80ab933594e2885a (patch)
tree0197f0b03ecdc85a1744359dad1f5673123bff5b
parentcb72db37797df0ad83b6417e069fa886ce6ded4f (diff)
use rgbfix to fix the header bytes
-rw-r--r--Makefile1
-rw-r--r--main.asm10
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cd72ccde2..441675cdd 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ pokecrystal.o: pokecrystal.asm main.tx constants.asm wram.asm ${TEXTFILES}
pokecrystal.gbc: pokecrystal.o
rgblink -o $@ $<
+ rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
cmp baserom.gbc $@
clean:
diff --git a/main.asm b/main.asm
index cbd87e4c0..8c1b7b8ba 100644
--- a/main.asm
+++ b/main.asm
@@ -1,6 +1,14 @@
SECTION "bank0",HOME
-INCBIN "baserom.gbc",$00,$52f - $00
+INCBIN "baserom.gbc",0,$100
+
+SECTION "romheader",HOME[$100]
+ nop
+ jp $016e
+
+SECTION "start",HOME[$150]
+
+INCBIN "baserom.gbc",$150,$52f - $150
IncGradGBPalTable_01: ; 0x52f
db %11111111 ;BG Pal