Changeset 599 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Jul 14, 2018, 1:21:16 PM (6 years ago)
Author:
Tomi Tilli
Message:

Hotkey bar is now updated and drawn from system timer tick handler 1Ch. This gives much more responsive key input and makes possible to implement some simple detection animation to show that system has not frozen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm

    r593 r599  
    4545    add     cx, BYTE HOTKEYVARS_size
    4646    call    Memory_ZeroESDIwithSizeInCX
    47 
    48     ; Store time when hotkeybar is displayed
    49     ; (it will be displayed after initialization is complete)
    50     call    TimerTicks_ReadFromBdaToAX
    51     mov     [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wTimeWhenDisplayed], ax
    52 
    53     ; Initialize HOTKEYVARS by storing default drives to boot from
    54     call    BootVars_StoreDefaultDriveLettersToHotkeyVars
    55     mov     dl, [cs:ROMVARS.bBootDrv]
    56     jmp     HotkeyBar_StoreHotkeyToBootvarsForDriveNumberInDL
    57 
    58 
    59 ;--------------------------------------------------------------------
    60 ; BootVars_StoreDefaultDriveLettersToHotkeyVars
    61 ;   Parameters:
    62 ;       ES:     BDA Segment
    63 ;   Returns:
    64 ;       Nothing
    65 ;   Corrupts registers:
    66 ;       Nothing
    67 ;--------------------------------------------------------------------
    68 BootVars_StoreDefaultDriveLettersToHotkeyVars:
    69     call    BootVars_GetLetterForFirstHardDriveToAX
    70     mov     ah, DEFAULT_FLOPPY_DRIVE_LETTER
    71     xchg    al, ah
    72     mov     [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], ax
    73     ret
    74 
     47    jmp     HotkeyBar_InitializeVariables
    7548%endif ; MODULE_HOTKEYS
    7649
Note: See TracChangeset for help on using the changeset viewer.