Changeset 505 in xtideuniversalbios for trunk/BIOS_Drive_Information_Tool/Src


Ignore:
Timestamp:
Feb 25, 2013, 4:23:09 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Reverted the changes to MenuEvents.inc done in r492 since they broke the F1 key function in XTIDECFG.
  • Added a tail-call optimized variant of the CALL_DISPLAY_LIBRARY macro (JMP_DISPLAY_LIBRARY).
  • Put a block size limit in AH1Eh_ChangeXTCFmodeBasedOnControlRegisterInAL. I think it's needed but if not, it's easy to remove.
  • Other optimizations and fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BIOS_Drive_Information_Tool/Src/Print.asm

    r426 r505  
    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
    18 ;               
     18;
    1919
    2020; Section containing code
     
    3333    mov     bl, ATTRIBUTES_NOT_USED
    3434    mov     ax, DosCharOut
    35     CALL_DISPLAY_LIBRARY    SetCharOutputFunctionFromAXwithAttribFlagInBL
    36     ret
     35    JMP_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInBL
     36
    3737
    3838;--------------------------------------------------------------------
     
    7272    call    Print_FormatStringFromSIwithParameterInAX
    7373    stc     ; Keep the CF set
    74 ALIGN JUMP_ALIGN
     74ALIGN JUMP_ALIGN, ret
    7575.NoErrors:
    7676    ret
     
    182182    push    ax
    183183    mov     si, g_szFormatCHS
    184     CALL_DISPLAY_LIBRARY    FormatNullTerminatedStringFromCSSI
    185     CALL_DISPLAY_LIBRARY    PrintNewlineCharacters
     184    CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI
     185    CALL_DISPLAY_LIBRARY PrintNewlineCharacters
    186186
    187187    pop     si
     
    243243    call    Print_NullTerminatedStringFromSI
    244244    pop     si
    245        
     245
    246246    ret
    247247
     
    275275;       AX, DI
    276276;--------------------------------------------------------------------
    277 JumpToFormatNullTerminatedStringFromSI:
    278     CALL_DISPLAY_LIBRARY    FormatNullTerminatedStringFromCSSI
    279     ret
     277JumpToFormatNullTerminatedStringFromSI:
     278    JMP_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI
    280279
    281280
     
    290289;--------------------------------------------------------------------
    291290Print_NullTerminatedStringFromSI:
    292     CALL_DISPLAY_LIBRARY    PrintNullTerminatedStringFromCSSI
    293     ret
     291    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
     292
Note: See TracChangeset for help on using the changeset viewer.