Changeset 395 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Apr 18, 2012, 6:04:48 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- 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 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 -
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r392 r395 305 305 306 306 ;-------------------------------------------------------------------- 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 ;-------------------------------------------------------------------- 317 HotkeyBar_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 ;-------------------------------------------------------------------- 307 324 ; ScanHotkeysFromKeyBufferAndStoreToBootvars 308 325 ; Parameters: … … 399 416 test BYTE [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFlags], FLG_HOTKEY_HD_FIRST 400 417 eCMOVZ dl, dh 401 ; Fall to ConvertDriveLetterInDLtoDriveNumber402 403 404 ;-------------------------------------------------------------------- 405 ; ConvertDriveLetterInDLtoDriveNumber418 ; Fall to HotkeyBar_ConvertDriveLetterInDLtoDriveNumber 419 420 421 ;-------------------------------------------------------------------- 422 ; HotkeyBar_ConvertDriveLetterInDLtoDriveNumber 406 423 ; Parameters: 407 424 ; DS: RAMVARS segment … … 412 429 ; AX, DH 413 430 ;-------------------------------------------------------------------- 414 ConvertDriveLetterInDLtoDriveNumber:431 HotkeyBar_ConvertDriveLetterInDLtoDriveNumber: 415 432 call HotkeyBar_GetLetterForFirstHardDriveToAX 416 433 cmp dl, al
Note:
See TracChangeset
for help on using the changeset viewer.