Changeset 547 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus


Ignore:
Timestamp:
Apr 21, 2013, 3:47:11 PM (12 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).
Location:
trunk/XTIDE_Universal_BIOS/Src/Menus
Files:
2 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
  • trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm

    r528 r547  
    9090;       AX, CX, DX, SI, DI
    9191;--------------------------------------------------------------------
    92     call    DriveXlate_GetLetterForFirstHardDriveToAX
     92    call    BootVars_GetLetterForFirstHardDriveToAX
    9393    mov     ah, ANGLE_QUOTE_RIGHT
    9494    mov     cl, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bHddLetter]
     
    397397    ; Determine if Floppy or Hard Drive hotkey
    398398    xchg    cx, ax
    399     call    DriveXlate_GetLetterForFirstHardDriveToAX
     399    call    BootVars_GetLetterForFirstHardDriveToAX
    400400    cmp     cl, al
    401401    jb      SHORT .StoreDriveLetter ; Store Floppy Drive letter
Note: See TracChangeset for help on using the changeset viewer.