Changeset 252 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm


Ignore:
Timestamp:
Feb 18, 2012, 2:12:54 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu now shows only one capacity.
  • Added "strings" makefile target to compress strings.
File:
1 edited

Legend:

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

    r241 r252  
    22;;;
    33;;; This file is generated by StringsCompress.pl from source in Strings.asm
    4 ;;; DO NOT EDIT DIRECTLY - See the maekfile for how to rebuild this file.
     4;;; DO NOT EDIT DIRECTLY - See the makefile for how to rebuild this file.
    55;;; This file only needs to be rebuilt if Strings.asm is changed.
    66;;;
     
    1818
    1919; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP
    20 ; To support an optimization in that code, these strings must start on the same 256 byte page, 
     20; To support an optimization in that code, these strings must start on the same 256 byte page,
    2121; which is checked at assembly time below.
    2222;
    23 g_szDetectStart:       
    24 g_szDetectMaster:       ; db    "Master",NULL 
     23g_szDetectStart:
     24g_szDetectMaster:       ; db    "Master",NULL
    2525                        ; db     4dh,  61h,  73h,  74h,  65h,  72h,  00h    ; uncompressed
    2626                          db     53h,  67h,  79h,  7ah,  6bh, 0b8h          ; compressed
     
    3838                          db     19h                ; compressed
    3939
    40 g_szDetectCOM:          ; db  "COM%c%s",NULL           
     40g_szDetectCOM:          ; db  "COM%c%s",NULL
    4141                        ; db   43h,  4fh,  4dh,  25h,  63h,  25h,  73h,  00h    ; uncompressed
    4242                          db   49h,  55h,  53h,  35h,  1eh                      ; compressed
     
    5656
    5757
    58 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     58%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    5959%if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
    6060%error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP.  Please move this block up or down within strings.asm"
     
    6363
    6464; Boot Menu menuitem strings
    65 ; 
     65;
    6666; The following strings are used by BootMenuPrint_* routines.
    67 ; To support optimizations in that code, these strings must start on the same 256 byte page, 
     67; To support optimizations in that code, these strings must start on the same 256 byte page,
    6868; which is checked at assembly time below.
    69 ;       
    70 g_szBootMenuPrintStart: 
     69;
     70g_szBootMenuPrintStart:
    7171g_szDriveNum:           ; db    "%x %s",NULL
    7272                        ; db     25h,  78h,  20h,  25h,  73h,  00h    ; uncompressed
     
    8181                          db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0ebh,  15h                            ; compressed
    8282
    83 g_szBootMenuPrintEnd:   
     83g_szBootMenuPrintEnd:
    8484g_szForeignHD:          ; db    "Foreign Hard Disk",NULL
    8585                        ; db     46h,  6fh,  72h,  65h,  69h,  67h,  6eh,  20h,  48h,  61h,  72h,  64h,  20h,  44h,  69h,  73h,  6bh,  00h    ; uncompressed
     
    8787
    8888
    89 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     89%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    9090%if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
    9191%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"
     
    140140                          db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh, 0c0h,  1eh                            ; compressed
    141141
    142 g_szCapacityNum:        ; db    "%5-u.%u %ciB",NULL     
     142g_szCapacityNum:        ; db    "%5-u.%u %ciB",NULL
    143143                        ; db     25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  00h    ; uncompressed
    144144                          db     38h,  29h,  37h,  20h,  35h,  6fh,  88h                                        ; compressed
    145145
    146 g_szSizeDual:           ; db    "%s /%s",LF,CR
    147                         ; db     25h,  73h,  20h,  2fh, 25h,  73h,  0ah,  0dh    ; uncompressed
    148                           db     3eh,  20h,  2ah,  3eh,  3bh                      ; compressed
     146g_szInformation:        ; db    "%s",LF,CR
     147                        ; db    25h,  73h,  0ah,  0dh    ; uncompressed
     148                          db     3eh,  3bh                ; compressed
    149149
    150150    ; db    "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     
    158158
    159159; Boot Menu Floppy Disk strings
    160 ; 
     160;
    161161; The following strings are used by BootMenuPrint_RefreshInformation
    162 ; To support optimizations in that code, these strings must start on the same 256 byte page, 
     162; To support optimizations in that code, these strings must start on the same 256 byte page,
    163163; which is checked at assembly time below.
    164 ;               
    165 g_szFddStart:   
     164;
     165g_szFddStart:
    166166g_szFddUnknown: ; db    "Unknown",NULL
    167167                ; db     55h,  6eh,  6bh,  6eh,  6fh,  77h,  6eh,  00h    ; uncompressed
     
    180180                          db   2dh,  02h          ; compressed
    181181
    182 g_szFddEnd:     
     182g_szFddEnd:
    183183g_szFddFiveQuarter:     ; db  "5",ONE_QUARTER,NULL
    184184                        ; db   35h, 0ach,  00h    ; uncompressed
     
    186186
    187187
    188 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     188%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    189189%if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
    190190%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"
    191191%endif
    192 %endif                     
    193 
    194 g_szAddressingModes:                   
     192%endif
     193
     194g_szAddressingModes:
    195195g_szLCHS:       ; db    "L-CHS",NULL
    196196                ; db     4ch,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
     
    213213; Ensure that addressing modes are correctly spaced in memory
    214214;
    215 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
     215%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    216216%if g_szLCHS <> g_szAddressingModes
    217217%error "g_szAddressingModes Displacement Incorrect 1"
     
    220220%error "g_szAddressingModes Displacement Incorrect 2"
    221221%endif
    222 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement       
     222%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
    223223%error "g_szAddressingModes Displacement Incorrect 3"
    224224%endif
    225 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement       
     225%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
    226226%error "g_szAddressingModes Displacement Incorrect 4"
    227227%endif
    228 %endif     
    229 
    230 g_szBusTypeValues:     
     228%endif
     229
     230g_szBusTypeValues:
    231231g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
    232232                                ; db         44h,  38h,  20h,  00h    ; uncompressed
     
    257257; Ensure that bus type strings are correctly spaced in memory
    258258;
    259 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     259%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    260260%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
    261261%error "g_szBusTypeValues Displacement Incorrect 1"
    262262%endif
    263263%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
    264 %error "g_szBusTypeValues Displacement Incorrect 2"     
     264%error "g_szBusTypeValues Displacement Incorrect 2"
    265265%endif
    266266%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
    267 %error "g_szBusTypeValues Displacement Incorrect 3"             
    268 %endif
    269 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement     
    270 %error "g_szBusTypeValues Displacement Incorrect 4"             
     267%error "g_szBusTypeValues Displacement Incorrect 3"
     268%endif
     269%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
     270%error "g_szBusTypeValues Displacement Incorrect 4"
    271271%endif
    272272%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
    273 %error "g_szBusTypeValues Displacement Incorrect 5"             
     273%error "g_szBusTypeValues Displacement Incorrect 5"
    274274%endif
    275275%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
    276 %error "g_szBusTypeValues Displacement Incorrect 6"             
     276%error "g_szBusTypeValues Displacement Incorrect 6"
    277277%endif
    278278%endif
     
    290290
    291291;------------------------------------------------------------------------------------------
    292 ; 
     292;
    293293; Tables for StringsCompress.pl
    294294;
     
    304304;$translate{ord('.')} = 9;    [StringsCompress Processed]
    305305;$translate{ord('/')} = 10;    [StringsCompress Processed]
    306 ;$translate{ord('1')} = 11;        [StringsCompress Processed]
     306;$translate{ord('1')} = 11;    [StringsCompress Processed]
    307307;$translate{ord('2')} = 12;    [StringsCompress Processed]
    308308;$translate{ord('3')} = 13;    [StringsCompress Processed]
     
    334334;
    335335; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
    336 ; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the 
     336; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
    337337; front end.
    338338;
     
    342342;
    343343;------------------------------------------------------------------------------------------
    344 
    345 
    346344
    347345;;; end of input stream
     
    423421;; translated usage stats
    424422;; 33:1
    425 ;; 32:31
     423;; 32:30
    426424;; 181:1
    427425;; 53:2
     
    433431;; 50:2
    434432;; 51:3
    435 ;; 47:3
     433;; 47:2
    436434;; 52:1
    437435;; 172:2
     
    450448;; 5-u:2
    451449;; x:7
    452 ;; s:13
     450;; s:12
    453451;; 5-x:1
    454452;; nl:6
Note: See TracChangeset for help on using the changeset viewer.