Changeset 491 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Strings.asm


Ignore:
Timestamp:
Dec 15, 2012, 2:46:29 PM (10 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r489 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
    1616; GNU General Public License for more details.
    17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html       
    18 ;       
     17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     18;
    1919
    2020%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
     
    2424; Section containing code
    2525SECTION .text
    26 
    27 ; POST drive detection strings
    28 g_szDashForZero:    db  "- ",NULL   ; Required by Display Library
    29 g_szRomAt:          db  LF,CR
    30                     db  "%s @ %x",LF,CR                     ; -=XTIDE ... =- @ Segment
    31                     db  "%s",LF,CR                          ; version string
    32                     db  "Released under GNU GPL v2",LF,CR   
    33                     db  LF,CR,NULL
    34 %ifdef MODULE_BOOT_MENU
    35 g_szBootMenuTitle:  db  "%s%c",LF,CR                        ; -=XTIDE ... =- and null (eaten)
    36                     db  "%s",NULL                           ; version string
    37 %endif
    38 g_szDriveName:      db  "%z",LF,CR,NULL
    3926
    4027; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
     
    4734g_szDetectOuter:        db  "%s at %s: ",NULL
    4835%ifdef MODULE_SERIAL
    49 g_szDetectCOM:          db  "COM%c%s",NULL
     36g_szDetectCOM:          db  "COM%c%s",NULL
    5037g_szDetectCOMAuto:      db  " Detect",NULL
    5138g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
     
    5340%endif
    5441g_szDetectEnd:
    55 g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
     42g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
    5643
    5744%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    5845    %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
    59         %error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP.  Please move this block up or down within strings.asm"
    60     %endif
    61 %endif
     46        %error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP.  Please move this block up or down within Strings.asm"
     47    %endif
     48%endif
     49
     50
     51; POST drive detection strings
     52g_szDashForZero:    db  "- ",NULL   ; Required by Display Library
     53g_szRomAt:          db  LF,CR
     54                    db  "%s @ %x",LF,CR                     ; -=XTIDE ... =- @ Segment
     55                    db  "%s",LF,CR                          ; version string
     56                    db  "Released under GNU GPL v2",LF,CR
     57                    db  LF,CR,NULL
     58%ifdef MODULE_BOOT_MENU
     59g_szBootMenuTitle:  db  "%s%c",LF,CR                        ; -=XTIDE ... =- and null (eaten)
     60                    db  "%s",NULL                           ; version string
     61%endif
     62g_szDriveName:      db  "%z",LF,CR,NULL
    6263
    6364
     
    7071
    7172%ifdef MODULE_HOTKEYS
    72 
    7373; Hotkey Bar strings
    7474g_szFDD:        db  "FDD [%c]",NULL         ; "FDD [A]"
     
    8181
    8282%ifdef MODULE_BOOT_MENU
    83 
    8483; Boot Menu Floppy Disk strings
    8584;
     
    8988;
    9089g_szFddStart:
    91 g_szFddUnknown: db  "Unknown",NULL
    92 g_szFddSizeOr:  db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
    93 g_szFddSize:    db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
    94 g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
     90g_szFddUnknown:     db  "Unknown",NULL
     91g_szFddSizeOr:      db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
     92g_szFddSize:        db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
     93g_szFddThreeHalf:   db  "3",ONE_HALF,NULL
    9594g_szFddEnd:
    96 g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL
     95g_szFddFiveQuarter: db  "5",ONE_QUARTER,NULL
    9796
    9897%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    9998    %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
    100         %error "g_szFdd* strings must start on the same 256 byte page, required by the BootMenuPrint_RefreshInformation routines for floppy drives.  Please move this block up or down within strings.asm"
     99        %error "g_szFdd* strings must start on the same 256 byte page, required by the BootMenuPrint_RefreshInformation routines for floppy drives.  Please move this block up or down within Strings.asm"
    101100    %endif
    102101%endif
     
    123122%endif
    124123
     124
    125125g_szDeviceTypeValues:
    126 g_szDeviceTypeValues_16bit:     db      " 16",NULL
    127 g_szDeviceTypeValues_32bit:     db      " 32",NULL
    128 g_szDeviceTypeValues_8bit:      db      "  8",NULL
    129 g_szDeviceTypeValues_XTIDEr1:   db      "D8 ",NULL  ; Dual 8-bit
    130 g_szDeviceTypeValues_XTIDEr2:   db      "X8 ",NULL  ; A0<->A3 swapped 8-bit
    131 g_szDeviceTypeValues_XTCFpio8:  db      "T8 ",NULL  ; True 8-bit
    132 g_szDeviceTypeValues_XTCFdma:   db      "8MA",NULL  ; DMA 8-bit
    133 g_szDeviceTypeValues_XTCFmem:   db      "M8 ",NULL  ; Memory Mapped 8-bit
    134 g_szDeviceTypeValues_JrIde:     db      "M8 ",NULL
    135 g_szDeviceTypeValues_Serial:    db      "SER",NULL
     126g_szDeviceTypeValues_16bit:     db  " 16",NULL
     127g_szDeviceTypeValues_32bit:     db  " 32",NULL
     128g_szDeviceTypeValues_8bit:      db  "  8",NULL
     129g_szDeviceTypeValues_XTIDEr1:   db  "D8 ",NULL  ; Dual 8-bit
     130g_szDeviceTypeValues_XTIDEr2:   db  "X8 ",NULL  ; A0<->A3 swapped 8-bit
     131g_szDeviceTypeValues_XTCFpio8:  db  "T8 ",NULL  ; True 8-bit
     132g_szDeviceTypeValues_XTCFdma:   db  "8MA",NULL  ; DMA 8-bit
     133g_szDeviceTypeValues_XTCFmem:   db  "M8 ",NULL  ; Memory Mapped 8-bit
     134g_szDeviceTypeValues_JrIde:     db  "M8 ",NULL
     135g_szDeviceTypeValues_Serial:    db  "SER",NULL
    136136
    137137g_szDeviceTypeValues_Displacement equ (g_szDeviceTypeValues_32bit - g_szDeviceTypeValues)
     
    172172%endif
    173173
    174 g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    175 
     174
     175g_szSelectionTimeout:   db  DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    176176
    177177
     
    180180g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
    181181g_szInformation:        db  "%s",LF,CR
    182     db  "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    183     db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
     182    db  "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,"IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     183    db  "%s",SINGLE_VERTICAL,"%5-u",SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",NULL
    184184
    185185
     
    199199%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    200200    %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
    201         %error "g_szBootMenuPrint* strings must start on the same 256 byte page, required by the BootMenuPrint_* routines.  Please move this block up or down within strings.asm"
     201        %error "g_szBootMenuPrint* strings must start on the same 256 byte page, required by the BootMenuPrint_* routines.  Please move this block up or down within Strings.asm"
    202202    %endif
    203203%endif
     
    221221;  * There can only be 32 of these (0-31).
    222222;  * Keeping the list short is good - this translates to a table in the compressed version.
    223 ;    An error will be reported if a character or format is no longer being used by any 
     223;    An error will be reported if a character or format is no longer being used by any
    224224;    strings above.
    225225;  * Please keep items sequential for ease of further editing.
Note: See TracChangeset for help on using the changeset viewer.