arreglo mc

This commit is contained in:
antoniovillena 2022-09-20 23:00:48 +02:00
parent 4071ecc9e4
commit 887d7afea3
7 changed files with 10 additions and 35 deletions

BIN
SD/BIN/MC

Binary file not shown.

View File

@ -72,7 +72,6 @@ $(DESTDIR)$(bindir):
build/BACK16M: $(srcdir)/back16m.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -82,7 +81,6 @@ build/BACK16M: $(srcdir)/back16m.asm\
build/BACKZX2: $(srcdir)/back32m.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -94,7 +92,6 @@ build/BACKZX2: $(srcdir)/back32m.asm\
build/BACKZXD: $(srcdir)/back32m.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -106,7 +103,6 @@ build/BACKZXD: $(srcdir)/back32m.asm\
build/BACKUP: $(srcdir)/backup.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -115,7 +111,6 @@ build/BACKUP: $(srcdir)/backup.asm\
build/CORCLEAN: $(srcdir)/corclean.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/wrflsh.inc\
@ -126,7 +121,6 @@ build/CORCLEAN: $(srcdir)/corclean.asm\
build/COREBIOS: $(srcdir)/corebios.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/wrflsh.inc\
@ -137,7 +131,6 @@ build/COREBIOS: $(srcdir)/corebios.asm\
build/ROMSBACK: $(srcdir)/romsback.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -147,7 +140,6 @@ build/ROMSBACK: $(srcdir)/romsback.asm\
build/ROMSUPGR: $(srcdir)/romsupgr.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/rdflsh.inc\
$(INCLUDEDIR)/wrflsh.inc\
@ -158,7 +150,6 @@ build/ROMSUPGR: $(srcdir)/romsupgr.asm\
build/UPGR16M: $(srcdir)/upgr16m.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/wrflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -168,7 +159,6 @@ build/UPGR16M: $(srcdir)/upgr16m.asm\
build/UPGRZX2: $(srcdir)/upgr32m.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/wrflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -191,7 +181,6 @@ build/UPGRZXD: $(srcdir)/upgr32m.asm\
build/UPGRADE: $(srcdir)/upgrade.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/wrflsh.inc\
$(INCLUDEDIR)/rst28.inc\
@ -202,7 +191,6 @@ build/UPGRADE: $(srcdir)/upgrade.asm\
build/MC: $(srcdir)/mc.asm\
$(INCLUDEDIR)/zxuno.def\
$(INCLUDEDIR)/esxdos.def\
$(INCLUDEDIR)/rst28.mac\
$(INCLUDEDIR)/Print.inc\
$(INCLUDEDIR)/wrflsh.inc\
$(INCLUDEDIR)/rst28.inc\

View File

@ -23,15 +23,8 @@
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <https://www.gnu.org/licenses/>.
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
; SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
; SPDX-FileContributor: 2021 kounch
;
; SPDX-License-Identifier: GPL-3.0-only
; Compatible compilers:
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
; SjAsmPlus, <https://github.com/z00m128/sjasmplus>
; definition of "zxdos" flag
include back32m.def
@ -44,7 +37,6 @@
include zxuno.def
include esxdos.def
include rst28.mac
define VERSION "0.1.1"
IF zxdos=1

View File

@ -17,21 +17,13 @@
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <https://www.gnu.org/licenses/>.
;
; SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
;
; SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
; SPDX-FileContributor: 2021 kounch
;
; SPDX-License-Identifier: GPL-3.0-only
; Compatible compilers:
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
; SjAsmPlus, <https://github.com/z00m128/sjasmplus>
; output BACKUP
include zxuno.def
include esxdos.def
include rst28.mac
define VERSION "0.1"
define FLASH_FILE "FLASH.ZX1"

View File

@ -22,7 +22,6 @@
; output CORCLEAN
include zxuno.def
include rst28.mac
define VERSION "0.1"
; define ROMS_FILE "ROMS.ZX1"

View File

@ -1,4 +1,4 @@
; mc.asm - multicore load any .ZX1 core on slot 9.
; mc.asm - multicore load any .ZX1 core on slot 9 or 45.
; File must exists in current directory. It must be run while using a "root" mode ROM.
;
; Copyright (C) 2022 Antonio Villena
@ -58,6 +58,11 @@ Nonlock wreg flash_cs, 0 ; activamos spi, enviando un 0
wreg flash_cs, 1 ; desactivamos spi, enviando un 1
sub $18
jr z, Goodflsh
ld hl, $2f80
ld (Slot+1), hl
inc a
inc a
jr z, Goodflsh
call Print
dz 'Incorrect flash IC'
ret
@ -96,7 +101,7 @@ FileFound call Print
db 'Writing SPI flash', 13
dz '[', 6, ' ]', 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
ld ixl, $15
ld de, $2f80
Slot ld de, $f7c0
exx
Bucle ld a, 'o'
exx
@ -121,7 +126,7 @@ ReadOK ld a, $40
dec ixl
jr nz, Bucle
ld bc, zxuno_port
ld hl, $2f80
ld hl, (Slot+1)
ld a, core_addr
out (c), a
inc a

View File

@ -23,7 +23,6 @@
include zxuno.def
include esxdos.def
include rst28.mac
define VERSION "0.1"
define FLASH_FILE "FLASH.ZX1"