mirror of
https://github.com/UzixLS/zx-midiplayer.git
synced 2025-07-18 23:01:20 +03:00
hold space during startup for safe mode
This commit is contained in:
BIN
res/start.scr
BIN
res/start.scr
Binary file not shown.
@ -52,3 +52,5 @@ LAYOUT_PLAYER_BUTTONBAR equ #040e
|
||||
LAYOUT_PLAYBUTTON_ATTR equ #07
|
||||
LAYOUT_PLAYBUTTON_ACTIVE_ATTR equ #46
|
||||
LAYOUT_HELP_BORDER equ #01
|
||||
LAYOUT_START_SAFE_MESSAGE equ #170a
|
||||
LAYOUT_START_SAFE_MESSAGE_LEN equ 12
|
||||
|
11
src/main.asm
11
src/main.asm
@ -70,7 +70,16 @@ main:
|
||||
out (c), a ; ...
|
||||
call device_detect_cpu_int ;
|
||||
call trdos_init ;
|
||||
call settings_load ;
|
||||
xor a ; hide "hold space for safe mode" message
|
||||
ld b, LAYOUT_START_SAFE_MESSAGE_LEN ; ...
|
||||
LD_ATTR_ADDRESS hl, LAYOUT_START_SAFE_MESSAGE ; ...
|
||||
1: ld (hl), a ; ...
|
||||
inc hl ; ...
|
||||
djnz 1b ; ...
|
||||
ld a, #7f ; skip settings load if space pressed
|
||||
in a, (#fe) ; ...
|
||||
bit 0, a ; ...
|
||||
call nz, settings_load ; ...
|
||||
call uart_init ;
|
||||
call input_init_kempston ;
|
||||
call disks_init ;
|
||||
|
Reference in New Issue
Block a user