utils: divided `zxuno.inc` into `esxdos.def` and `zxuno.def`

This commit is contained in:
Ivan Tatarinov 2021-04-24 19:50:36 +03:00
parent e325d4f605
commit 3013d04671
13 changed files with 67 additions and 39 deletions

View File

@ -38,70 +38,81 @@ $(BUILD_DIR):
mkdir -p $@
$(BUILD_DIR)/BACK16M: back16m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/BACKZX2: back32m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
echo ' define zxdos 1' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f back32m.def
$(BUILD_DIR)/BACKZXD: back32m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
echo ' define zxdos 0' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f back32m.def
$(BUILD_DIR)/BACKUP: backup.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/CORCLEAN: corclean.asm\
zxuno.inc\
zxuno.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/COREBIOS: corebios.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/ROMSBACK: romsback.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/ROMSUPGR: romsupgr.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/UPGR16M: upgr16m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<
$(BUILD_DIR)/UPGRZX2: upgr32m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
echo ' define zxdos 1' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f upgr32m.def
$(BUILD_DIR)/UPGRZXD: upgr32m.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
echo ' define zxdos 0' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $<
rm -f upgr32m.def
$(BUILD_DIR)/UPGRADE: upgrade.asm\
zxuno.inc\
zxuno.def\
esxdos.def\
| $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $<

View File

@ -28,7 +28,8 @@
output BACK16M
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -31,7 +31,7 @@
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
; definition of "zxdos" flag
include back32m.def
include back32m.def
IF zxdos=1
output BACKZX2
@ -39,7 +39,8 @@
output BACKZXD
ENDIF
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -23,7 +23,8 @@
output BACKUP
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -23,7 +23,7 @@
output CORCLEAN
include zxuno.inc
include zxuno.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -23,7 +23,8 @@
output COREBIOS
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

23
utils/esxdos.def Normal file
View File

@ -0,0 +1,23 @@
; esxdos.def
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
; SPDX-License-Identifier: GPL-3.0-only
; Compatible compilers:
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
define FA_READ 0x01
define FA_WRITE 0x02
define FA_OPEN_AL 0x08
define M_GETSETDRV 0x89
define F_OPEN 0x9a
define F_CLOSE 0x9b
define F_READ 0x9d
define F_WRITE 0x9e
define F_FSTAT 0xa1
macro esxdos dato
rst $08
defb dato
endm

View File

@ -28,7 +28,8 @@
output ROMSBACK
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -27,7 +27,8 @@
output ROMSUPGR
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -26,7 +26,8 @@
output UPGR16M
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -36,7 +36,8 @@
output UPGRZXD
ENDIF
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -23,7 +23,8 @@
output UPGRADE
include zxuno.inc
include zxuno.def
include esxdos.def
org $2000 ; comienzo de la ejecución de los comandos ESXDOS

View File

@ -1,4 +1,4 @@
; zxuno.inc
; zxuno.def
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
@ -40,22 +40,7 @@
define CMD55 $77
define CMD58 $7a
define FA_READ 0x01
define FA_WRITE 0x02
define FA_OPEN_AL 0x08
define M_GETSETDRV 0x89
define F_OPEN 0x9a
define F_CLOSE 0x9b
define F_READ 0x9d
define F_WRITE 0x9e
define F_FSTAT 0xa1
macro wreg dir, dato
call rst28
defb dir, dato
endm
macro esxdos dato
rst $08
defb dato
endm