Changeset 398 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Apr 19, 2012, 3:08:06 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/AHDh_HReset.asm
r376 r398 62 62 push di 63 63 64 %ifdef MODULE_IRQ 64 65 call Interrupts_UnmaskInterruptControllerForDriveInDSDI 66 %endif 65 67 call Device_ResetMasterAndSlaveController 66 68 ;jc SHORT .ReturnError ; CF would be set if slave drive present without master -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r397 r398 104 104 .DoNotDisplayBootMenu: 105 105 %endif 106 %endif107 106 108 107 ; Check if ROM boot (INT 18h) wanted 109 %ifdef MODULE_HOTKEYS110 108 cmp BYTE [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bScancode], ROM_BOOT_HOTKEY_SCANCODE 111 109 je SHORT JumpToBootSector_or_RomBoot ; CF clear so ROM boot 112 %endif 113 114 ; Try to boot from Primary boot drive (00h by default) 115 %ifdef MODULE_HOTKEYS 110 111 ; Get Primary boot drive number to DL 116 112 call HotkeyBar_GetPrimaryBootDriveNumberToDL 117 113 %else 118 mov dl, [cs:ROMVARS.bBootDrv] 119 and dl, 80h ; Only 00h and 80h allowed when not using MODULE_HOTKEYS 120 %endif 114 call GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys 115 %endif ; MODULE_HOTKEYS 116 117 ; Try to boot from Primary boot drive (00h by default) 121 118 call TryToBootFromPrimaryOrSecondaryBootDevice 122 119 jc SHORT JumpToBootSector_or_RomBoot … … 126 123 call HotkeyBar_GetSecondaryBootDriveNumberToDL 127 124 %else 128 mov dl, [cs:ROMVARS.bBootDrv] 129 and dl, 80h 125 call GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys 130 126 xor dl, 80h 131 127 %endif … … 203 199 jmp BootSector_TryToLoadFromDriveDL 204 200 %endif 201 202 203 ;-------------------------------------------------------------------- 204 ; GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys 205 ; Parameters 206 ; Nothing 207 ; Returns: 208 ; DL: Drive to boot from (00h or 80h) 209 ; Corrupts registers: 210 ; Nothing 211 ;-------------------------------------------------------------------- 212 %ifndef MODULE_HOTKEYS 213 GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys: 214 mov dl, [cs:ROMVARS.bBootDrv] 215 and dl, 80h ; Only 00h and 80h allowed when not using MODULE_HOTKEYS 216 ret 217 %endif
Note:
See TracChangeset
for help on using the changeset viewer.