Merge pull request #44 from ivan-tat/master

utils: added ability to build `BACKZXD` and `UPGRZXD`
This commit is contained in:
Ivan Tatarinov 2021-04-24 13:15:11 +03:00 committed by GitHub
commit 9bbef3a29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 2 deletions

Binary file not shown.

View File

@ -20,6 +20,7 @@ AFLAGS = --nobanner
TARGETS=\
BACK16M\
BACKZX2\
BACKZXD\
BACKUP\
CORCLEAN\
COREBIOS\
@ -27,6 +28,7 @@ TARGETS=\
ROMSUPGR\
UPGR16M\
UPGRZX2\
UPGRZXD\
UPGRADE
.PHONY: all
@ -43,7 +45,16 @@ $(BUILD_DIR)/BACK16M: back16m.asm\
$(BUILD_DIR)/BACKZX2: back32m.asm\
zxuno.inc\
| $(BUILD_DIR)
echo ' define zxdos 1' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f back32m.def
$(BUILD_DIR)/BACKZXD: back32m.asm\
zxuno.inc\
| $(BUILD_DIR)
echo ' define zxdos 0' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f back32m.def
$(BUILD_DIR)/BACKUP: backup.asm\
zxuno.inc\
@ -78,7 +89,16 @@ $(BUILD_DIR)/UPGR16M: upgr16m.asm\
$(BUILD_DIR)/UPGRZX2: upgr32m.asm\
zxuno.inc\
| $(BUILD_DIR)
echo ' define zxdos 1' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f upgr32m.def
$(BUILD_DIR)/UPGRZXD: upgr32m.asm\
zxuno.inc\
| $(BUILD_DIR)
echo ' define zxdos 0' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f upgr32m.def
$(BUILD_DIR)/UPGRADE: upgrade.asm\
zxuno.inc\
@ -87,4 +107,5 @@ $(BUILD_DIR)/UPGRADE: upgrade.asm\
.PHONY: clean
clean:
rm -f back32m.def upgr32m.def
rm -f $(foreach t,$(TARGETS),$(BUILD_DIR)/$(t))

Binary file not shown.

View File

@ -7,6 +7,7 @@
; wrongly set to 0.
;
; Copyright (C) 2019, 2021 Antonio Villena
; Contributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@ -22,12 +23,15 @@
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
; SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
;
; SPDX-License-Identifier: GPL-3.0-only
; Compatible compilers:
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
define zxdos 1
; definition of "zxdos" flag
include back32m.def
IF zxdos=1
output BACKZX2

View File

@ -4,6 +4,7 @@
; It must be run while using a "root" mode ROM.
;
; Copyright (C) 2019, 2021 Antonio Villena
; Contributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@ -19,12 +20,15 @@
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
; SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
;
; SPDX-License-Identifier: GPL-3.0-only
; Compatible compilers:
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
define zxdos 1
; definition of "zxdos" flag
include upgr32m.def
IF zxdos=1
output UPGRZX2