Changeset 322 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Mar 11, 2012, 4:17:46 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Commented out the FS and GS segment registers from INTPACK since we never touch them anyway.
  • Minor changes to improve speed in the Int13h handler.
  • Changed Prepare_ByValidatingSectorsInALforOldInt13h so it really doesn't corrupt anything.
  • Changed the makefile so 'make strings' now works even if StringsCompressed.asm is missing or empty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DriveXlate.asm

    r294 r322  
    2020    jz      SHORT .Return           ; Return if translation disabled
    2121    xchg    di, ax                  ; Backup AX
    22     call    SwapFloppyDriveOrHardDisk
    23     xchg    ax, di
    24 .Return:
    25     ret
    2622
    27 
    28 ;--------------------------------------------------------------------
    29 ; SwapFloppyDriveOrHardDisk
    30 ;   Parameters:
    31 ;       DL:     Drive number to be possibly swapped
    32 ;       DS:     RAMVARS segment
    33 ;   Returns:
    34 ;       DL:     Translated drive number
    35 ;   Corrupts registers:
    36 ;       AX
    37 ;--------------------------------------------------------------------
    38 ALIGN JUMP_ALIGN
    39 SwapFloppyDriveOrHardDisk:
    4023    mov     ah, 80h                 ; Assume hard disk
    4124    mov     al, [RAMVARS.xlateVars+XLATEVARS.bHDSwap]
    4225    test    dl, ah                  ; Hard disk?
    43     jnz     SHORT SwapDrive         ; If so, jump to swap
     26    jnz     SHORT .SwapDrive        ; If so, jump to swap
    4427    mov     al, [RAMVARS.xlateVars+XLATEVARS.bFDSwap]
    4528    cbw
    46     ; Fall to SwapDrive
    4729
    48 ;--------------------------------------------------------------------
    49 ; SwapDrive
    50 ;   Parameters:
    51 ;       AL:     Drive number to swap to 00h/80h
    52 ;       AH:     00h/80h to be swapped to stored drive number
    53 ;       DL:     Drive number to be possibly swapped
    54 ;   Returns:
    55 ;       DL:     Translated drive number
    56 ;   Corrupts registers:
    57 ;       AL
    58 ;--------------------------------------------------------------------
    5930ALIGN JUMP_ALIGN
    60 SwapDrive:
    61     cmp     ah, dl              ; Swap DL from 00h/80h to xxh?
     31.SwapDrive:
     32    cmp     ah, dl                  ; Swap DL from 00h/80h to xxh?
    6233    je      SHORT .SwapToXXhInAL
    63     cmp     al, dl              ; Swap DL from xxh to 00h/80h?
    64     jne     SHORT .Return
     34    cmp     al, dl                  ; Swap DL from xxh to 00h/80h?
     35    jne     SHORT .RestoreAXandReturn
    6536    mov     al, ah
    6637ALIGN JUMP_ALIGN
    6738.SwapToXXhInAL:
    6839    mov     dl, al
     40ALIGN JUMP_ALIGN
     41.RestoreAXandReturn:
     42    xchg    ax, di                  ; Restore AX
    6943ALIGN JUMP_ALIGN, ret
    7044.Return:
Note: See TracChangeset for help on using the changeset viewer.