Ignore:
Timestamp:
Apr 18, 2012, 6:04:48 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkey Bar and drive translations are now in MODULE_HOTKEYS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuEvent.asm

    r392 r395  
    8787
    8888;--------------------------------------------------------------------
    89 ; ConvertKeystrokeToAXfromDriveLetterInDL
    90 ;   Parameters:
    91 ;       DL:     Drive Letter ('A'...)
    92 ;   Returns:
    93 ;       AX:     Hotkey keystroke
    94 ;   Corrupts registers:
    95 ;       Nothing
    96 ;--------------------------------------------------------------------
    97 ConvertKeystrokeToAXfromDriveLetterInDL:
    98     eMOVZX  ax, dl
    99     jmp     Char_ChangeCaseInAL ; Upper case drive letter to lower case keystroke
    100 
    101 
    102 ;--------------------------------------------------------------------
    10389; BootMenuEvent_Handler
    10490;   Common parameters for all events:
     
    228214    ; The secondary boot drive is selected by highlighting it using menu keys
    229215    ; and the primary boot drive is selected by pressing drive letter hotkey.
    230     call    HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter
    231     call    ConvertKeystrokeToAXfromDriveLetterInDL
    232     call    HotkeyBar_StoreHotkeyToBootvarsIfValidKeystrokeInAX
     216    call    BootVars_StoreHotkeyForDriveNumberInDL
    233217    call    RedrawHotkeyBarFromInsideMenuEventHandler
    234218
     
    248232
    249233;--------------------------------------------------------------------
    250 ; EventItemSelectedFromCX
    251 ;   Parameters
    252 ;       CX:     Index of selected item
    253 ;       DS:     Ptr to RAMVARS
    254 ;       ES:     Ptr to BDA (zero)
    255 ;       SS:BP:  Menu library handle
    256 ;   Returns:
    257 ;       CF:     Set if event processed
    258 ;               Cleared if event not processed
    259 ;   Corrupts registers:
    260 ;       Does not matter
    261 ;--------------------------------------------------------------------
    262 EventItemSelectedFromCX:
    263     call    BootMenu_GetDriveToDXforMenuitemInCX
    264     jnc     SHORT BootMenuEvent_Completed   ; No menuitem selected
    265 
    266     ; Convert selected drive to hotkey keystroke
    267     call    HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter
    268     call    ConvertKeystrokeToAXfromDriveLetterInDL
    269     ; Fall to EventKeyStrokeInAX
    270 
    271 
    272 ;--------------------------------------------------------------------
    273234; EventKeyStrokeInAX
    274235;   Parameters
     
    291252
    292253    ; Hotkey is now stored to BOOTVARS and menu can be closed
     254    jmp     SHORT CloseBootMenu
     255
     256
     257;--------------------------------------------------------------------
     258; EventItemSelectedFromCX
     259;   Parameters
     260;       CX:     Index of selected item
     261;       DS:     Ptr to RAMVARS
     262;       ES:     Ptr to BDA (zero)
     263;       SS:BP:  Menu library handle
     264;   Returns:
     265;       CF:     Set if event processed
     266;               Cleared if event not processed
     267;   Corrupts registers:
     268;       Does not matter
     269;--------------------------------------------------------------------
     270EventItemSelectedFromCX:
     271    call    BootMenu_GetDriveToDXforMenuitemInCX
     272    jnc     SHORT BootMenuEvent_Completed   ; No menuitem selected
     273
     274    ; Convert selected drive to hotkey keystroke
     275    call    HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL
    293276    ; Fall to CloseBootMenu
    294277
Note: See TracChangeset for help on using the changeset viewer.