shithub: pokered

Download patch

ref: 63a594a3c5591c9de176f8543d1440048ca75a98
parent: df2b3b739c9cf8a5d63d6f8f342e63bc67525ebc
author: IIMarckus <[email protected]>
date: Mon Jan 4 15:17:37 EST 2010

outsource the ROM header to rgbfix

hg-commit-id: 0a810b8fee68


--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 pokered.gbc: pokered.asm
 	rgbasm -opokered.obj pokered.asm
 	xlink -z0 pokered.link
-	rgbfix -p -v pokered.gbc
+	rgbfix -p0 "-tPOKEMON RED" -k01 -s -j -b13 -m3 -v pokered.gbc
 	cmp baserom.gbc pokered.gbc
 
 clean:
--- a/pokered.asm
+++ b/pokered.asm
@@ -1,5 +1,13 @@
 SECTION "bank0",HOME[0]
-INCBIN "baserom.gbc",$0,$4000
+INCBIN "baserom.gbc",$0,$100
+
+SECTION "romheader",HOME[$100]
+nop
+jp Start
+
+Section "start",HOME[$150]
+Start:
+INCBIN "baserom.gbc",$150,$4000 - $150
 
 SECTION "bank1",DATA,BANK[$1]
 INCBIN "baserom.gbc",$4000,$4000