Update SameBoot to support RGBDS 0.6.x, RGBDS 0.4.x support dropped. Closes #500, #501

This commit is contained in:
Lior Halphon 2022-10-04 14:21:54 +03:00
parent 55507274d6
commit c0966ceeba
3 changed files with 377 additions and 306 deletions

View File

@ -329,7 +329,7 @@ FirstChecksumWithDuplicate:
ChecksumsEnd:
PalettePerChecksum:
palette_index: MACRO ; palette, flags
MACRO palette_index ; palette, flags
db ((\1)) | (\2) ; | $80 means game requires DMG boot tilemap
ENDM
palette_index 0, 0 ; Default Palette
@ -433,10 +433,10 @@ Dups4thLetterArray:
; We assume the last three arrays fit in the same $100 byte page!
PaletteCombinations:
palette_comb: MACRO ; Obj0, Obj1, Bg
MACRO palette_comb ; Obj0, Obj1, Bg
db (\1) * 8, (\2) * 8, (\3) *8
ENDM
raw_palette_comb: MACRO ; Obj0, Obj1, Bg
MACRO raw_palette_comb ; Obj0, Obj1, Bg
db (\1) * 2, (\2) * 2, (\3) * 2
ENDM
palette_comb 4, 4, 29

673
BootROMs/hardware.inc Normal file → Executable file

File diff suppressed because it is too large Load Diff

View File

@ -467,12 +467,14 @@ $(BIN)/SDL/Palettes: Misc/Palettes
$(OBJ)/%.2bpp: %.png
-@$(MKDIR) -p $(dir $@)
rgbgfx -h -u -o $@ $<
rgbgfx $(if $(filter $(shell echo 'print __RGBDS_MAJOR__ || (!__RGBDS_MAJOR__ && __RGBDS_MINOR__ > 5)' | rgbasm -), $$0), -h -u, -Z -u -c embedded) -o $@ $<
$(OBJ)/BootROMs/SameBoyLogo.pb12: $(OBJ)/BootROMs/SameBoyLogo.2bpp $(PB12_COMPRESS)
-@$(MKDIR) -p $(dir $@)
$(realpath $(PB12_COMPRESS)) < $< > $@
$(PB12_COMPRESS): BootROMs/pb12.c
-@$(MKDIR) -p $(dir $@)
$(NATIVE_CC) -std=c99 -Wall -Werror $< -o $@
$(BIN)/BootROMs/cgb0_boot.bin: BootROMs/cgb_boot.asm