Changeset 395 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu
- Timestamp:
- Apr 18, 2012, 6:04:48 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuEvent.asm
r392 r395 87 87 88 88 ;-------------------------------------------------------------------- 89 ; ConvertKeystrokeToAXfromDriveLetterInDL90 ; Parameters:91 ; DL: Drive Letter ('A'...)92 ; Returns:93 ; AX: Hotkey keystroke94 ; Corrupts registers:95 ; Nothing96 ;--------------------------------------------------------------------97 ConvertKeystrokeToAXfromDriveLetterInDL:98 eMOVZX ax, dl99 jmp Char_ChangeCaseInAL ; Upper case drive letter to lower case keystroke100 101 102 ;--------------------------------------------------------------------103 89 ; BootMenuEvent_Handler 104 90 ; Common parameters for all events: … … 228 214 ; The secondary boot drive is selected by highlighting it using menu keys 229 215 ; 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 233 217 call RedrawHotkeyBarFromInsideMenuEventHandler 234 218 … … 248 232 249 233 ;-------------------------------------------------------------------- 250 ; EventItemSelectedFromCX251 ; Parameters252 ; CX: Index of selected item253 ; DS: Ptr to RAMVARS254 ; ES: Ptr to BDA (zero)255 ; SS:BP: Menu library handle256 ; Returns:257 ; CF: Set if event processed258 ; Cleared if event not processed259 ; Corrupts registers:260 ; Does not matter261 ;--------------------------------------------------------------------262 EventItemSelectedFromCX:263 call BootMenu_GetDriveToDXforMenuitemInCX264 jnc SHORT BootMenuEvent_Completed ; No menuitem selected265 266 ; Convert selected drive to hotkey keystroke267 call HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter268 call ConvertKeystrokeToAXfromDriveLetterInDL269 ; Fall to EventKeyStrokeInAX270 271 272 ;--------------------------------------------------------------------273 234 ; EventKeyStrokeInAX 274 235 ; Parameters … … 291 252 292 253 ; 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 ;-------------------------------------------------------------------- 270 EventItemSelectedFromCX: 271 call BootMenu_GetDriveToDXforMenuitemInCX 272 jnc SHORT BootMenuEvent_Completed ; No menuitem selected 273 274 ; Convert selected drive to hotkey keystroke 275 call HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL 293 276 ; Fall to CloseBootMenu 294 277
Note:
See TracChangeset
for help on using the changeset viewer.