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


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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).
Note: See TracChangeset for help on using the changeset viewer.