diff --git a/utils/.gitignore b/utils/.gitignore new file mode 100644 index 0000000..82e29a6 --- /dev/null +++ b/utils/.gitignore @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: 2021 Ivan Tatarinov +# +# SPDX-License-Identifier: CC0-1.0 + +build diff --git a/utils/BACK16M b/utils/BACK16M deleted file mode 100644 index 317858d..0000000 Binary files a/utils/BACK16M and /dev/null differ diff --git a/utils/BACKUP b/utils/BACKUP deleted file mode 100644 index 5441c94..0000000 Binary files a/utils/BACKUP and /dev/null differ diff --git a/utils/BACKZX2 b/utils/BACKZX2 deleted file mode 100644 index fd8c857..0000000 Binary files a/utils/BACKZX2 and /dev/null differ diff --git a/utils/CORCLEAN b/utils/CORCLEAN deleted file mode 100644 index f894554..0000000 Binary files a/utils/CORCLEAN and /dev/null differ diff --git a/utils/COREBIOS b/utils/COREBIOS deleted file mode 100644 index 02cf2fa..0000000 Binary files a/utils/COREBIOS and /dev/null differ diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 0000000..1cd1841 --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,90 @@ +# Supported environments: +# * GNU on Linux, FreeBSD etc. +# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL) +# +# Build: +# make +# Clean: +# make clean +# +# SPDX-FileCopyrightText: 2021 Ivan Tatarinov +# +# SPDX-License-Identifier: GPL-3.0-or-later + +include ../sdk/common.mk + +BUILD_DIR = build +AS = sjasmplus +AFLAGS = --nobanner + +TARGETS=\ + BACK16M\ + BACKZX2\ + BACKUP\ + CORCLEAN\ + COREBIOS\ + ROMSBACK\ + ROMSUPGR\ + UPGR16M\ + UPGRZX2\ + UPGRADE + +.PHONY: all +all: $(foreach t,$(TARGETS),$(BUILD_DIR)/$(t)) + +$(BUILD_DIR): + mkdir -p $@ + +$(BUILD_DIR)/BACK16M: back16m.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/BACKZX2: back32m.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/BACKUP: backup.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/CORCLEAN: corclean.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/COREBIOS: corebios.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/ROMSBACK: romsback.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/ROMSUPGR: romsupgr.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/UPGR16M: upgr16m.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/UPGRZX2: upgr32m.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +$(BUILD_DIR)/UPGRADE: upgrade.asm\ + zxuno.inc\ + | $(BUILD_DIR) + $(AS) $(AFLAGS) --raw=$@ $< + +.PHONY: clean +clean: + rm -f $(foreach t,$(TARGETS),$(BUILD_DIR)/$(t)) diff --git a/utils/ROMSBACK b/utils/ROMSBACK deleted file mode 100644 index f0dbe6c..0000000 Binary files a/utils/ROMSBACK and /dev/null differ diff --git a/utils/ROMSUPGR b/utils/ROMSUPGR deleted file mode 100644 index b388a61..0000000 Binary files a/utils/ROMSUPGR and /dev/null differ diff --git a/utils/UPGR16M b/utils/UPGR16M deleted file mode 100644 index 7efb623..0000000 Binary files a/utils/UPGR16M and /dev/null differ diff --git a/utils/UPGRADE b/utils/UPGRADE deleted file mode 100644 index ee9f0a8..0000000 Binary files a/utils/UPGRADE and /dev/null differ diff --git a/utils/UPGRZX2 b/utils/UPGRZX2 deleted file mode 100644 index f17d58c..0000000 Binary files a/utils/UPGRZX2 and /dev/null differ diff --git a/utils/backup.asm b/utils/backup.asm index c68476e..a91ac7d 100644 --- a/utils/backup.asm +++ b/utils/backup.asm @@ -25,11 +25,6 @@ include zxuno.inc - macro wreg dir, dato - call rst28 - defb dir, dato - endm - org $2000 ; comienzo de la ejecución de los comandos ESXDOS Main ld bc, zxuno_port diff --git a/utils/corclean.asm b/utils/corclean.asm index 1e710ea..f15fbff 100644 --- a/utils/corclean.asm +++ b/utils/corclean.asm @@ -25,11 +25,6 @@ include zxuno.inc - macro wreg dir, dato - call rst28 - defb dir, dato - endm - org $2000 ; comienzo de la ejecución de los comandos ESXDOS Main ld bc, zxuno_port diff --git a/utils/corebios.asm b/utils/corebios.asm index a9161ed..dac91f1 100644 --- a/utils/corebios.asm +++ b/utils/corebios.asm @@ -25,11 +25,6 @@ include zxuno.inc - macro wreg dir, dato - call rst28 - defb dir, dato - endm - org $2000 ; comienzo de la ejecución de los comandos ESXDOS Main ld bc, zxuno_port diff --git a/utils/upgrade.asm b/utils/upgrade.asm index 8cdf54e..fb0e27d 100644 --- a/utils/upgrade.asm +++ b/utils/upgrade.asm @@ -25,11 +25,6 @@ include zxuno.inc - macro wreg dir, dato - call rst28 - defb dir, dato - endm - org $2000 ; comienzo de la ejecución de los comandos ESXDOS Main ld bc, zxuno_port