Changeset 445 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h


Ignore:
Timestamp:
Aug 29, 2012, 12:59:23 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • A speed optimization to the eSHL_IM macro for 386 and higher. This change breaks emulation in the sense that the macro will fail when given a memory operand as the first parameter.
  • Memory_SumCXbytesFromESSItoAL now returns with the zero flag set/cleared according to the result.
  • Unrolled all the 8 bit READ transfer loops to do 16 bytes per iteration. Added a new macro (UNROLL_SECTORS_IN_CX_TO_OWORDS) as part of it. Size wise this is expensive but I think it should be worth the ROM space. The WRITE transfer loops were left as is since writes are rare anyway (<10% of all disk I/O IIRC).
  • Minor optimizations and fixes here and there.
Location:
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r443 r445  
    244244;       Nothing
    245245;--------------------------------------------------------------------
     246DoNotEnable8bitMode:
    246247IgnoreInvalidCommandError:
    247248    xor     ah, ah  ; Clears CF
     
    270271;--------------------------------------------------------------------
    271272AH9h_Enable8bitPioModeForXTCF:
    272     eMOVZX  bx, BYTE [di+DPT.bIdevarsOffset]
     273    eMOVZX  bx, [di+DPT.bIdevarsOffset]
    273274    cmp     BYTE [cs:bx+IDEVARS.bDevice], DEVICE_8BIT_XTCF
    274     je      SHORT .Enable8bitMode
    275     xor     ah, ah      ; Do nothing for this device
    276     ret
    277 .Enable8bitMode:
     275    jne     SHORT DoNotEnable8bitMode
     276
    278277    mov     si, FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE
    279278    jmp     AH23h_SetControllerFeatures
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm

    r429 r445  
    33
    44;
    5 ; XTIDE Universal BIOS and Associated Tools 
     5; XTIDE Universal BIOS and Associated Tools
    66; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    77;
     
    1010; the Free Software Foundation; either version 2 of the License, or
    1111; (at your option) any later version.
    12 ; 
     12;
    1313; This program is distributed in the hope that it will be useful,
    1414; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1616; GNU General Public License for more details.
    17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html               
    18 ;               
     17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     18;
    1919
    2020; Section containing code
     
    106106    push    cx
    107107    push    ax
    108     call    AHDh_WaitUnilDriveMotorHasReachedFullSpeed
     108    call    AHDh_WaitUntilDriveMotorHasReachedFullSpeed
    109109    call    AH9h_InitializeDriveForUse          ; Initialize Master or Slave (Master will come first in DPT list)
    110110
     
    133133
    134134;--------------------------------------------------------------------
    135 ; AHDh_WaitUnilDriveMotorHasReachedFullSpeed
     135; AHDh_WaitUntilDriveMotorHasReachedFullSpeed
    136136;   Parameters:
    137137;       DS:DI:  Ptr to DPT
     
    142142;       AL, BX, CX, DX
    143143;--------------------------------------------------------------------
    144 AHDh_WaitUnilDriveMotorHasReachedFullSpeed:
     144AHDh_WaitUntilDriveMotorHasReachedFullSpeed:
    145145%ifdef MODULE_SERIAL
    146146    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Prepare.asm

    r421 r445  
    33
    44;
    5 ; XTIDE Universal BIOS and Associated Tools 
     5; XTIDE Universal BIOS and Associated Tools
    66; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    77;
     
    1010; the Free Software Foundation; either version 2 of the License, or
    1111; (at your option) any later version.
    12 ; 
     12;
    1313; This program is distributed in the hope that it will be useful,
    1414; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1616; GNU General Public License for more details.
    17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html               
    18 ;               
     17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     18;
    1919
    2020; Section containing code
     
    5555    call    Prepare_GetOldInt13hCommandIndexToBX
    5656    mov     al, [di+DPT.bFlagsLow]
    57     shl     al, 1                   ; Set CF if LBA48 supported
     57    eSHL_IM al, 1                   ; Set CF if LBA48 supported
    5858    adc     bl, bh                  ; LBA48 EXT commands
    5959    ret
Note: See TracChangeset for help on using the changeset viewer.