Changeset 547 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Apr 21, 2013, 3:47:11 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
r528 r547 32 32 ;-------------------------------------------------------------------- 33 33 DriveXlate_ConvertDriveLetterInDLtoDriveNumber: 34 call DriveXlate_GetLetterForFirstHardDriveToAX34 call BootVars_GetLetterForFirstHardDriveToAX 35 35 cmp dl, al 36 36 jb SHORT .ConvertLetterInDLtoFloppyDriveNumber … … 68 68 69 69 ; Store default hard drive to boot from 70 call DriveXlate_GetLetterForFirstHardDriveToAX70 call BootVars_GetLetterForFirstHardDriveToAX 71 71 add dl, al 72 72 stc … … 75 75 .GetDefaultFloppyDrive: 76 76 sub dl, 80h - DEFAULT_FLOPPY_DRIVE_LETTER ; Clears CF 77 ret78 79 80 ;--------------------------------------------------------------------81 ; Returns letter for first hard disk. Usually it will be 'C' but it82 ; can be higher if more than two floppy drives are found.83 ;84 ; DriveXlate_GetLetterForFirstHardDriveToAX85 ; Parameters:86 ; DS: RAMVARS segment87 ; Returns:88 ; AX: Upper case letter for first hard disk89 ; Corrupts registers:90 ; Nothing91 ;--------------------------------------------------------------------92 DriveXlate_GetLetterForFirstHardDriveToAX:93 call FloppyDrive_GetCountToAX94 add al, DEFAULT_FLOPPY_DRIVE_LETTER95 MAX_U al, DEFAULT_HARD_DRIVE_LETTER96 77 ret 97 78 -
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r528 r547 90 90 ; AX, CX, DX, SI, DI 91 91 ;-------------------------------------------------------------------- 92 call DriveXlate_GetLetterForFirstHardDriveToAX92 call BootVars_GetLetterForFirstHardDriveToAX 93 93 mov ah, ANGLE_QUOTE_RIGHT 94 94 mov cl, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bHddLetter] … … 397 397 ; Determine if Floppy or Hard Drive hotkey 398 398 xchg cx, ax 399 call DriveXlate_GetLetterForFirstHardDriveToAX399 call BootVars_GetLetterForFirstHardDriveToAX 400 400 cmp cl, al 401 401 jb SHORT .StoreDriveLetter ; Store Floppy Drive letter
Note:
See TracChangeset
for help on using the changeset viewer.