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


Ignore:
Timestamp:
Dec 15, 2012, 2:46:29 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Added a new define (USE_UNDOC_INTEL) that enables optimizations possible by using undocumented instructions available on all Intel processors and truly compatible clones. AFAIK the only exceptions are the NEC V-series and the Sony CXQ70108 processors so this option should be safe for use on the AT builds.
  • Building BIOSDRVS or the BIOS without MODULE_STRINGS_COMPRESSED would fail due to the recent code exclusions so I changed them a bit. Also fixed the mistaken change to Main.asm
  • Changed the Tandy specific info in Configuration_FullMode.txt so it matches the info in the Wiki.
  • Optimizations and fixes in general.
Location:
trunk/Assembly_Library/Src/Menu
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.asm

    r376 r491  
    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
     
    9999    mov     [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax
    100100
    101     ; 0 = 65536 but it needs to be adjusted to 65535 prevent division by zero
     101    ; 0 = 65536 but it needs to be adjusted to 65535 to prevent division by zero
    102102    cmp     WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], BYTE 0
    103103    jne     SHORT CalculateProgressNeededBeforeUpdatingCharacter
     
    288288    div     cx          ; AX = Estimated ticks left
    289289    xchg    dx, ax
    290     SKIP2B  f   ; cmp ax, <next instruction>
     290    SKIP2B  ax
    291291.PreventDivisionByZero:
    292292    xor     dx, dx
     
    309309    mov     bp, sp
    310310    mov     si, g_szTimeFormat
    311     call    TimerTicks_GetMinutesToAXfromTicksInDX
     311    call    TimerTicks_GetMinutesToAXandRemainderTicksToDXfromTicksInDX
    312312    push    ax
    313313    call    TimerTicks_GetSecondsToAXfromTicksInDX
  • trunk/Assembly_Library/Src/Menu/MenuScrollbars.asm

    r376 r491  
    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
     
    7979;       AX:     Item line for last thumb character
    8080;   Corrupts registers:
    81 ;       CX, DX
     81;       DX
    8282;--------------------------------------------------------------------
    8383ALIGN MENU_JUMP_ALIGN
     
    9595;       AX:     Item line for first thumb character
    9696;   Corrupts registers:
    97 ;       CX, DX
     97;       DX
    9898;--------------------------------------------------------------------
    9999ALIGN MENU_JUMP_ALIGN
  • trunk/Assembly_Library/Src/Menu/MenuTime.asm

    r376 r491  
    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
     
    101101;       AX:     Seconds until timeout
    102102;   Corrupts registers:
    103 ;       AX
     103;       Nothing
    104104;--------------------------------------------------------------------
    105105ALIGN MENU_JUMP_ALIGN
     
    116116    xchg    dx, ax
    117117    call    TimerTicks_GetSecondsToAXfromTicksInDX
    118     SKIP2B  f   ; cmp ax, <next instruction>
     118    SKIP2B  dx
    119119.TimeoutHasOccurredSoMakeSureTicksAreNotBelowZero:
    120120    xor     ax, ax
Note: See TracChangeset for help on using the changeset viewer.