Changeset 395 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Apr 18, 2012, 6:04:48 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm
r392 r395 39 39 sub ax, di 40 40 xchg cx, ax 41 42 %ifdef MODULE_HOTKEYS 41 43 call Memory_ZeroESDIwithSizeInCX 42 44 43 45 ; Store default drives to boot from 44 mov di, BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters 45 call HotkeyBar_GetLetterForFirstHardDriveToAX 46 mov ah, DEFAULT_FLOPPY_DRIVE_LETTER 47 mov [es:di], ax 46 mov dl, [cs:ROMVARS.bBootDrv] 48 47 49 ; Check if boot drive is overridden in ROMVARs 50 mov al, [cs:ROMVARS.bBootDrv] 51 test al, al 52 js SHORT .StoreUserHardDiskToBootFrom 53 inc di 54 jmp SHORT .AddToDefaultDrive 48 ;-------------------------------------------------------------------- 49 ; BootVars_StoreHotkeyForDriveNumberInDL 50 ; Parameters: 51 ; DL: Floppy or Hard Drive number 52 ; DS: RAMVARS Segment 53 ; ES: BDA Segment 54 ; Returns: 55 ; Nothing 56 ; Corrupts registers: 57 ; AX, CX, DI 58 ;-------------------------------------------------------------------- 59 BootVars_StoreHotkeyForDriveNumberInDL: 60 mov WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters], DEFAULT_HARD_DRIVE_LETTER | (DEFAULT_FLOPPY_DRIVE_LETTER<<8) 61 call HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter 62 jmp HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL 55 63 56 .StoreUserHardDiskToBootFrom: 57 sub al, 80h ; Clear HD bit 58 .AddToDefaultDrive: 59 add [es:di], al 60 ret 64 %else 65 jmp Memory_ZeroESDIwithSizeInCX 66 67 %endif ; MODULE_HOTKEYS -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r392 r395 91 91 .InitializeDriveTranslationAndReturn: 92 92 pop es 93 %ifdef MODULE_HOTKEYS 93 94 jmp DriveXlate_Reset 95 %else 96 ret 97 %endif 94 98 95 99
Note:
See TracChangeset
for help on using the changeset viewer.