Changeset 528 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
- Timestamp:
- Mar 22, 2013, 5:43:54 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r526 r528 22 22 23 23 ;-------------------------------------------------------------------- 24 ; Scans key presses and draws any hotkey changes. 25 ; 24 26 ; HotkeyBar_UpdateDuringDriveDetection 25 27 ; Parameters: … … 32 34 ;-------------------------------------------------------------------- 33 35 HotkeyBar_UpdateDuringDriveDetection: 34 call HotkeyBar_ScanHotkeysFromKeyBufferAndStoreToBootvars36 call ScanHotkeysFromKeyBufferAndStoreToBootvars 35 37 ; Fall to HotkeyBar_DrawToTopOfScreen 36 38 … … 311 313 312 314 ;-------------------------------------------------------------------- 313 ; HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL 315 ; HotkeyBar_StoreHotkeyToBootvarsForDriveNumberInDL 316 ; Parameters: 317 ; DS: RAMVARS segment 318 ; ES: BDA segment (zero) 319 ; DL: Drive Number 320 ; Returns: 321 ; Nothing 322 ; Corrupts registers: 323 ; AX, CX, DL, DI 324 ;-------------------------------------------------------------------- 325 HotkeyBar_StoreHotkeyToBootvarsForDriveNumberInDL: 326 call DriveXlate_ConvertDriveNumberFromDLtoDriveLetter 327 ; Fall to StoreHotkeyToBootvarsForDriveLetterInDL 328 329 330 ;-------------------------------------------------------------------- 331 ; StoreHotkeyToBootvarsForDriveLetterInDL 314 332 ; Parameters: 315 333 ; DS: RAMVARS segment … … 321 339 ; AX, CX, DI 322 340 ;-------------------------------------------------------------------- 323 HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL:341 StoreHotkeyToBootvarsForDriveLetterInDL: 324 342 eMOVZX ax, dl 325 343 or al, 32 ; Upper case drive letter to lower case keystroke … … 328 346 329 347 ;-------------------------------------------------------------------- 330 ; HotkeyBar_ScanHotkeysFromKeyBufferAndStoreToBootvars348 ; ScanHotkeysFromKeyBufferAndStoreToBootvars 331 349 ; Parameters: 332 350 ; DS: RAMVARS segment … … 337 355 ; AH, CX 338 356 ;-------------------------------------------------------------------- 339 HotkeyBar_ScanHotkeysFromKeyBufferAndStoreToBootvars:357 ScanHotkeysFromKeyBufferAndStoreToBootvars: 340 358 call Keyboard_GetKeystrokeToAX 341 359 jz SHORT NoHotkeyToProcess 342 360 343 ePUSH_T cx, HotkeyBar_ScanHotkeysFromKeyBufferAndStoreToBootvars 361 ; Prepare to read another key from buffer 362 ePUSH_T cx, ScanHotkeysFromKeyBufferAndStoreToBootvars 344 363 ; Fall to HotkeyBar_StoreHotkeyToBootvarsIfValidKeystrokeInAX 345 364 … … 354 373 ; Returns: 355 374 ; AL: Last scancode seen 375 ; CF: Set if valid hotkey in AL 376 ; Clear if scancode in AL is not for any hotkey 356 377 ; Corrupts registers: 357 378 ; AH, CX, DI … … 387 408 xchg ax, cx 388 409 mov [es:di], al 410 stc ; Valid hotkey scancode returned in AL 389 411 390 412 .KeystrokeIsNotValidDriveLetter: … … 392 414 mov al, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bScancode] 393 415 ret 416 394 417 395 418 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.