Ignore:
Timestamp:
Feb 25, 2013, 4:23:09 PM (11 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/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuEvents.asm

    r376 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
     
    204204    call    .PrintStatusOfUnsavedChanges
    205205    stc
     206.ReturnSinceNothingToPrint:
    206207    ret
    207208
     
    209210.PrintProgramName:
    210211    mov     si, g_szProgramTitle
    211     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    212     ret
     212    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    213213
    214214ALIGN JUMP_ALIGN
     
    223223.PrintNothingLoaded:
    224224    mov     si, g_szBiosIsNotLoaded
    225     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    226     ret
     225    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    227226
    228227ALIGN JUMP_ALIGN
     
    248247    mov     bx, es
    249248    lea     si, [di+ROMVARS.szVersion]
    250     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI
    251     ret
     249    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI
    252250
    253251ALIGN JUMP_ALIGN
    254252.PrintUnidentifiedType:
    255253    mov     si, g_szUnidentified
    256     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    257     ret
     254    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    258255
    259256ALIGN JUMP_ALIGN
     
    262259    jz      SHORT .ReturnSinceNothingToPrint
    263260    mov     si, g_szUnsaved
    264     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
    265 .ReturnSinceNothingToPrint:
    266     ret
     261    JMP_DISPLAY_LIBRARY PrintNullTerminatedStringFromCSSI
Note: See TracChangeset for help on using the changeset viewer.