Changeset 599 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm


Ignore:
Timestamp:
Jul 14, 2018, 1:21:16 PM (6 years ago)
Author:
aitotat
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/Handlers/Int19h.asm

    r597 r599  
    9595    ; Last hard drive might have scrolled Hotkey Bar out of screen.
    9696    ; We want to display it during wait.
    97     call    HotkeyBar_UpdateDuringDriveDetection
     97    ;call   HotkeyBar_UpdateDuringDriveDetection
    9898
    9999.WaitUntilTimeToCloseHotkeyBar:
     
    102102    cmp     ax, MIN_TIME_TO_DISPLAY_HOTKEY_BAR
    103103    jb      SHORT .WaitUntilTimeToCloseHotkeyBar
     104
     105    ; Restore system timer tick handler since hotkeys are no longer needed
     106    cli
     107    mov     ax, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler]
     108    mov     [es:SYSTEM_TIMER_TICK*4], ax
     109    mov     ax, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler+2]
     110    mov     [es:SYSTEM_TIMER_TICK*4+2], ax
     111    sti
    104112%endif
    105113    ; Fall to .ResetAllDrives
     
    146154SelectDriveToBootFrom:      ; Function starts here
    147155%ifdef MODULE_HOTKEYS
    148     call    HotkeyBar_UpdateDuringDriveDetection
    149156    mov     al, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bScancode]
    150157    cmp     al, ROM_BOOT_HOTKEY_SCANCODE
Note: See TracChangeset for help on using the changeset viewer.