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


Ignore:
Timestamp:
Apr 18, 2012, 6:04:48 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkey Bar and drive translations are now in MODULE_HOTKEYS.
Location:
trunk/XTIDE_Universal_BIOS/Src/Handlers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm

    r376 r395  
    4343    call    RamVars_GetSegmentToDS
    4444
     45%ifdef MODULE_HOTKEYS
    4546    call    DriveXlate_ToOrBack
     47%endif
    4648    mov     [RAMVARS.xlateVars+XLATEVARS.bXlatedDrv], dl
    4749
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm

    r392 r395  
    9090;--------------------------------------------------------------------
    9191SelectDriveToBootFrom:
     92%ifdef MODULE_HOTKEYS
    9293    call    HotkeyBar_UpdateDuringDriveDetection
    9394
     
    103104.DoNotDisplayBootMenu:
    104105%endif
     106%endif
    105107
    106108    ; Check if ROM boot (INT 18h) wanted
     
    109111
    110112    ; Try to boot from Primary boot drive (00h by default)
     113%ifdef MODULE_HOTKEYS
    111114    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
    112119    call    TryToBootFromPrimaryOrSecondaryBootDevice
    113120    jc      SHORT JumpToBootSector_or_RomBoot
    114121
    115122    ; Try to boot from Secondary boot device (80h by default)
     123%ifdef MODULE_HOTKEYS
    116124    call    HotkeyBar_GetSecondaryBootDriveNumberToDL
     125%else
     126    mov     dl, [cs:ROMVARS.bBootDrv]
     127    and     dl, 80h
     128    xor     dl, 80h
     129%endif
    117130    call    TryToBootFromPrimaryOrSecondaryBootDevice
    118131
     
    179192;       AX, CX, DH, SI, DI, (DL if failed to read boot sector)
    180193;--------------------------------------------------------------------
     194%ifndef MODULE_HOTKEYS
     195TryToBootFromPrimaryOrSecondaryBootDevice   EQU     BootSector_TryToLoadFromDriveDL
     196
     197%else
    181198TryToBootFromPrimaryOrSecondaryBootDevice:
    182199    call    DriveXlate_SetDriveToSwap
    183200    call    DriveXlate_ToOrBack
    184201    jmp     BootSector_TryToLoadFromDriveDL
     202%endif
Note: See TracChangeset for help on using the changeset viewer.