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


Ignore:
Timestamp:
Nov 20, 2011, 1:24:41 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Some maintenance; no changes to the actual source. Moved the compression tables out of the compression script and into the source file, making the compression script source agnostic. And thus moved the compression script to the Tools directory.

File:
1 edited

Legend:

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

    r196 r197  
    111111
    112112g_szDashForZero:        db      "- ",NULL
     113
     114
     115;------------------------------------------------------------------------------------------
     116;
     117; Tables for StringsCompress.pl
     118;
     119;$translate{ord(' ')} = 0;
     120;$translate{172}      = 1;     # ONE_QUARTER
     121;$translate{171}      = 2;     # ONE_HALF
     122;$translate{179}      = 3;     # SINGLE_VERTICAL
     123;$translate{175}      = 4;     # ANGLE_QUOTE_RIGHT
     124;$translate{ord('!')} = 5;
     125;$translate{ord('"')} = 6;
     126;$translate{ord(',')} = 7;
     127;$translate{ord('-')} = 8;
     128;$translate{ord('.')} = 9;
     129;$translate{ord('/')} = 10;
     130;$translate{ord('1')} = 11;   
     131;$translate{ord('2')} = 12;
     132;$translate{ord('3')} = 13;
     133;$translate{ord('4')} = 14;
     134;$translate{ord('5')} = 15;
     135;$translate{ord('6')} = 16;
     136;$translate{ord('8')} = 17;
     137;$translate{200}      = 18;    # DOUBLE_BOTTOM_LEFT_CORNER
     138;$translate{181}      = 19;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
     139;
     140; Formats begin immediately after the last Translated character (they are in the same table)
     141;
     142;$format_begin = 20;
     143;
     144;$format{"s"}   = 20;        # n/a
     145;$format{"c"}   = 21;        # n/a
     146;$format{"2-I"} = 22;        # must be even
     147;$format{"u"}   = 23;        # must be odd
     148;$format{"5-u"} = 24;        # must be even
     149;$format{"x"}   = 25;        # must be odd
     150;$format{"5-x"} = 26;        # must be even
     151;$format{"nl"}  = 27;        # n/a
     152;$format{"2-u"} = 28;        # must be even
     153;$format{"A"}   = 29;        # n/a
     154;
     155; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
     156;
     157; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
     158; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
     159; front end.
     160;
     161;$normal_base = 0x3a;
     162;
     163; End of StringsCompress.pl information
     164;
     165;------------------------------------------------------------------------------------------
     166
     167
     168
     169
Note: See TracChangeset for help on using the changeset viewer.