utils: added `Makefile`, fixed compilation of some files

+ added `.gitignore`, `Makefile`
* fixed `backup.asm`, `corclean.asm`, `corebios.asm`, `upgrade.asm`
- removed binaries `BACK16M`, `BACKUP`, `BACKZX2`, `CORCLEAN`, `COREBIOS`, `ROMSBACK`, `ROMSUPGR`, `UPGR16M`, `UPGRADE`, `UPGRZX2`. Use `Makefile` to build from sources
This commit is contained in:
Ivan Tatarinov 2021-04-24 12:07:55 +03:00
parent 0e984157b7
commit 71ecff82a5
16 changed files with 95 additions and 20 deletions

5
utils/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
#
# SPDX-License-Identifier: CC0-1.0
build

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

90
utils/Makefile Normal file
View File

@ -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 <ivan-tat@ya.ru>
#
# 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))

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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