Changeset 528 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Mar 22, 2013, 5:43:54 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Swapping Floppy and Hard Drives at the same time work again (broke in r492).
  • Hotkeys again work in boot menu (broke in r492).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm

    r526 r528  
    4141    mov     di, BOOTVARS.rgDrvDetectInfo    ; We must not initialize anything before this!
    4242    xchg    cx, ax
     43%ifndef MODULE_HOTKEYS
     44    jmp     Memory_ZeroESDIwithSizeInCX
    4345
    44 %ifdef MODULE_HOTKEYS
     46%else ; if MODULE_HOTKEYS
    4547    call    Memory_ZeroESDIwithSizeInCX
    4648
    4749    ; Initialize HOTKEYVARS by storing default drives to boot from
     50    call    BootVars_StoreDefaultDriveLettersToHotkeyVars
     51    mov     dl, [cs:ROMVARS.bBootDrv]
     52    jmp     HotkeyBar_StoreHotkeyToBootvarsForDriveNumberInDL
     53
     54
     55;--------------------------------------------------------------------
     56; BootVars_StoreDefaultDriveLettersToHotkeyVars
     57;   Parameters:
     58;       ES:     BDA Segment
     59;   Returns:
     60;       Nothing
     61;   Corrupts registers:
     62;       Nothing
     63;--------------------------------------------------------------------
     64BootVars_StoreDefaultDriveLettersToHotkeyVars:
    4865    mov     WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], DEFAULT_FLOPPY_DRIVE_LETTER | (DEFAULT_HARD_DRIVE_LETTER<<8)
    49     mov     dl, [cs:ROMVARS.bBootDrv]
    50     call    DriveXlate_ConvertDriveNumberFromDLtoDriveLetter
    51     jmp     HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL
     66    ret
    5267
    53 %else
    54     jmp     Memory_ZeroESDIwithSizeInCX
    5568%endif ; MODULE_HOTKEYS
Note: See TracChangeset for help on using the changeset viewer.