diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | zero_checksum.inc | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -68,7 +68,8 @@ linkerscript: $(ROM:.gb=.link) %.map: %.gb; $(CORRECTEDROM): %-correctheader.gb: %.gb - cp $< $@ + $(RGBASM) $(RGBASMFLAGS) -o $(BUILD)/zero_checksum.o zero_checksum.inc + $(RGBLINK) -O $< -o $@ $(BUILD)/zero_checksum.o $(RGBFIX) -f hg -m 0x10 $@ $(ROM): poke%-spaceworld.gb: $(OBJS) | $(BASEROM) diff --git a/zero_checksum.inc b/zero_checksum.inc new file mode 100644 index 0000000..c35e834 --- /dev/null +++ b/zero_checksum.inc @@ -0,0 +1,6 @@ + +; This is part of a workaround to RGBFIX 0.3.7, which does not compute the global checksum correctly +; if it's not 0 in the pre-fix ROM. See https://github.com/rednex/rgbds/issues/280 + +SECTION "RGBFIX 0.3.7 workaround", ROM0[$14E] + dw 0
\ No newline at end of file |