Changeset 197 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.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/StringsCompressed.asm

    r196 r197  
    239239                          db         28h,  00h          ; compressed
    240240
    241 ;;; end of strings.asm
     241
     242
     243;------------------------------------------------------------------------------------------
     244;
     245; Tables for StringsCompress.pl
     246;
     247;$translate{ord(' ')} = 0;    [StringsCompress Processed]
     248;$translate{172}      = 1;     # ONE_QUARTER    [StringsCompress Processed]
     249;$translate{171}      = 2;     # ONE_HALF    [StringsCompress Processed]
     250;$translate{179}      = 3;     # SINGLE_VERTICAL    [StringsCompress Processed]
     251;$translate{175}      = 4;     # ANGLE_QUOTE_RIGHT    [StringsCompress Processed]
     252;$translate{ord('!')} = 5;    [StringsCompress Processed]
     253;$translate{ord('"')} = 6;    [StringsCompress Processed]
     254;$translate{ord(',')} = 7;    [StringsCompress Processed]
     255;$translate{ord('-')} = 8;    [StringsCompress Processed]
     256;$translate{ord('.')} = 9;    [StringsCompress Processed]
     257;$translate{ord('/')} = 10;    [StringsCompress Processed]
     258;$translate{ord('1')} = 11;        [StringsCompress Processed]
     259;$translate{ord('2')} = 12;    [StringsCompress Processed]
     260;$translate{ord('3')} = 13;    [StringsCompress Processed]
     261;$translate{ord('4')} = 14;    [StringsCompress Processed]
     262;$translate{ord('5')} = 15;    [StringsCompress Processed]
     263;$translate{ord('6')} = 16;    [StringsCompress Processed]
     264;$translate{ord('8')} = 17;    [StringsCompress Processed]
     265;$translate{200}      = 18;    # DOUBLE_BOTTOM_LEFT_CORNER    [StringsCompress Processed]
     266;$translate{181}      = 19;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL    [StringsCompress Processed]
     267;
     268; Formats begin immediately after the last Translated character (they are in the same table)
     269;
     270;$format_begin = 20;    [StringsCompress Processed]
     271;
     272;$format{"s"}   = 20;        # n/a    [StringsCompress Processed]
     273;$format{"c"}   = 21;        # n/a    [StringsCompress Processed]
     274;$format{"2-I"} = 22;        # must be even    [StringsCompress Processed]
     275;$format{"u"}   = 23;        # must be odd    [StringsCompress Processed]
     276;$format{"5-u"} = 24;        # must be even    [StringsCompress Processed]
     277;$format{"x"}   = 25;        # must be odd    [StringsCompress Processed]
     278;$format{"5-x"} = 26;        # must be even    [StringsCompress Processed]
     279;$format{"nl"}  = 27;        # n/a    [StringsCompress Processed]
     280;$format{"2-u"} = 28;        # must be even    [StringsCompress Processed]
     281;$format{"A"}   = 29;        # n/a    [StringsCompress Processed]
     282;
     283; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
     284;
     285; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
     286; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
     287; front end.
     288;
     289;$normal_base = 0x3a;    [StringsCompress Processed]
     290;
     291; End of StringsCompress.pl information
     292;
     293;------------------------------------------------------------------------------------------
     294
     295
     296
     297;;; end of input stream
    242298
    243299StringsCompressed_NormalBase     equ   58
     
    315371;; format usage stats
    316372;; A:4
    317 ;; c:8
    318 ;; s:15
    319373;; 2-u:1
    320 ;; u:6
    321374;; 5-u:3
    322 ;; 2-I:1
    323375;; x:6
    324376;; 5-x:1
     377;; s:15
    325378;; nl:6
     379;; 2-I:1
     380;; c:8
     381;; u:6
    326382;; total format: 10
    327383
Note: See TracChangeset for help on using the changeset viewer.