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


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/VariablesAndDPTs
Files:
2 edited

Legend:

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

    r392 r395  
    3939    sub     ax, di
    4040    xchg    cx, ax
     41
     42%ifdef MODULE_HOTKEYS
    4143    call    Memory_ZeroESDIwithSizeInCX
    4244
    4345    ; Store default drives to boot from
    44     mov     di, BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters
    45     call    HotkeyBar_GetLetterForFirstHardDriveToAX
    46     mov     ah, DEFAULT_FLOPPY_DRIVE_LETTER
    47     mov     [es:di], ax
     46    mov     dl, [cs:ROMVARS.bBootDrv]
    4847
    49     ; Check if boot drive is overridden in ROMVARs
    50     mov     al, [cs:ROMVARS.bBootDrv]
    51     test    al, al
    52     js      SHORT .StoreUserHardDiskToBootFrom
    53     inc     di
    54     jmp     SHORT .AddToDefaultDrive
     48;--------------------------------------------------------------------
     49; BootVars_StoreHotkeyForDriveNumberInDL
     50;   Parameters:
     51;       DL:     Floppy or Hard Drive number
     52;       DS:     RAMVARS Segment
     53;       ES:     BDA Segment
     54;   Returns:
     55;       Nothing
     56;   Corrupts registers:
     57;       AX, CX, DI
     58;--------------------------------------------------------------------
     59BootVars_StoreHotkeyForDriveNumberInDL:
     60    mov     WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters], DEFAULT_HARD_DRIVE_LETTER | (DEFAULT_FLOPPY_DRIVE_LETTER<<8)
     61    call    HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter
     62    jmp     HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL
    5563
    56 .StoreUserHardDiskToBootFrom:
    57     sub     al, 80h                 ; Clear HD bit
    58 .AddToDefaultDrive:
    59     add     [es:di], al
    60     ret
     64%else
     65    jmp     Memory_ZeroESDIwithSizeInCX
     66
     67%endif ; MODULE_HOTKEYS
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r392 r395  
    9191.InitializeDriveTranslationAndReturn:
    9292    pop     es
     93%ifdef MODULE_HOTKEYS
    9394    jmp     DriveXlate_Reset
     95%else
     96    ret
     97%endif
    9498
    9599
Note: See TracChangeset for help on using the changeset viewer.