use rgbfix to fix the header bytes

This commit is contained in:
Bryan Bishop 2012-05-30 14:13:14 -05:00
parent cb72db3779
commit 802c7780ac
2 changed files with 10 additions and 1 deletions

View File

@ -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:

View File

@ -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