Changeset 395 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Apr 18, 2012, 6:04:48 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Handlers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm
r376 r395 43 43 call RamVars_GetSegmentToDS 44 44 45 %ifdef MODULE_HOTKEYS 45 46 call DriveXlate_ToOrBack 47 %endif 46 48 mov [RAMVARS.xlateVars+XLATEVARS.bXlatedDrv], dl 47 49 -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r392 r395 90 90 ;-------------------------------------------------------------------- 91 91 SelectDriveToBootFrom: 92 %ifdef MODULE_HOTKEYS 92 93 call HotkeyBar_UpdateDuringDriveDetection 93 94 … … 103 104 .DoNotDisplayBootMenu: 104 105 %endif 106 %endif 105 107 106 108 ; Check if ROM boot (INT 18h) wanted … … 109 111 110 112 ; Try to boot from Primary boot drive (00h by default) 113 %ifdef MODULE_HOTKEYS 111 114 call HotkeyBar_GetPrimaryBootDriveNumberToDL 115 %else 116 mov dl, [cs:ROMVARS.bBootDrv] 117 and dl, 80h ; Only 00h and 80h allowed when not using MODULE_HOTKEYS 118 %endif 112 119 call TryToBootFromPrimaryOrSecondaryBootDevice 113 120 jc SHORT JumpToBootSector_or_RomBoot 114 121 115 122 ; Try to boot from Secondary boot device (80h by default) 123 %ifdef MODULE_HOTKEYS 116 124 call HotkeyBar_GetSecondaryBootDriveNumberToDL 125 %else 126 mov dl, [cs:ROMVARS.bBootDrv] 127 and dl, 80h 128 xor dl, 80h 129 %endif 117 130 call TryToBootFromPrimaryOrSecondaryBootDevice 118 131 … … 179 192 ; AX, CX, DH, SI, DI, (DL if failed to read boot sector) 180 193 ;-------------------------------------------------------------------- 194 %ifndef MODULE_HOTKEYS 195 TryToBootFromPrimaryOrSecondaryBootDevice EQU BootSector_TryToLoadFromDriveDL 196 197 %else 181 198 TryToBootFromPrimaryOrSecondaryBootDevice: 182 199 call DriveXlate_SetDriveToSwap 183 200 call DriveXlate_ToOrBack 184 201 jmp BootSector_TryToLoadFromDriveDL 202 %endif
Note:
See TracChangeset
for help on using the changeset viewer.