Changeset 445 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu


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/Menu/CharOutLineSplitter.asm

    r376 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
    16 ; GNU General Public License for more details.     
     16; GNU General Public License for more details.
    1717; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1818;
    19        
     19
    2020
    2121; Section containing code
     
    4040    ; Get last text line column offset to AX
    4141    call    MenuLocation_GetMaxTextLineLengthToAX
    42     shl     ax, 1           ; Characters to BYTEs
     42    eSHL_IM ax, 1           ; Characters to BYTEs
    4343    add     ax, dx
    4444
     
    6262    call    MenuLocation_GetTitleBordersTopLeftCoordinatesToAX
    6363    xor     ah, ah
    64     shl     ax, 1
     64    eSHL_IM ax, 1
    6565    ret
    6666
     
    8282
    8383    mov     dl, [VIDEO_BDA.wColumns]
    84     shl     dl, 1           ; DX = bytes per row
     84    eSHL_IM dl, 1           ; DX = bytes per row
    8585    mov     ax, di
    8686    div     dl              ; AL = row index, AH = column index
Note: See TracChangeset for help on using the changeset viewer.