diff --git a/tools/imagecon/Makefile b/tools/imagecon/Makefile index 58232ea..182f573 100644 --- a/tools/imagecon/Makefile +++ b/tools/imagecon/Makefile @@ -17,6 +17,10 @@ REFERENCE_SHARED_PALETTE=$(REFERENCE_SHARED_BASE).pal SHARED_PALETTE=$(SHARED_BASE).pal USED_PALETTE=$(SHARED_BASE).bin $(SHARED_BASE)-copper-list.s +EHB_IMAGE=../../assets/gigi.png +EHB_BASE=out/ehb +REFERENCE_EHB_BASE=reference/ehb + $(IMAGECON): out bin $(OBJS) gcc $(OBJS) -o $(IMAGECON) $(LIBS) @@ -46,7 +50,10 @@ $(OUTPUT_BASE).bin: $(IMAGECON) $(IMAGECON) --input $(TEST_IMAGE) --output $(OUTPUT_BASE) --output-copperlist --output-bitplanes --output-grey-palette --output-palette-asm --colors 32 --quantize $(IMAGECON) --input $(BOB_IMAGE) --output $(BOB_BASE) --output-mask --colors 32 --quantize -test: $(IMAGECON) $(OUTPUT_BASE).bin $(SHARED_PALETTE) $(USED_PALETTE) +$(EHB_BASE).bin: $(EHB_IMAGE) + $(IMAGECON) --input $(EHB_IMAGE) --output $(EHB_BASE) --output-bitplanes --colors 32 --quantize --extra-half-brite --output-copperlist + +test: $(IMAGECON) $(OUTPUT_BASE).bin $(SHARED_PALETTE) $(USED_PALETTE) $(EHB_BASE).bin diff $(OUTPUT_BASE).bin $(REFERENCE_BASE).bin diff $(OUTPUT_BASE)-copper-list.s $(REFERENCE_BASE)-copper-list.s diff $(OUTPUT_BASE)-palette.s $(REFERENCE_BASE)-palette.s @@ -55,6 +62,8 @@ test: $(IMAGECON) $(OUTPUT_BASE).bin $(SHARED_PALETTE) $(USED_PALETTE) diff $(SHARED_BASE).bin $(REFERENCE_SHARED_BASE).bin diff $(SHARED_BASE)-copper-list.s $(REFERENCE_SHARED_BASE)-copper-list.s diff $(BOB_BASE)-mask.bin $(REFERENCE_BOB_BASE)-mask.bin + diff $(EHB_BASE).bin $(REFERENCE_EHB_BASE).bin + diff $(EHB_BASE)-copper-list.s $(REFERENCE_EHB_BASE)-copper-list.s @echo "______ ___ _____ _____ ___________ " @echo "| ___ \/ _ \ / ___/ ___| ___| _ \ " diff --git a/tools/imagecon/reference/ehb-copper-list.s b/tools/imagecon/reference/ehb-copper-list.s new file mode 100644 index 0000000..41fbde4 --- /dev/null +++ b/tools/imagecon/reference/ehb-copper-list.s @@ -0,0 +1,32 @@ + dc.w $180,$521 + dc.w $182,$852 + dc.w $184,$100 + dc.w $186,$8aa + dc.w $188,$79a + dc.w $18a,$ea6 + dc.w $18c,$e95 + dc.w $18e,$210 + dc.w $190,$631 + dc.w $192,$421 + dc.w $194,$d85 + dc.w $196,$552 + dc.w $198,$642 + dc.w $19a,$799 + dc.w $19c,$952 + dc.w $19e,$741 + dc.w $1a0,$689 + dc.w $1a2,$a63 + dc.w $1a4,$c74 + dc.w $1a6,$664 + dc.w $1a8,$444 + dc.w $1aa,$566 + dc.w $1ac,$331 + dc.w $1ae,$987 + dc.w $1b0,$fb7 + dc.w $1b2,$775 + dc.w $1b4,$787 + dc.w $1b6,$aa8 + dc.w $1b8,$863 + dc.w $1ba,$fc8 + dc.w $1bc,$cca + dc.w $1be,$fec diff --git a/tools/imagecon/reference/ehb.bin b/tools/imagecon/reference/ehb.bin new file mode 100644 index 0000000..10960b9 Binary files /dev/null and b/tools/imagecon/reference/ehb.bin differ