From c4d5b66caf503cb4659af74be1d8de57320ea6fb Mon Sep 17 00:00:00 2001 From: El-Virus <36414402+El-Virus@users.noreply.github.com> Date: Sat, 22 May 2021 11:11:12 +0000 Subject: [PATCH] Fix Makefile PuCrunch Bug Fixed the PuCrunch bug described in #9 as @ytmytm suggested. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e4d6636..bcf45883 100755 --- a/Makefile +++ b/Makefile @@ -362,7 +362,7 @@ ifeq ($(VARIANT), bsw128) else @echo Creating $@ from kernal.bin $(DRIVE).bin $(INPUT).bin - printf "\x00\x50" > $(BUILD_DIR)/tmp.bin + awk 'BEGIN { printf "%c%c", 0, 80 }' > $(BUILD_DIR)/tmp.bin dd if=$(BUILD_DIR)/kernal/kernal.bin bs=1 count=16384 >> $(BUILD_DIR)/tmp.bin 2> /dev/null cat $(BUILD_DIR)/drv/$(DRIVE).bin /dev/zero | dd bs=1 count=3456 >> $(BUILD_DIR)/tmp.bin 2> /dev/null cat $(BUILD_DIR)/kernal/kernal.bin /dev/zero | dd bs=1 count=24832 skip=19840 >> $(BUILD_DIR)/tmp.bin 2> /dev/null