hold space during startup for safe mode

This commit is contained in:
Eugene Lozovoy
2024-08-25 10:30:01 +03:00
parent d841eb4c45
commit ebfb6f4c5d
3 changed files with 12 additions and 1 deletions

Binary file not shown.

View File

@ -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

View File

@ -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 ;