Changeset 398 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
Apr 19, 2012, 3:08:06 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • IRQ related stuff is now optional MODULE_IRQ.
  • XT builds no longer include support for IDE IRQ.
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  
    6262    push    di
    6363
     64%ifdef MODULE_IRQ
    6465    call    Interrupts_UnmaskInterruptControllerForDriveInDSDI
     66%endif
    6567    call    Device_ResetMasterAndSlaveController
    6668    ;jc     SHORT .ReturnError                  ; CF would be set if slave drive present without master
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm

    r397 r398  
    104104.DoNotDisplayBootMenu:
    105105%endif
    106 %endif
    107106
    108107    ; Check if ROM boot (INT 18h) wanted
    109 %ifdef MODULE_HOTKEYS
    110108    cmp     BYTE [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bScancode], ROM_BOOT_HOTKEY_SCANCODE
    111109    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
    116112    call    HotkeyBar_GetPrimaryBootDriveNumberToDL
    117113%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)
    121118    call    TryToBootFromPrimaryOrSecondaryBootDevice
    122119    jc      SHORT JumpToBootSector_or_RomBoot
     
    126123    call    HotkeyBar_GetSecondaryBootDriveNumberToDL
    127124%else
    128     mov     dl, [cs:ROMVARS.bBootDrv]
    129     and     dl, 80h
     125    call    GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys
    130126    xor     dl, 80h
    131127%endif
     
    203199    jmp     BootSector_TryToLoadFromDriveDL
    204200%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
     213GetPrimaryBootDriveToDLwhenNotUsingModuleHotkeys:
     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.