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


Ignore:
Timestamp:
Mar 13, 2012, 5:29:34 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Serial server DPT flag optimization, remove Serial/IDE specific header on drive scan results, added GNU GPL v2 banner at boot.

File:
1 edited

Legend:

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

    r332 r334  
    99SECTION .text
    1010
    11 ; POST drive detection strings
    12 g_szRomAt:      db  "%s @ %x",LF,CR,NULL
    13 
    14 ; Boot loader strings
    15 g_szTryToBoot:          db  "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
    16 g_szBootSectorNotFound: db  "Boot sector "
    17 g_szNotFound:           db  "not found",LF,CR,NULL
    18 g_szReadError:          db  "Error %x!",LF,CR,NULL
    19 
    20 g_szAddressingModes:
    21 g_szLCHS:       db  "L-CHS",NULL
    22 g_szPCHS:       db  "P-CHS",NULL
    23 g_szLBA28:      db  "LBA28",NULL
    24 g_szLBA48:      db  "LBA48",NULL
    25 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
    26 ;
    27 ; Ensure that addressing modes are correctly spaced in memory
    28 ;
    29 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    30     %if g_szLCHS <> g_szAddressingModes
    31         %error "g_szAddressingModes Displacement Incorrect 1"
    32     %endif
    33     %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
    34         %error "g_szAddressingModes Displacement Incorrect 2"
    35     %endif
    36     %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
    37         %error "g_szAddressingModes Displacement Incorrect 3"
    38     %endif
    39     %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
    40         %error "g_szAddressingModes Displacement Incorrect 4"
     11; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
     12; To support an optimization in that code, these strings must start on the same 256 byte page,
     13; which is checked at assembly time below.
     14;
     15g_szDetectStart:
     16g_szDetectMaster:       db  "Master",NULL
     17g_szDetectSlave:        db  "Slave ",NULL
     18g_szDetectOuter:        db  "%s at %s: ",NULL
     19;%%; %ifdef MODULE_SERIAL       ;%%; is stripped off after string compression, %ifdef won't compress properly
     20g_szDetectCOM:          db  "COM%c%s",NULL
     21g_szDetectCOMAuto:      db  " Detect",NULL
     22g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
     23g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
     24;%%; %endif                     ;%%; is stripped off after string compression, %ifdef won't compress properly
     25g_szDetectEnd:
     26g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
     27
     28%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     29    %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
     30        %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"
    4131    %endif
    4232%endif
     
    5949    %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
    6050        %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"
     51    %endif
     52%endif
     53
     54; POST drive detection strings
     55g_szRomAt:      db  "%s @ %x",LF,CR
     56                db  "Released under GNU GPL v2",LF,CR,LF,CR,NULL
     57
     58; Boot loader strings
     59g_szTryToBoot:          db  "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
     60g_szBootSectorNotFound: db  "Boot sector "
     61g_szNotFound:           db  "not found",LF,CR,NULL
     62g_szReadError:          db  "Error %x!",LF,CR,NULL
     63
     64g_szAddressingModes:
     65g_szLCHS:       db  "L-CHS",NULL
     66g_szPCHS:       db  "P-CHS",NULL
     67g_szLBA28:      db  "LBA28",NULL
     68g_szLBA48:      db  "LBA48",NULL
     69g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
     70;
     71; Ensure that addressing modes are correctly spaced in memory
     72;
     73%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     74    %if g_szLCHS <> g_szAddressingModes
     75        %error "g_szAddressingModes Displacement Incorrect 1"
     76    %endif
     77    %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
     78        %error "g_szAddressingModes Displacement Incorrect 2"
     79    %endif
     80    %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
     81        %error "g_szAddressingModes Displacement Incorrect 3"
     82    %endif
     83    %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
     84        %error "g_szAddressingModes Displacement Incorrect 4"
    6185    %endif
    6286%endif
     
    102126g_szDashForZero:        db      "- ",NULL
    103127
     128; Boot menu bottom of screen strings
     129g_szFDD:        db  "FDD     ",NULL
     130g_szHDD:        db  "HDD     ",NULL
     131g_szRomBoot:    db  "ROM Boot",NULL
     132g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
     133
     134; Boot Menu information strings
     135g_szCapacity:           db  "Capacity : %s",NULL
     136g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
     137g_szInformation:        db  "%s",LF,CR
     138    db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     139    db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
     140
    104141; Boot Menu menuitem strings
    105142;
     
    120157    %endif
    121158%endif
    122 
    123 ; Boot menu bottom of screen strings
    124 g_szFDD:        db  "FDD     ",NULL
    125 g_szHDD:        db  "HDD     ",NULL
    126 g_szRomBoot:    db  "ROM Boot",NULL
    127 g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
    128 
    129 ; Boot Menu information strings
    130 g_szCapacity:           db  "Capacity : %s",NULL
    131 g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
    132 g_szInformation:        db  "%s",LF,CR
    133     db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    134     db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    135 
    136 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
    137 ; To support an optimization in that code, these strings must start on the same 256 byte page,
    138 ; which is checked at assembly time below.
    139 ;
    140 g_szDetectStart:
    141 g_szDetectMaster:       db  "Master",NULL
    142 g_szDetectSlave:        db  "Slave ",NULL
    143 g_szDetectOuter:        db  "IDE %s at %s: ",NULL
    144 ;%%; %ifdef MODULE_SERIAL       ;%%; is stripped off after string compression, %ifdef won't compress properly
    145 g_szDetectOuterSerial:  db  "Serial %s on %s: ",NULL
    146 g_szDetectCOM:          db  "COM%c%s",NULL
    147 g_szDetectCOMAuto:      db  " Detect",NULL
    148 g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
    149 g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
    150 ;%%; %endif                     ;%%; is stripped off after string compression, %ifdef won't compress properly
    151 g_szDetectEnd:
    152 g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
    153 
    154 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    155     %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
    156         %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"
    157     %endif
    158 %endif
    159 
     159       
    160160;------------------------------------------------------------------------------------------
    161161;
Note: See TracChangeset for help on using the changeset viewer.