source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Strings.asm @ 197

Last change on this file since 197 was 197, checked in by gregli@…, 12 years ago

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 size: 6.0 KB
Line 
1; Project name  :   XTIDE Universal BIOS
2; Description   :   Strings and equates for BIOS messages.
3
4%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
5%include "Display.inc"
6%endif
7
8; Section containing code
9SECTION .text
10
11; POST drive detection strings
12g_szRomAt:      db  "%s @ %x",LF,CR,NULL
13
14g_szMaster:             db  "IDE Master at ",NULL 
15g_szSlave:              db  "IDE Slave  at ",NULL
16g_szDetect:             db  "%s%x: ",NULL                      ; IDE Master at 1F0h:
17g_szDetectCOM:          db  "%sCOM%c/%u%c: ",NULL              ; IDE Master at COM1/115K:       
18g_szDetectCOMAuto:      db  "%sCOM Detect: ",NULL              ; IDE Master at COM Detect:
19               
20; Boot loader strings
21g_szTryToBoot:          db  "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
22g_szBootSectorNotFound: db  "Boot sector "
23g_szNotFound:           db  "not found",LF,CR,NULL
24g_szReadError:          db  "Error %x!",LF,CR,NULL
25
26; Boot menu bottom of screen strings
27g_szFDD:        db  "FDD     ",NULL
28g_szHDD:        db  "HDD     ",NULL
29g_szRomBoot:    db  "ROM Boot",NULL
30g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
31
32
33; Boot Menu menuitem strings
34g_szDriveNum:   db  "%x ",NULL
35g_szFDLetter:   db  "%s %c",NULL
36g_szFloppyDrv:  db  "Floppy Drive",NULL
37g_szforeignHD:  db  "Foreign Hard Disk",NULL
38
39; Boot Menu information strings
40g_szCapacity:   db  "Capacity : ",NULL
41g_szSizeSingle: db  "%s%u.%u %ciB",NULL
42g_szSizeDual:   db  "%s%5-u.%u %ciB /%5-u.%u %ciB",LF,CR,NULL
43g_szCfgHeader:  db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",  SINGLE_VERTICAL,"IRQ",  SINGLE_VERTICAL,"Reset",LF,CR,NULL
44g_szCfgFormat:  db  "%s"   ,SINGLE_VERTICAL,"%5-u", SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",  NULL
45       
46g_szAddressingModes:                   
47g_szLCHS:       db  "L-CHS",NULL
48g_szPCHS:       db  "P-CHS",NULL
49g_szLBA28:      db  "LBA28",NULL
50g_szLBA48:      db  "LBA48",NULL
51g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
52;
53; Ensure that addressing modes are correctly spaced in memory
54;
55%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
56%if g_szLCHS <> g_szAddressingModes
57%error "g_szAddressingModes Displacement Incorrect 1"
58%endif
59%if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
60%error "g_szAddressingModes Displacement Incorrect 2"
61%endif
62%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement       
63%error "g_szAddressingModes Displacement Incorrect 3"
64%endif
65%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement       
66%error "g_szAddressingModes Displacement Incorrect 4"
67%endif
68%endif     
69       
70g_szFddUnknown: db  "%sUnknown",NULL
71g_szFddSizeOr:  db  "%s5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
72g_szFddSize:    db  "%s%s",QUOTATION_MARK,", %u kiB",NULL   ; 3½", 1440 kiB
73
74g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
75g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL       
76g_szFddThreeFive_Displacement equ (g_szFddFiveQuarter - g_szFddThreeHalf)
77
78g_szBusTypeValues:     
79g_szBusTypeValues_8Dual:        db      "D8 ",NULL
80g_szBusTypeValues_8Reversed:    db      "X8 ",NULL
81g_szBusTypeValues_8Single:      db      "S8 ",NULL
82g_szBusTypeValues_16:           db      " 16",NULL
83g_szBusTypeValues_32:           db      " 32",NULL
84g_szBusTypeValues_Serial:       db      "SER",NULL
85g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
86;
87; Ensure that bus type strings are correctly spaced in memory
88;
89%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
90%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
91%error "g_szBusTypeValues Displacement Incorrect 1"
92%endif
93%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
94%error "g_szBusTypeValues Displacement Incorrect 2"     
95%endif
96%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
97%error "g_szBusTypeValues Displacement Incorrect 3"             
98%endif
99%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement     
100%error "g_szBusTypeValues Displacement Incorrect 4"             
101%endif
102%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
103%error "g_szBusTypeValues Displacement Incorrect 5"             
104%endif
105%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
106%error "g_szBusTypeValues Displacement Incorrect 6"             
107%endif
108%endif
109       
110g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
111
112g_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 TracBrowser for help on using the repository browser.