Ignore:
Timestamp:
Apr 21, 2013, 3:47:11 PM (11 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkeys were incorrectly initialized to use 'C' as first hard drive letter.
  • All CHS translate modes should again work (incorrectly decremented DX instead of DL, it might or might not have caused problems).
File:
1 edited

Legend:

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

    r545 r547  
    5959;--------------------------------------------------------------------
    6060BootVars_StoreDefaultDriveLettersToHotkeyVars:
    61     mov     WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], DEFAULT_FLOPPY_DRIVE_LETTER | (DEFAULT_HARD_DRIVE_LETTER<<8)
     61    call    BootVars_GetLetterForFirstHardDriveToAX
     62    mov     ah, DEFAULT_FLOPPY_DRIVE_LETTER
     63    xchg    al, ah
     64    mov     [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], ax
    6265    ret
    6366
    6467%endif ; MODULE_HOTKEYS
     68
     69
     70;--------------------------------------------------------------------
     71; Returns letter for first hard disk. Usually it will be 'C' but it
     72; can be higher if more than two floppy drives are found.
     73;
     74; BootVars_GetLetterForFirstHardDriveToAX
     75;   Parameters:
     76;       DS:     RAMVARS segment
     77;   Returns:
     78;       AX:     Upper case letter for first hard disk
     79;   Corrupts registers:
     80;       Nothing
     81;--------------------------------------------------------------------
     82BootVars_GetLetterForFirstHardDriveToAX:
     83    call    FloppyDrive_GetCountToAX
     84    add     al, DEFAULT_FLOPPY_DRIVE_LETTER     ; First Hard Drive letter comes after last floppy drive letter...
     85    MAX_U   al, DEFAULT_HARD_DRIVE_LETTER       ; ...but it can never be 'A' or 'B'
     86    ret
Note: See TracChangeset for help on using the changeset viewer.