Changeset 445 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/IDE_8bit.inc

    r442 r445  
    44
    55;
    6 ; XTIDE Universal BIOS and Associated Tools 
     6; XTIDE Universal BIOS and Associated Tools
    77; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    88;
     
    1111; the Free Software Foundation; either version 2 of the License, or
    1212; (at your option) any later version.
    13 ; 
     13;
    1414; This program is distributed in the hope that it will be useful,
    1515; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1616; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17 ; GNU General Public License for more details.     
     17; GNU General Public License for more details.
    1818; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1919;
     
    2525; UNROLL_SECTORS_IN_CX_TO_DWORDS
    2626; UNROLL_SECTORS_IN_CX_TO_QWORDS
     27; UNROLL_SECTORS_IN_CX_TO_OWORDS
    2728;   Parameters:
    2829;       CX:     Number of sectors in block
    2930;   Returns:
    30 ;       CX:     Number of DWORDs or QWORDs in block
     31;       CX:     Number of DWORDs, QWORDs or OWORDs in block
    3132;   Corrupts registers:
    3233;       Nothing
     
    4647%else
    4748    UNROLL_SECTORS_IN_CX_TO_DWORDS
     49    shr     cx, 1
     50%endif
     51%endmacro
     52
     53%macro UNROLL_SECTORS_IN_CX_TO_OWORDS 0
     54%ifdef USE_186
     55    shl     cx, 5
     56%else
     57    UNROLL_SECTORS_IN_CX_TO_QWORDS
    4858    shr     cx, 1
    4959%endif
Note: See TracChangeset for help on using the changeset viewer.