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/Assembly_Library/Src/Display/DisplayFormatCompressed.asm

    r376 r445  
    66
    77;
    8 ; XTIDE Universal BIOS and Associated Tools 
     8; XTIDE Universal BIOS and Associated Tools
    99; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    1010;
     
    1313; the Free Software Foundation; either version 2 of the License, or
    1414; (at your option) any later version.
    15 ; 
     15;
    1616; This program is distributed in the hope that it will be useful,
    1717; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1818; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19 ; GNU General Public License for more details.     
     19; GNU General Public License for more details.
    2020; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    2121;
     
    194194
    195195.process_after_output:
    196     shl     ch,1                                ; check high order bits for end of string or space
     196    eSHL_IM ch,1                                ; check high order bits for end of string or space
    197197    jns     short DisplayFormatCompressed_ret
    198198    jnc     .decode
     
    208208; DisplayFormatCompressed_BaseFormatOffset and jump targets (must fit in 256 bytes)
    209209;
    210     shl     ch,1                ; setup ch for later testing of null in .process_after_output
     210    eSHL_IM ch,1                ; setup ch for later testing of null in .process_after_output
    211211    and     ax,0001fh           ; also clears AH for addition with BX and DX below
    212212
Note: See TracChangeset for help on using the changeset viewer.