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


Ignore:
Timestamp:
Mar 4, 2011, 1:47:17 PM (14 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to the XTIDE Universal BIOS:

  • Size optimizations in various files.
File:
1 edited

Legend:

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

    r126 r128  
    141141;   Corrupts registers:
    142142;       AX
    143 ;--------------------------------------------------------------------   
     143;--------------------------------------------------------------------
    144144ALIGN JUMP_ALIGN
    145145DriveXlate_Reset:
     
    160160;   Corrupts registers:
    161161;       Nothing
    162 ;--------------------------------------------------------------------   
     162;--------------------------------------------------------------------
    163163ALIGN JUMP_ALIGN
    164164DriveXlate_SetDriveToSwap:
    165     test    dl, 80h             ; Floppy drive?
    166     jnz     SHORT .SetHardDiskToSwap
     165    test    dl, dl              ; Floppy drive?
     166    js      SHORT .SetHardDiskToSwap
    167167.SetFloppyDriveToSwap:
    168168    mov     [RAMVARS.xlateVars+XLATEVARS.bFDSwap], dl
     
    187187;   Corrupts registers:
    188188;       Nothing
    189 ;--------------------------------------------------------------------   
     189;--------------------------------------------------------------------
    190190ALIGN JUMP_ALIGN
    191191DriveXlate_DoesFunctionReturnSomethingInDL:
    192192    cmp     ah, 08h         ; AH=08h, Read Disk Drive Parameters?
    193193    je      SHORT DriveXlate_FunctionReturnsSomethingInDL
    194     test    dl, 80h
    195     jz      SHORT DriveXlate_DoesFloppyFunctionReturnSomethingInDL
     194    test    dl, dl
     195    jns     SHORT DriveXlate_DoesFloppyFunctionReturnSomethingInDL
    196196    ; Fall to DriveXlate_DoesHardDiskFunctionReturnSomethingInDL
    197197
     
    211211;   Corrupts registers:
    212212;       Nothing
    213 ;--------------------------------------------------------------------   
     213;--------------------------------------------------------------------
    214214; ALIGN JUMP_ALIGN
    215215DriveXlate_DoesHardDiskFunctionReturnSomethingInDL:
Note: See TracChangeset for help on using the changeset viewer.