Fix RGBDS 0.4.1

This commit is contained in:
mid-kid 2020-08-08 23:20:40 +02:00
parent 7f84d05e82
commit 7b88a2b8e1
5 changed files with 7 additions and 13 deletions

View File

@ -3,7 +3,7 @@ os: linux
install:
- |-
( cd
git clone -b v0.3.8 --depth=1 https://github.com/rednex/rgbds
git clone -b v0.4.1 --depth=1 https://github.com/rednex/rgbds
sudo make -C rgbds install
rm -rf rgbds
sudo apt-get install wget p7zip-full

View File

@ -65,10 +65,9 @@ linkerscript: $(ROM:.gb=-gen.link)
%.map: %.gb
$(CORRECTEDROM): %-correctheader.gb: %.gb
$(RGBASM) $(RGBASMFLAGS) -o $(BUILD)/zero_checksum.o zero_checksum.asm
$(RGBLINK) -O $< -o $@ $(BUILD)/zero_checksum.o
$(RGBFIX) -f hg -m 0x10 $@
cp $< $@
cp $(<:.gb=.sym) $(@:.gb=.sym)
$(RGBFIX) -f hg -m 0x10 $@
$(ROM): poke%-spaceworld.gb: $(OBJS) | $(BASEROM)
$(RGBLINK) -d -n $(@:.gb=.sym) -m $(@:.gb=.map) -l $(@:.gb=.link) -O $(BASEROM) -o $@ $^

View File

@ -4,6 +4,7 @@ SECTION "home/toolgear.asm", ROM0
; local charmap, global charmap won't apply
; see https://github.com/rednex/rgbds/issues/265#issuecomment-395229694
newcharmap local
charmap "", $66
charmap "", $67
charmap "", $68
@ -185,4 +186,4 @@ endc
add ""
ld [de], a
inc de
ret
ret

View File

@ -61,7 +61,7 @@
0B:5663 Function2d663
0E:4B78 LoadTrainerClassName
0E:4BA0 LoadTrainerClassName.got_name
;0E:4BA0 LoadTrainerClassName.got_name
0E:4BA9 LoadTrainerClass
0D:7E3D Function37e3d
@ -179,5 +179,5 @@
3F:64CE MonsterTest
3F:654E PicTest
3F:6750 PicTestMenu
3F:6755 PicTestMenu.loop
;3F:6755 PicTestMenu.loop
3F:67A1 CallSubGameMenu

View File

@ -1,6 +0,0 @@
; 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