From 5d1a21d50b6f58a8516eedc33452f56b0a68998a Mon Sep 17 00:00:00 2001 From: Ivan Tatarinov Date: Mon, 17 May 2021 15:38:44 +0300 Subject: [PATCH] firmware: updated `bootloader.asm` to use new version of `scroll.bin.zx7b` --- firmware/bootloader.asm | 49 +++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/firmware/bootloader.asm b/firmware/bootloader.asm index 916f492..9e0acb2 100644 --- a/firmware/bootloader.asm +++ b/firmware/bootloader.asm @@ -1,17 +1,42 @@ +; firmware.asm +; +; Copyright (C) 2016-2021 Antonio Villena +; Contributors: +; 2015 Einar Saukas (ZX7 Backwards) +; 2021 Ivan Tatarinov +; +; 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 +; the Free Software Foundation, version 3. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . +; +; SPDX-FileCopyrightText: Copyright (C) 2016-2021 Antonio Villena +; +; SPDX-FileContributor: 2015 Einar Saukas (ZX7 Backwards) +; SPDX-FileContributor: 2021 Ivan Tatarinov +; +; SPDX-License-Identifier: GPL-3.0-only + +; Compatible compilers: +; SJAsmPlus, +; SJAsmPlus by aprisobal, + + output bootloader.rom + + include zxuno.def + macro wreg dir, dato rst $28 defb dir, dato endm - output bootloader.rom - define zxuno_port $fc3b - define master_conf 0 - define master_mapper 1 - define flash_spi 2 - define flash_cs 3 - define joyconf 6 - define scandbl_ctrl 11 - di ld sp, $bfff-ini+6 wreg flash_cs, 1 ; desactivamos spi, enviando un 0 @@ -51,7 +76,7 @@ nmi66 jp $c003 retn cont wreg flash_cs, 1 ; desactivamos spi, enviando un 1 - wreg joyconf, %00010000 + wreg joy_conf, %00010000 wreg master_mapper, 8 ; paginamos la ROM en $c000 lee in a, ($1f) djnz lee @@ -85,10 +110,10 @@ recov ld hl, firmware-1 block $0100 - $ include scroll/define.asm ld sp, 0 - ld de, $5e6d+filesize-1 + ld de, filestart+filesize-1 ld hl, scroll-1 call dzx7b - jp $7be4 + jp start ; ----------------------------------------------------------------------------- ; ZX7 Backwards by Einar Saukas, Antonio Villena