Changeset 395 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus


Ignore:
Timestamp:
Apr 18, 2012, 6:04:48 PM (13 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.
Location:
trunk/XTIDE_Universal_BIOS/Src/Menus
Files:
1 added
2 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
  • trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm

    r392 r395  
    305305
    306306;--------------------------------------------------------------------
     307; HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL
     308;   Parameters:
     309;       DS:     RAMVARS segment
     310;       ES:     BDA segment (zero)
     311;       DL:     Drive Letter ('A'...)
     312;   Returns:
     313;       Nothing
     314;   Corrupts registers:
     315;       AX, CX, DI
     316;--------------------------------------------------------------------
     317HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL:
     318    eMOVZX  ax, dl
     319    call    Char_ChangeCaseInAL ; Upper case drive letter to lower case keystroke
     320    jmp     SHORT HotkeyBar_StoreHotkeyToBootvarsIfValidKeystrokeInAX
     321
     322
     323;--------------------------------------------------------------------
    307324; ScanHotkeysFromKeyBufferAndStoreToBootvars
    308325;   Parameters:
     
    399416    test    BYTE [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFlags], FLG_HOTKEY_HD_FIRST
    400417    eCMOVZ  dl, dh
    401     ; Fall to ConvertDriveLetterInDLtoDriveNumber
    402 
    403 
    404 ;--------------------------------------------------------------------
    405 ; ConvertDriveLetterInDLtoDriveNumber
     418    ; Fall to HotkeyBar_ConvertDriveLetterInDLtoDriveNumber
     419
     420
     421;--------------------------------------------------------------------
     422; HotkeyBar_ConvertDriveLetterInDLtoDriveNumber
    406423;   Parameters:
    407424;       DS:     RAMVARS segment
     
    412429;       AX, DH
    413430;--------------------------------------------------------------------
    414 ConvertDriveLetterInDLtoDriveNumber:
     431HotkeyBar_ConvertDriveLetterInDLtoDriveNumber:
    415432    call    HotkeyBar_GetLetterForFirstHardDriveToAX
    416433    cmp     dl, al
Note: See TracChangeset for help on using the changeset viewer.