Changeset 547 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm


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/Menus/DriveXlate.asm

    r528 r547  
    3232;--------------------------------------------------------------------
    3333DriveXlate_ConvertDriveLetterInDLtoDriveNumber:
    34     call    DriveXlate_GetLetterForFirstHardDriveToAX
     34    call    BootVars_GetLetterForFirstHardDriveToAX
    3535    cmp     dl, al
    3636    jb      SHORT .ConvertLetterInDLtoFloppyDriveNumber
     
    6868
    6969    ; Store default hard drive to boot from
    70     call    DriveXlate_GetLetterForFirstHardDriveToAX
     70    call    BootVars_GetLetterForFirstHardDriveToAX
    7171    add     dl, al
    7272    stc
     
    7575.GetDefaultFloppyDrive:
    7676    sub     dl, 80h - DEFAULT_FLOPPY_DRIVE_LETTER   ; Clears CF
    77     ret
    78 
    79 
    80 ;--------------------------------------------------------------------
    81 ; Returns letter for first hard disk. Usually it will be 'C' but it
    82 ; can be higher if more than two floppy drives are found.
    83 ;
    84 ; DriveXlate_GetLetterForFirstHardDriveToAX
    85 ;   Parameters:
    86 ;       DS:     RAMVARS segment
    87 ;   Returns:
    88 ;       AX:     Upper case letter for first hard disk
    89 ;   Corrupts registers:
    90 ;       Nothing
    91 ;--------------------------------------------------------------------
    92 DriveXlate_GetLetterForFirstHardDriveToAX:
    93     call    FloppyDrive_GetCountToAX
    94     add     al, DEFAULT_FLOPPY_DRIVE_LETTER
    95     MAX_U   al, DEFAULT_HARD_DRIVE_LETTER
    9677    ret
    9778
Note: See TracChangeset for help on using the changeset viewer.