Changeset 505 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/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.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/AutoConfigure.asm

    r504 r505  
    114114
    115115    ; Point to next IDEVARS
     116    add     si, IDEVARS_size
    116117    cmp     si, ROMVARS.ideVars3
    117     jae     SHORT .AllPortsAlreadyDetected
    118     add     si, IDEVARS_size
    119     jmp     SHORT .DetectFromNextPort
     118    jbe     SHORT .DetectFromNextPort
    120119.AllPortsAlreadyDetected:
    121120    ret
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/IdeAutodetect.asm

    r504 r505  
    2222
    2323;--------------------------------------------------------------------
    24 ; IdeAutodetect_DetectIdeDeviceFromPortDXAndReturnControlBlockInCX
     24; IdeAutodetect_DetectIdeDeviceFromPortDXAndReturnControlBlockInSI
    2525;   Parameters:
    2626;       DX:     IDE Base Port or segment address (Command Block)
     
    193193    jne     SHORT .InvalidStatusRegister
    194194
    195     ; Bytes were the same but it is possible they were both FFh, for 
     195    ; Bytes were the same but it is possible they were both FFh, for
    196196    ; example. We must make sure bits are what is expected from valid
    197197    ; IDE Status Register. So far all drives I've tested return 50h
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm

    r497 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; Include .inc files
    21        
     21
    2222%define INCLUDE_MENU_DIALOGS
    2323%define INCLUDE_SERIAL_LIBRARY
    24        
     24
    2525%include "AssemblyLibrary.inc"  ; Assembly Library. Must be included first!
    2626%include "Romvars.inc"          ; XTIDE Universal BIOS variables
     
    103103    CALL_DISPLAY_LIBRARY InitializeDisplayContext   ; Reset cursor etc
    104104    xchg    ax, dx
    105     CALL_DISPLAY_LIBRARY ClearScreenWithCharInALandAttrInAH
    106     ret
     105    JMP_DISPLAY_LIBRARY ClearScreenWithCharInALandAttrInAH
    107106
    108107
  • 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.