mirror of https://github.com/zxdos/zxuno.git
cambio bootloader.asm para que se pueda compilar
This commit is contained in:
parent
e9f34f62c1
commit
ef1a3cf9f5
|
@ -1,42 +1,17 @@
|
||||||
; bootloader.asm
|
|
||||||
;
|
|
||||||
; Copyright (C) 2016-2021 Antonio Villena
|
|
||||||
; Contributors:
|
|
||||||
; 2015 Einar Saukas (ZX7 Backwards)
|
|
||||||
; 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
|
|
||||||
; 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 <https://www.gnu.org/licenses/>.
|
|
||||||
;
|
|
||||||
; SPDX-FileCopyrightText: Copyright (C) 2016-2021 Antonio Villena
|
|
||||||
;
|
|
||||||
; SPDX-FileContributor: 2015 Einar Saukas (ZX7 Backwards)
|
|
||||||
; SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
|
||||||
;
|
|
||||||
; SPDX-License-Identifier: GPL-3.0-only
|
|
||||||
|
|
||||||
; Compatible compilers:
|
|
||||||
; SJAsmPlus, <https://github.com/sjasmplus/sjasmplus/>
|
|
||||||
; SJAsmPlus by aprisobal, <https://github.com/z00m128/sjasmplus/>
|
|
||||||
|
|
||||||
output bootloader.rom
|
|
||||||
|
|
||||||
include zxuno.def
|
|
||||||
|
|
||||||
macro wreg dir, dato
|
macro wreg dir, dato
|
||||||
rst $28
|
rst $28
|
||||||
defb dir, dato
|
defb dir, dato
|
||||||
endm
|
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
|
di
|
||||||
ld sp, $bfff-ini+6
|
ld sp, $bfff-ini+6
|
||||||
wreg flash_cs, 1 ; desactivamos spi, enviando un 0
|
wreg flash_cs, 1 ; desactivamos spi, enviando un 0
|
||||||
|
@ -76,7 +51,7 @@ nmi66 jp $c003
|
||||||
retn
|
retn
|
||||||
|
|
||||||
cont wreg flash_cs, 1 ; desactivamos spi, enviando un 1
|
cont wreg flash_cs, 1 ; desactivamos spi, enviando un 1
|
||||||
wreg joy_conf, %00010000
|
wreg joyconf, %00010000
|
||||||
wreg master_mapper, 8 ; paginamos la ROM en $c000
|
wreg master_mapper, 8 ; paginamos la ROM en $c000
|
||||||
lee in a, ($1f)
|
lee in a, ($1f)
|
||||||
djnz lee
|
djnz lee
|
||||||
|
@ -110,10 +85,10 @@ recov ld hl, firmware-1
|
||||||
block $0100 - $
|
block $0100 - $
|
||||||
include scroll/define.asm
|
include scroll/define.asm
|
||||||
ld sp, 0
|
ld sp, 0
|
||||||
ld de, filestart+filesize-1
|
ld de, $5e6d+filesize-1
|
||||||
ld hl, scroll-1
|
ld hl, scroll-1
|
||||||
call dzx7b
|
call dzx7b
|
||||||
jp start
|
jp $7be4
|
||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------
|
||||||
; ZX7 Backwards by Einar Saukas, Antonio Villena
|
; ZX7 Backwards by Einar Saukas, Antonio Villena
|
||||||
|
|
|
@ -2435,7 +2435,9 @@ enbur
|
||||||
xor a
|
xor a
|
||||||
ld (alto highb+1), a
|
ld (alto highb+1), a
|
||||||
ENDIF
|
ENDIF
|
||||||
|
IF recovery=0
|
||||||
call alto loadch
|
call alto loadch
|
||||||
|
ENDIF
|
||||||
IF vertical=0
|
IF vertical=0
|
||||||
ld bc, $090a
|
ld bc, $090a
|
||||||
ELSE
|
ELSE
|
||||||
|
|
Loading…
Reference in New Issue