Changeset 488 in xtideuniversalbios for trunk


Ignore:
Timestamp:
Dec 11, 2012, 3:36:21 PM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed unused '4' entry from Strings.asm and recompressed. Added 8x multiplier value for serial drives. Wrapped some preprocessor symbol references so that 'make xt_unused' analysis continues to work.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Emulate.inc

    r445 r488  
    439439;--------------------------------------------------------------------
    440440%macro eSHIFT_IM 3
     441%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    441442%ifndef USE_186
    442443    %ifidni %1, cl
     
    460461    %3      %1, %2
    461462%endif
     463%endif
    462464%endmacro
    463465
  • trunk/Serial_Server/library/Serial.cpp

    r376 r488  
    4040    { 230400,  0xff,  "230.4K" },
    4141    { 460800,  0xff,  "460.8K" },
     42    { 921600,  0xff,  "921.6K" },
    4243    {      0,     0, "Unknown" },
    4344};
  • trunk/Serial_Server/win32/Win32.cpp

    r376 r488  
    7171    "  -b BaudRate         Baud rate to use on the COM port, with client machine",
    7272    "                      rate multiplier in effect:",
    73     "                          None:  2400,  4800,  9600,  28.8K,  57.6K, 115.2K",
    74     "                          2x:    4800,  9600, 19200,  57.6K, 115.2K, 230.4K",
    75     "                          4x:    9600, 19200, 38400, 115.2K, 230.4K, 460.8K",
    76     "                          and for completeness:               76.8K, 153.6K",
     73    "                          None:  2400,  4800,   9600,  28.8K,  57.6K, 115.2K",
     74    "                          2x:    4800,  9600,  19200,  57.6K, 115.2K, 230.4K",
     75    "                          4x:    9600, 19200,  38400, 115.2K, 230.4K, 460.8K",
     76    "                          8x:   19200, 38400, 115.2K, 230.4K, 460.8K, 921.6K",
     77    "                          and for completeness:                76.8K, 153.6K",
    7778    "                      (default is 9600, 115.2K when in named pipe mode)",
    7879    "",
  • trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc

    r480 r488  
    132132; On performance critical situations we compare DPT_ATA.bDevice without checking FLGH_DPT_SERIAL_DEVICE
    133133; first! DPT_ATA.bDevice uses small values so there will be no problems.
     134%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    134135%if DPT_SERIAL.bSerialPort <> DPT_ATA.bDevice
    135136    %error "DPT_ATA.bDevice and DPT_SERIAL.bSerialPort must be in same offsets!"
     137%endif
    136138%endif
    137139%endif
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/JrIdeTransfer.asm

    r480 r488  
    290290
    291291
     292%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
    292293%if SECTOR_ACCESS_WINDOW_SIZE <> 512
    293294    %error "SECTOR_ACCESS_WINDOW_SIZE is no longer equal to 512. JrIdeTransfer.asm needs changes."
    294295%endif
     296%endif
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r486 r488  
    100100g_szLARGE:      db  "LARGE ",NULL
    101101g_szLBA:        db  "LBA   ",NULL
    102 wantToRemoveThis:   db  "4",NULL    ; String compression want '4' somewhere
    103102g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes)
    104103;
     
    205204;
    206205; Tables for StringsCompress.pl
     206;
     207; Items can be added and removed from this table as needed, with the following rules:
     208;  * Formats follow the special characters.  But other than that, order makes no difference.
     209;  * Some of the formats require "even" and "odd" numbering.  Even tells the code that
     210;    it is a "number-" format, otherwise it doesn't interpret a number first.  The easiest
     211;    way to maintain this is to move one of the "n/a" items to/from the front of the format
     212;    list to maintain the even/odd.
     213;  * Values do not need to remain consistent across versions.  This table is only used
     214;    internally to this file.
     215;  * There can only be 32 of these (0-31).
     216;  * Keeping the list short is good - this translates to a table in the compressed version.
     217;    An error will be reported if a character or format is no longer being used by any
     218;    strings above.
     219;  * Please keep items sequential for ease of further editing.
    207220;
    208221;$translate{ord(' ')} = 0;
     
    220233;$translate{ord('2')} = 12;
    221234;$translate{ord('3')} = 13;
    222 ;$translate{ord('4')} = 14; ; Not used at the moment
    223 ;$translate{ord('5')} = 15;
    224 ;$translate{ord('6')} = 16;
    225 ;$translate{ord('8')} = 17;
    226 ;$translate{200}      = 18;    # DOUBLE_BOTTOM_LEFT_CORNER
    227 ;$translate{181}      = 19;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
    228 ;$translate{ord('0')} = 20;
     235;$translate{ord('5')} = 14;
     236;$translate{ord('6')} = 15;
     237;$translate{ord('8')} = 16;
     238;$translate{200}      = 17;    # DOUBLE_BOTTOM_LEFT_CORNER
     239;$translate{181}      = 18;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
     240;$translate{ord('0')} = 19;
    229241;
    230242; Formats begin immediately after the last Translated character (they are in the same table)
    231243;
    232 ;$format_begin = 21;
    233 ;
    234 ;$format{"c"}   = 21;        # n/a
    235 ;$format{"2-I"} = 22;        # must be even
    236 ;$format{"u"}   = 23;        # must be odd
    237 ;$format{"5-u"} = 24;        # must be even
    238 ;$format{"x"}   = 25;        # must be odd
    239 ;$format{"5-x"} = 26;        # must be even
    240 ;$format{"nl"}  = 27;        # n/a
    241 ;$format{"2-u"} = 28;        # must be even
    242 ;$format{"A"}   = 29;        # n/a
    243 ;$format{"s"}   = 30;        # n/a, normal string from DS
    244 ;$format{"z"}   = 31;        # n/a, boot string from BDA
     244;$format_begin = 20;
     245;
     246;$format{"2-I"} = 20;        # must be even
     247;$format{"u"}   = 21;        # must be odd
     248;$format{"5-u"} = 22;        # must be even
     249;$format{"x"}   = 23;        # must be odd
     250;$format{"5-x"} = 24;        # must be even
     251;$format{"nl"}  = 25;        # n/a
     252;$format{"2-u"} = 26;        # must be even
     253;$format{"A"}   = 27;        # n/a
     254;$format{"c"}   = 28;        # n/a
     255;$format{"s"}   = 29;        # n/a, normal string from DS
     256;$format{"z"}   = 30;        # n/a, boot string from BDA
    245257;
    246258; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
  • trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm

    r486 r488  
    4242g_szRomAt:          ; db    LF,CR,"%s @ %x",LF,CR
    4343                    ; db     0ah,  0dh,  25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh    ; uncompressed
    44                       db     3bh,  3eh,  20h, 0c6h,  39h,  3bh                                  ; compressed
     44                      db     39h,  3dh,  20h, 0c6h,  37h,  39h                                  ; compressed
    4545
    4646    ; db  "Released under GNU GPL v2",LF,CR,LF,CR,NULL
    4747    ; db   52h,  65h,  6ch,  65h,  61h,  73h,  65h,  64h,  20h,  75h,  6eh,  64h,  65h,  72h,  20h,  47h,  4eh,  55h,  20h,  47h,  50h,  4ch,  20h,  76h,  32h,  0ah,  0dh,  0ah,  0dh,  00h    ; uncompressed
    48       db   58h,  6bh,  72h,  6bh,  67h,  79h,  6bh, 0eah,  7bh,  74h,  6ah,  6bh, 0f8h,  4dh,  54h, 0dbh,  4dh,  56h, 0d2h,  7ch,  2ch,  3bh,  1bh                                              ; compressed
     48      db   58h,  6bh,  72h,  6bh,  67h,  79h,  6bh, 0eah,  7bh,  74h,  6ah,  6bh, 0f8h,  4dh,  54h, 0dbh,  4dh,  56h, 0d2h,  7ch,  2ch,  39h,  19h                                              ; compressed
    4949
    5050
     
    6565g_szDetectOuter:        ; db    "%s at %s: ",NULL
    6666                        ; db     25h,  73h,  20h,  61h,  74h,  20h,  25h,  73h,  3ah,  20h,  00h    ; uncompressed
    67                           db     3eh,  20h,  67h, 0fah,  3eh,  40h,  00h                            ; compressed
     67                          db     3dh,  20h,  67h, 0fah,  3dh,  40h,  00h                            ; compressed
    6868
    6969%ifdef MODULE_SERIAL
    7070g_szDetectCOM:          ; db  "COM%c%s",NULL
    7171                        ; db   43h,  4fh,  4dh,  25h,  63h,  25h,  73h,  00h    ; uncompressed
    72                           db   49h,  55h,  53h,  35h,  1eh                      ; compressed
     72                          db   49h,  55h,  53h,  3ch,  1dh                      ; compressed
    7373
    7474g_szDetectCOMAuto:      ; db    " Detect",NULL
     
    7878g_szDetectCOMSmall:     ; db    "/%u%u00",NULL                  ; IDE Master at COM1/9600:
    7979                        ; db     2fh,  25h,  75h,  25h,  75h,  30h,  30h,  00h    ; uncompressed
    80                           db     2ah,  37h,  37h,  34h,  14h                      ; compressed
     80                          db     2ah,  35h,  35h,  33h,  13h                      ; compressed
    8181
    8282g_szDetectCOMLarge:     ; db    "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
    8383                        ; db     2fh,  25h,  75h,  2eh,  25h,  75h,  4bh,  00h    ; uncompressed
    84                           db     2ah,  37h,  29h,  37h,  91h                      ; compressed
     84                          db     2ah,  35h,  29h,  35h,  91h                      ; compressed
    8585
    8686%endif
     
    8888g_szDetectPort:         ; db    "%x",NULL                       ; IDE Master at 1F0h:
    8989                        ; db     25h,  78h,  00h    ; uncompressed
    90                           db     19h                ; compressed
     90                          db     17h                ; compressed
    9191
    9292
     
    101101g_szTryToBoot:          ; db    "Booting %c",ANGLE_QUOTE_RIGHT,"%c",LF,CR,NULL
    102102                        ; db     42h,  6fh,  6fh,  74h,  69h,  6eh,  67h,  20h,  25h,  63h, 0afh,  25h,  63h,  0ah,  0dh,  00h    ; uncompressed
    103                           db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  35h,  24h,  35h,  1bh                                  ; compressed
     103                          db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  3ch,  24h,  3ch,  19h                                  ; compressed
    104104
    105105g_szBootSectorNotFound: ; db    "Boot sector "
     
    109109g_szNotFound:           ; db    "not found",LF,CR,NULL
    110110                        ; db     6eh,  6fh,  74h,  20h,  66h,  6fh,  75h,  6eh,  64h,  0ah,  0dh,  00h    ; uncompressed
    111                           db     74h,  75h, 0fah,  6ch,  75h,  7bh,  74h,  6ah,  1bh                      ; compressed
     111                          db     74h,  75h, 0fah,  6ch,  75h,  7bh,  74h,  6ah,  19h                      ; compressed
    112112
    113113g_szReadError:          ; db    "Error %x!",LF,CR,NULL
    114114                        ; db     45h,  72h,  72h,  6fh,  72h,  20h,  25h,  78h,  21h,  0ah,  0dh,  00h    ; uncompressed
    115                           db     4bh,  78h,  78h,  75h, 0f8h,  39h,  25h,  1bh                            ; compressed
     115                          db     4bh,  78h,  78h,  75h, 0f8h,  37h,  25h,  19h                            ; compressed
    116116
    117117
     
    122122g_szFDD:        ; db    "FDD [%c]",NULL         ; "FDD [A]"
    123123                ; db     46h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
    124                   db     4ch,  4ah, 0cah,  61h,  35h, 0a3h                      ; compressed
     124                  db     4ch,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
    125125
    126126g_szHDD:        ; db    "HDD [%c]",NULL         ; "HDD [C]"
    127127                ; db     48h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
    128                   db     4eh,  4ah, 0cah,  61h,  35h, 0a3h                      ; compressed
     128                  db     4eh,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
    129129
    130130g_szBootMenu:   ; db    "%sMnu",NULL            ; "BootMnu"
    131131                ; db     25h,  73h,  4dh,  6eh,  75h,  00h    ; uncompressed
    132                   db     3eh,  53h,  74h, 0bbh                ; compressed
     132                  db     3dh,  53h,  74h, 0bbh                ; compressed
    133133
    134134g_szRomBoot:    ; db    "Rom%s",NULL            ; "RomBoot"
    135135                ; db     52h,  6fh,  6dh,  25h,  73h,  00h    ; uncompressed
    136                   db     58h,  75h,  73h,  1eh                ; compressed
     136                  db     58h,  75h,  73h,  1dh                ; compressed
    137137
    138138g_szBoot:       ; db    "Boot",NULL
     
    142142g_szHotkey:     ; db    "%A%c%c%A%s%A ",NULL    ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
    143143                ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
    144                   db     3dh,  35h,  35h,  3dh,  3eh,  3dh,  00h                                              ; compressed
     144                  db     3bh,  3ch,  3ch,  3bh,  3dh,  3bh,  00h                                              ; compressed
    145145
    146146
     
    161161g_szFddSizeOr:  ; db    "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
    162162                ; db     35h, 0ach,  22h,  20h,  6fh,  72h,  20h,  33h, 0abh,  22h,  20h,  44h,  44h,  00h    ; uncompressed
    163                   db     2fh,  21h,  26h,  20h,  75h, 0f8h,  2dh,  22h,  26h,  20h,  4ah,  8ah                ; compressed
     163                  db     2eh,  21h,  26h,  20h,  75h, 0f8h,  2dh,  22h,  26h,  20h,  4ah,  8ah                ; compressed
    164164
    165165g_szFddSize:    ; db    "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
    166166                ; db     25h,  73h,  22h,  2ch,  20h,  25h,  75h,  20h,  6bh,  69h,  42h,  00h    ; uncompressed
    167                   db     3eh,  26h,  27h,  20h,  37h,  20h,  71h,  6fh,  88h                      ; compressed
     167                  db     3dh,  26h,  27h,  20h,  35h,  20h,  71h,  6fh,  88h                      ; compressed
    168168
    169169g_szFddThreeHalf:       ; db  "3",ONE_HALF,NULL
     
    174174g_szFddFiveQuarter:     ; db  "5",ONE_QUARTER,NULL
    175175                        ; db   35h, 0ach,  00h    ; uncompressed
    176                           db   2fh,  01h          ; compressed
     176                          db   2eh,  01h          ; compressed
    177177
    178178
     
    197197                  db     52h,  48h, 0c7h,  20h,  00h                ; compressed
    198198
    199 wantToRemoveThis:   ; db    "4",NULL    ; String compression want '4' somewhere
    200                     ; db     34h,  00h    ; uncompressed
    201                       db     0eh          ; compressed
    202 
    203199g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes)
    204200;
     
    220216g_szDeviceTypeValues_16bit:     ; db        " 16",NULL
    221217                                ; db         20h,  31h,  36h,  00h    ; uncompressed
    222                                   db         20h,  2bh,  10h          ; compressed
     218                                  db         20h,  2bh,  0fh          ; compressed
    223219
    224220g_szDeviceTypeValues_32bit:     ; db        " 32",NULL
     
    228224g_szDeviceTypeValues_8bit:      ; db        "  8",NULL
    229225                                ; db         20h,  20h,  38h,  00h    ; uncompressed
    230                                   db         20h,  20h,  11h          ; compressed
     226                                  db         20h,  20h,  10h          ; compressed
    231227
    232228g_szDeviceTypeValues_XTIDEr1:   ; db        "D8 ",NULL  ; Dual 8-bit
    233229                                ; db         44h,  38h,  20h,  00h    ; uncompressed
    234                                   db         4ah,  31h,  00h          ; compressed
     230                                  db         4ah,  30h,  00h          ; compressed
    235231
    236232g_szDeviceTypeValues_XTIDEr2:   ; db        "X8 ",NULL  ; A0<->A3 swapped 8-bit
    237233                                ; db         58h,  38h,  20h,  00h    ; uncompressed
    238                                   db         5eh,  31h,  00h          ; compressed
     234                                  db         5eh,  30h,  00h          ; compressed
    239235
    240236g_szDeviceTypeValues_XTCFpio8:  ; db        "T8 ",NULL  ; True 8-bit
    241237                                ; db         54h,  38h,  20h,  00h    ; uncompressed
    242                                   db         5ah,  31h,  00h          ; compressed
     238                                  db         5ah,  30h,  00h          ; compressed
    243239
    244240g_szDeviceTypeValues_XTCFdma:   ; db        "8MA",NULL  ; DMA 8-bit
    245241                                ; db         38h,  4dh,  41h,  00h    ; uncompressed
    246                                   db         31h,  53h,  87h          ; compressed
     242                                  db         30h,  53h,  87h          ; compressed
    247243
    248244g_szDeviceTypeValues_XTCFmem:   ; db        "M8 ",NULL  ; Memory Mapped 8-bit
    249245                                ; db         4dh,  38h,  20h,  00h    ; uncompressed
    250                                   db         53h,  31h,  00h          ; compressed
     246                                  db         53h,  30h,  00h          ; compressed
    251247
    252248g_szDeviceTypeValues_JrIde:     ; db        "M8 ",NULL
    253249                                ; db         4dh,  38h,  20h,  00h    ; uncompressed
    254                                   db         53h,  31h,  00h          ; compressed
     250                                  db         53h,  30h,  00h          ; compressed
    255251
    256252g_szDeviceTypeValues_Serial:    ; db        "SER",NULL
     
    298294g_szSelectionTimeout:   ; db        DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    299295                        ; db        0c8h, 0b5h,  25h,  41h,  53h,  65h,  6ch,  65h,  63h,  74h,  69h,  6fh,  6eh,  20h,  69h,  6eh,  20h,  25h,  32h,  2dh,  75h,  20h,  73h,  00h    ; uncompressed
    300                           db         32h,  33h,  3dh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ch,  20h, 0b9h                                              ; compressed
     296                          db         31h,  32h,  3bh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ah,  20h, 0b9h                                              ; compressed
    301297
    302298
     
    307303g_szCapacity:           ; db    "Capacity : %s",NULL
    308304                        ; db     43h,  61h,  70h,  61h,  63h,  69h,  74h,  79h,  20h,  3ah,  20h,  25h,  73h,  00h    ; uncompressed
    309                           db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh, 0c0h,  1eh                            ; compressed
     305                          db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh, 0c0h,  1dh                            ; compressed
    310306
    311307g_szCapacityNum:        ; db    "%5-u.%u %ciB",NULL
    312308                        ; db     25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  00h    ; uncompressed
    313                           db     38h,  29h,  37h,  20h,  35h,  6fh,  88h                                        ; compressed
     309                          db     36h,  29h,  35h,  20h,  3ch,  6fh,  88h                                        ; compressed
    314310
    315311g_szInformation:        ; db    "%s",LF,CR
    316312                        ; db     25h,  73h,  0ah,  0dh    ; uncompressed
    317                           db     3eh,  3bh                ; compressed
     313                          db     3dh,  39h                ; compressed
    318314
    319315    ; db    "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    320316    ; db     41h,  64h,  64h,  72h,  2eh,  20h, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh    ; uncompressed
    321       db     47h,  6ah,  6ah,  78h,  29h,  20h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  3bh          ; compressed
     317      db     47h,  6ah,  6ah,  78h,  29h,  20h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  39h          ; compressed
    322318
    323319    ; db       "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    324320    ; db        25h,  73h, 0b3h,  25h,  35h,  2dh,  75h, 0b3h,  25h,  73h, 0b3h,  20h,  25h,  32h,  2dh,  49h, 0b3h,  25h,  35h,  2dh,  78h,  00h    ; uncompressed
    325       db        3eh,  23h,  38h,  23h,  3eh,  23h,  20h,  36h,  23h,  1ah                                                                            ; compressed
     321      db        3dh,  23h,  36h,  23h,  3dh,  23h,  20h,  34h,  23h,  18h                                                                            ; compressed
    326322
    327323
     
    336332g_szDriveNum:           ; db    "%x %s",NULL
    337333                        ; db     25h,  78h,  20h,  25h,  73h,  00h    ; uncompressed
    338                           db     39h,  20h,  1eh                      ; compressed
     334                          db     37h,  20h,  1dh                      ; compressed
    339335
    340336g_szDriveNumBOOTNFO:    ; db    "%x %z",NULL
    341337                        ; db     25h,  78h,  20h,  25h,  7ah,  00h    ; uncompressed
    342                           db     39h,  20h,  1fh                      ; compressed
     338                          db     37h,  20h,  1eh                      ; compressed
    343339
    344340g_szFloppyDrv:          ; db    "Floppy Drive %c",NULL
    345341                        ; db     46h,  6ch,  6fh,  70h,  70h,  79h,  20h,  44h,  72h,  69h,  76h,  65h,  20h,  25h,  63h,  00h    ; uncompressed
    346                           db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0ebh,  15h                            ; compressed
     342                          db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0ebh,  1ch                            ; compressed
    347343
    348344g_szBootMenuPrintEnd:
     
    365361;
    366362; Tables for StringsCompress.pl
     363;
     364; Items can be added and removed from this table as needed, with the following rules:
     365;  * Formats follow the special characters.  But other than that, order makes no difference.
     366;  * Some of the formats require "even" and "odd" numbering.  Even tells the code that
     367;    it is a "number-" format, otherwise it doesn't interpret a number first.  The easiest
     368;    way to maintain this is to move one of the "n/a" items to/from the front of the format
     369;    list to maintain the even/odd.
     370;  * Values do not need to remain consistent across versions.  This table is only used
     371;    internally to this file.
     372;  * There can only be 32 of these (0-31).
     373;  * Keeping the list short is good - this translates to a table in the compressed version.
     374;    An error will be reported if a character or format is no longer being used by any
     375;    strings above.
     376;  * Please keep items sequential for ease of further editing.
    367377;
    368378;$translate{ord(' ')} = 0;    [StringsCompress Processed]
     
    380390;$translate{ord('2')} = 12;    [StringsCompress Processed]
    381391;$translate{ord('3')} = 13;    [StringsCompress Processed]
    382 ;$translate{ord('4')} = 14; ; Not used at the moment    [StringsCompress Processed]
    383 ;$translate{ord('5')} = 15;    [StringsCompress Processed]
    384 ;$translate{ord('6')} = 16;    [StringsCompress Processed]
    385 ;$translate{ord('8')} = 17;    [StringsCompress Processed]
    386 ;$translate{200}      = 18;    # DOUBLE_BOTTOM_LEFT_CORNER    [StringsCompress Processed]
    387 ;$translate{181}      = 19;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL    [StringsCompress Processed]
    388 ;$translate{ord('0')} = 20;    [StringsCompress Processed]
     392;$translate{ord('5')} = 14;    [StringsCompress Processed]
     393;$translate{ord('6')} = 15;    [StringsCompress Processed]
     394;$translate{ord('8')} = 16;    [StringsCompress Processed]
     395;$translate{200}      = 17;    # DOUBLE_BOTTOM_LEFT_CORNER    [StringsCompress Processed]
     396;$translate{181}      = 18;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL    [StringsCompress Processed]
     397;$translate{ord('0')} = 19;    [StringsCompress Processed]
    389398;
    390399; Formats begin immediately after the last Translated character (they are in the same table)
    391400;
    392 ;$format_begin = 21;    [StringsCompress Processed]
    393 ;
    394 ;$format{"c"}   = 21;        # n/a    [StringsCompress Processed]
    395 ;$format{"2-I"} = 22;        # must be even    [StringsCompress Processed]
    396 ;$format{"u"}   = 23;        # must be odd    [StringsCompress Processed]
    397 ;$format{"5-u"} = 24;        # must be even    [StringsCompress Processed]
    398 ;$format{"x"}   = 25;        # must be odd    [StringsCompress Processed]
    399 ;$format{"5-x"} = 26;        # must be even    [StringsCompress Processed]
    400 ;$format{"nl"}  = 27;        # n/a    [StringsCompress Processed]
    401 ;$format{"2-u"} = 28;        # must be even    [StringsCompress Processed]
    402 ;$format{"A"}   = 29;        # n/a    [StringsCompress Processed]
    403 ;$format{"s"}   = 30;        # n/a, normal string from DS    [StringsCompress Processed]
    404 ;$format{"z"}   = 31;        # n/a, boot string from BDA    [StringsCompress Processed]
     401;$format_begin = 20;    [StringsCompress Processed]
     402;
     403;$format{"2-I"} = 20;        # must be even    [StringsCompress Processed]
     404;$format{"u"}   = 21;        # must be odd    [StringsCompress Processed]
     405;$format{"5-u"} = 22;        # must be even    [StringsCompress Processed]
     406;$format{"x"}   = 23;        # must be odd    [StringsCompress Processed]
     407;$format{"5-x"} = 24;        # must be even    [StringsCompress Processed]
     408;$format{"nl"}  = 25;        # n/a    [StringsCompress Processed]
     409;$format{"2-u"} = 26;        # must be even    [StringsCompress Processed]
     410;$format{"A"}   = 27;        # n/a    [StringsCompress Processed]
     411;$format{"c"}   = 28;        # n/a    [StringsCompress Processed]
     412;$format{"s"}   = 29;        # n/a, normal string from DS    [StringsCompress Processed]
     413;$format{"z"}   = 30;        # n/a, boot string from BDA    [StringsCompress Processed]
    405414;
    406415; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
     
    422431StringsCompressed_NormalBase     equ   58
    423432
    424 StringsCompressed_FormatsBegin   equ   21
     433StringsCompressed_FormatsBegin   equ   20
    425434
    426435StringsCompressed_TranslatesAndFormats:
     
    439448        db     50  ; 12
    440449        db     51  ; 13
    441         db     52  ; 14
    442         db     53  ; 15
    443         db     54  ; 16
    444         db     56  ; 17
    445         db     200  ; 18
    446         db     181  ; 19
    447         db     48  ; 20
    448         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c)    ; 21
    449         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I)    ; 22
    450         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u)    ; 23
    451         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u)    ; 24
    452         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x)    ; 25
    453         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x)    ; 26
    454         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl)    ; 27
    455         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u)    ; 28
    456         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A)    ; 29
    457         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s)    ; 30
    458         db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_z)    ; 31
     450        db     53  ; 14
     451        db     54  ; 15
     452        db     56  ; 16
     453        db     200  ; 17
     454        db     181  ; 18
     455        db     48  ; 19
     456        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I)    ; 20
     457        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u)    ; 21
     458        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u)    ; 22
     459        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x)    ; 23
     460        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x)    ; 24
     461        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl)    ; 25
     462        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u)    ; 26
     463        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A)    ; 27
     464        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c)    ; 28
     465        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s)    ; 29
     466        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_z)    ; 30
    459467
    460468%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     469%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_I || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I > 255
     470%error "DisplayFormatCompressed_Format_2_I is out of range of DisplayFormatCompressed_BaseFormatOffset"
     471%endif
     472%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u > 255
     473%error "DisplayFormatCompressed_Format_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
     474%endif
     475%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u > 255
     476%error "DisplayFormatCompressed_Format_5_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
     477%endif
     478%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x > 255
     479%error "DisplayFormatCompressed_Format_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
     480%endif
     481%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x > 255
     482%error "DisplayFormatCompressed_Format_5_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
     483%endif
     484%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_nl || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl > 255
     485%error "DisplayFormatCompressed_Format_nl is out of range of DisplayFormatCompressed_BaseFormatOffset"
     486%endif
     487%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u > 255
     488%error "DisplayFormatCompressed_Format_2_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
     489%endif
     490%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_A || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A > 255
     491%error "DisplayFormatCompressed_Format_A is out of range of DisplayFormatCompressed_BaseFormatOffset"
     492%endif
    461493%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_c || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c > 255
    462494%error "DisplayFormatCompressed_Format_c is out of range of DisplayFormatCompressed_BaseFormatOffset"
    463 %endif
    464 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_I || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I > 255
    465 %error "DisplayFormatCompressed_Format_2_I is out of range of DisplayFormatCompressed_BaseFormatOffset"
    466 %endif
    467 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u > 255
    468 %error "DisplayFormatCompressed_Format_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
    469 %endif
    470 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u > 255
    471 %error "DisplayFormatCompressed_Format_5_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
    472 %endif
    473 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x > 255
    474 %error "DisplayFormatCompressed_Format_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
    475 %endif
    476 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x > 255
    477 %error "DisplayFormatCompressed_Format_5_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
    478 %endif
    479 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_nl || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl > 255
    480 %error "DisplayFormatCompressed_Format_nl is out of range of DisplayFormatCompressed_BaseFormatOffset"
    481 %endif
    482 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u > 255
    483 %error "DisplayFormatCompressed_Format_2_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
    484 %endif
    485 %if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_A || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A > 255
    486 %error "DisplayFormatCompressed_Format_A is out of range of DisplayFormatCompressed_BaseFormatOffset"
    487495%endif
    488496%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_s || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s > 255
     
    507515;; 51:3
    508516;; 47:2
    509 ;; 52:1
    510517;; 172:2
    511518;; 34:3
     
    516523;; 171:2
    517524;; 54:1
    518 ;; total translated: 21
     525;; total translated: 20
    519526
    520527;; format usage stats
     
    527534;; nl:9
    528535;; 2-I:1
     536;; u:6
    529537;; c:9
    530 ;; u:6
    531538;; z:1
    532539;; total format: 11
Note: See TracChangeset for help on using the changeset viewer.