source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm @ 194

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

ifdef'd out more unused code. Also added a tool for looking through the listing and the output of the precompiler to aid in finding dead code. Some changes in the files are to add annotations for the tool to avoid false positives.

File size: 17.9 KB
Line 
1;;;======================================================================
2;;;
3;;; This file is generated by StringsCompress.pl from source in Strings.asm
4;;; DO NOT EDIT DIRECTLY - See the maekfile for how to rebuild this file.
5;;; This file only needs to be rebuilt if Strings.asm is changed.
6;;;
7;;;======================================================================
8
9; Project name  :   XTIDE Universal BIOS
10; Description   :   Strings and equates for BIOS messages.
11
12%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
13%include "Display.inc"
14%endif
15
16; Section containing code
17SECTION .text
18
19; POST drive detection strings
20g_szRomAt:      ; db    "%s @ %x",LF,CR,NULL
21                ; db     25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
22                  db     34h,  20h, 0c6h,  39h,  1bh                                  ; compressed
23
24g_szMaster:     ; db    "Master",NULL
25                ; db     4dh,  61h,  73h,  74h,  65h,  72h,  00h    ; uncompressed
26                  db     53h,  67h,  79h,  7ah,  6bh, 0b8h          ; compressed
27
28g_szSlave:      ; db    "Slave ",NULL
29                ; db     53h,  6ch,  61h,  76h,  65h,  20h,  00h    ; uncompressed
30                  db     59h,  72h,  67h,  7ch,  6bh,  00h          ; compressed
31
32g_szDetect:     ; db    "IDE %s at %x: ",NULL           ; IDE Master at 1F0h:
33                ; db     49h,  44h,  45h,  20h,  25h,  73h,  20h,  61h,  74h,  20h,  25h,  78h,  3ah,  20h,  00h    ; uncompressed
34                  db     4fh,  4ah, 0cbh,  34h,  20h,  67h, 0fah,  39h,  40h,  00h                                  ; compressed
35
36g_szSerial:     ; db    "Serial Port %s: ",NULL
37                ; db     53h,  65h,  72h,  69h,  61h,  6ch,  20h,  50h,  6fh,  72h,  74h,  20h,  25h,  73h,  3ah,  20h,  00h    ; uncompressed
38                  db     59h,  6bh,  78h,  6fh,  67h, 0f2h,  56h,  75h,  78h, 0fah,  34h,  40h,  00h                            ; compressed
39
40
41; Boot loader strings
42g_szTryToBoot:          ; db    "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
43                        ; db     42h,  6fh,  6fh,  74h,  69h,  6eh,  67h,  20h,  66h,  72h,  6fh,  6dh,  20h,  25h,  73h,  20h,  25h,  78h, 0afh,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
44                          db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  6ch,  78h,  75h, 0f3h,  34h,  20h,  39h,  24h,  39h,  1bh                                              ; compressed
45
46g_szBootSectorNotFound: ; db    "Boot sector "
47                        ; db     42h,  6fh,  6fh,  74h,  20h,  73h,  65h,  63h,  74h,  6fh,  72h,  20h    ; uncompressed
48                          db     48h,  75h,  75h, 0fah,  79h,  6bh,  69h,  7ah,  75h, 0f8h                ; compressed
49
50g_szNotFound:           ; db    "not found",LF,CR,NULL
51                        ; db     6eh,  6fh,  74h,  20h,  66h,  6fh,  75h,  6eh,  64h,  0ah,  0dh,  00h    ; uncompressed
52                          db     74h,  75h, 0fah,  6ch,  75h,  7bh,  74h,  6ah,  1bh                      ; compressed
53
54g_szReadError:          ; db    "Error %x!",LF,CR,NULL
55                        ; db     45h,  72h,  72h,  6fh,  72h,  20h,  25h,  78h,  21h,  0ah,  0dh,  00h    ; uncompressed
56                          db     4bh,  78h,  78h,  75h, 0f8h,  39h,  25h,  1bh                            ; compressed
57
58
59; Boot menu bottom of screen strings
60g_szFDD:        ; db    "FDD     ",NULL
61                ; db     46h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
62                  db     4ch,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
63
64g_szHDD:        ; db    "HDD     ",NULL
65                ; db     48h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
66                  db     4eh,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
67
68g_szRomBoot:    ; db    "ROM Boot",NULL
69                ; db     52h,  4fh,  4dh,  20h,  42h,  6fh,  6fh,  74h,  00h    ; uncompressed
70                  db     58h,  55h, 0d3h,  48h,  75h,  75h, 0bah                ; compressed
71
72g_szHotkey:     ; db    "%A%c%c%A%s%A ",NULL
73                ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
74                  db     3dh,  35h,  35h,  3dh,  34h,  3dh,  00h                                              ; compressed
75
76
77
78; Boot Menu menuitem strings
79g_szDriveNum:   ; db    "%x ",NULL
80                ; db     25h,  78h,  20h,  00h    ; uncompressed
81                  db     39h,  00h                ; compressed
82
83g_szFDLetter:   ; db    "%s %c",NULL
84                ; db     25h,  73h,  20h,  25h,  63h,  00h    ; uncompressed
85                  db     34h,  20h,  15h                      ; compressed
86
87g_szFloppyDrv:  ; db    "Floppy Drive",NULL
88                ; db     46h,  6ch,  6fh,  70h,  70h,  79h,  20h,  44h,  72h,  69h,  76h,  65h,  00h    ; uncompressed
89                  db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0abh                ; compressed
90
91g_szforeignHD:  ; db    "Foreign Hard Disk",NULL
92                ; db     46h,  6fh,  72h,  65h,  69h,  67h,  6eh,  20h,  48h,  61h,  72h,  64h,  20h,  44h,  69h,  73h,  6bh,  00h    ; uncompressed
93                  db     4ch,  75h,  78h,  6bh,  6fh,  6dh, 0f4h,  4eh,  67h,  78h, 0eah,  4ah,  6fh,  79h, 0b1h                      ; compressed
94
95
96; Boot Menu information strings
97g_szCapacity:   ; db    "Capacity : ",NULL
98                ; db     43h,  61h,  70h,  61h,  63h,  69h,  74h,  79h,  20h,  3ah,  20h,  00h    ; uncompressed
99                  db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh,  40h,  00h                ; compressed
100
101g_szSizeSingle: ; db    "%s%u.%u %ciB",NULL
102                ; db     25h,  73h,  25h,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  00h    ; uncompressed
103                  db     34h,  37h,  29h,  37h,  20h,  35h,  6fh,  88h                                  ; compressed
104
105g_szSizeDual:   ; db    "%s%5-u.%u %ciB /%5-u.%u %ciB",LF,CR,NULL
106                ; db     25h,  73h,  25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  20h,  2fh,  25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  0ah,  0dh,  00h    ; uncompressed
107                  db     34h,  38h,  29h,  37h,  20h,  35h,  6fh, 0c8h,  2ah,  38h,  29h,  37h,  20h,  35h,  6fh,  48h,  1bh                                                                                        ; compressed
108
109g_szCfgHeader:  ; db    "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",  SINGLE_VERTICAL,"IRQ",  SINGLE_VERTICAL,"Reset",LF,CR,NULL
110                ; db     41h,  64h,  64h,  72h,  2eh, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh,  00h    ; uncompressed
111                  db     47h,  6ah,  6ah,  78h,  29h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  1bh                ; compressed
112
113g_szCfgFormat:  ; db    "%s"   ,SINGLE_VERTICAL,"%5-u", SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",  NULL
114                ; db     25h,  73h, 0b3h,  25h,  35h,  2dh,  75h, 0b3h,  25h,  73h, 0b3h,  20h,  25h,  32h,  2dh,  49h, 0b3h,  25h,  35h,  2dh,  78h,  00h    ; uncompressed
115                  db     34h,  23h,  38h,  23h,  34h,  23h,  20h,  36h,  23h,  1ah                                                                            ; compressed
116
117
118g_szAddressingModes:                   
119g_szLCHS:       ; db    "L-CHS",NULL
120                ; db     4ch,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
121                  db     52h,  28h,  49h,  4eh,  99h          ; compressed
122
123g_szPCHS:       ; db    "P-CHS",NULL
124                ; db     50h,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
125                  db     56h,  28h,  49h,  4eh,  99h          ; compressed
126
127g_szLBA28:      ; db    "LBA28",NULL
128                ; db     4ch,  42h,  41h,  32h,  38h,  00h    ; uncompressed
129                  db     52h,  48h,  47h,  2ch,  11h          ; compressed
130
131g_szLBA48:      ; db    "LBA48",NULL
132                ; db     4ch,  42h,  41h,  34h,  38h,  00h    ; uncompressed
133                  db     52h,  48h,  47h,  2eh,  11h          ; compressed
134
135g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
136;
137; Ensure that addressing modes are correctly spaced in memory
138;
139%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
140%if g_szLCHS <> g_szAddressingModes
141%error "g_szAddressingModes Displacement Incorrect 1"
142%endif
143%if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
144%error "g_szAddressingModes Displacement Incorrect 2"
145%endif
146%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement       
147%error "g_szAddressingModes Displacement Incorrect 3"
148%endif
149%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement       
150%error "g_szAddressingModes Displacement Incorrect 4"
151%endif
152%endif     
153
154g_szFddUnknown: ; db    "%sUnknown",NULL
155                ; db     25h,  73h,  55h,  6eh,  6bh,  6eh,  6fh,  77h,  6eh,  00h    ; uncompressed
156                  db     34h,  5bh,  74h,  71h,  74h,  75h,  7dh, 0b4h                ; compressed
157
158g_szFddSizeOr:  ; db    "%s5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
159                ; db     25h,  73h,  35h, 0ach,  22h,  20h,  6fh,  72h,  20h,  33h, 0abh,  22h,  20h,  44h,  44h,  00h    ; uncompressed
160                  db     34h,  2fh,  21h,  26h,  20h,  75h, 0f8h,  2dh,  22h,  26h,  20h,  4ah,  8ah                      ; compressed
161
162g_szFddSize:    ; db    "%s%s",QUOTATION_MARK,", %u kiB",NULL   ; 3½", 1440 kiB
163                ; db     25h,  73h,  25h,  73h,  22h,  2ch,  20h,  25h,  75h,  20h,  6bh,  69h,  42h,  00h    ; uncompressed
164                  db     34h,  34h,  26h,  27h,  20h,  37h,  20h,  71h,  6fh,  88h                            ; compressed
165
166
167g_szFddThreeHalf:       ; db  "3",ONE_HALF,NULL
168                        ; db   33h, 0abh,  00h    ; uncompressed
169                          db   2dh,  02h          ; compressed
170
171g_szFddFiveQuarter:     ; db  "5",ONE_QUARTER,NULL     
172                        ; db   35h, 0ach,  00h    ; uncompressed
173                          db   2fh,  01h          ; compressed
174
175g_szFddThreeFive_Displacement equ (g_szFddFiveQuarter - g_szFddThreeHalf)
176
177g_szBusTypeValues:     
178g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
179                                ; db         44h,  38h,  20h,  00h    ; uncompressed
180                                  db         4ah,  31h,  00h          ; compressed
181
182g_szBusTypeValues_8Reversed:    ; db        "X8 ",NULL
183                                ; db         58h,  38h,  20h,  00h    ; uncompressed
184                                  db         5eh,  31h,  00h          ; compressed
185
186g_szBusTypeValues_8Single:      ; db        "S8 ",NULL
187                                ; db         53h,  38h,  20h,  00h    ; uncompressed
188                                  db         59h,  31h,  00h          ; compressed
189
190g_szBusTypeValues_16:           ; db        " 16",NULL
191                                ; db         20h,  31h,  36h,  00h    ; uncompressed
192                                  db         20h,  2bh,  10h          ; compressed
193
194g_szBusTypeValues_32:           ; db        " 32",NULL
195                                ; db         20h,  33h,  32h,  00h    ; uncompressed
196                                  db         20h,  2dh,  0ch          ; compressed
197
198g_szBusTypeValues_Serial:       ; db        "SER",NULL
199                                ; db         53h,  45h,  52h,  00h    ; uncompressed
200                                  db         59h,  4bh,  98h          ; compressed
201
202g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
203;
204; Ensure that bus type strings are correctly spaced in memory
205;
206%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
207%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
208%error "g_szBusTypeValues Displacement Incorrect 1"
209%endif
210%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
211%error "g_szBusTypeValues Displacement Incorrect 2"     
212%endif
213%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
214%error "g_szBusTypeValues Displacement Incorrect 3"             
215%endif
216%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement     
217%error "g_szBusTypeValues Displacement Incorrect 4"             
218%endif
219%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
220%error "g_szBusTypeValues Displacement Incorrect 5"             
221%endif
222%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
223%error "g_szBusTypeValues Displacement Incorrect 6"             
224%endif
225%endif
226
227g_szSelectionTimeout:   ; db        DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
228                        ; 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
229                          db         32h,  33h,  3dh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ch,  20h, 0b9h                                              ; compressed
230
231
232g_szDashForZero:        ; db        "- ",NULL
233                        ; db         2dh,  20h,  00h    ; uncompressed
234                          db         28h,  00h          ; compressed
235
236;;; end of strings.asm
237
238StringsCompressed_NormalBase     equ   58
239
240StringsCompressed_FormatsBegin   equ   20
241
242StringsCompressed_TranslatesAndFormats: 
243        db     32  ; 0
244        db     172  ; 1
245        db     171  ; 2
246        db     179  ; 3
247        db     175  ; 4
248        db     33  ; 5
249        db     34  ; 6
250        db     44  ; 7
251        db     45  ; 8
252        db     46  ; 9
253        db     47  ; 10
254        db     49  ; 11
255        db     50  ; 12
256        db     51  ; 13
257        db     52  ; 14
258        db     53  ; 15
259        db     54  ; 16
260        db     56  ; 17
261        db     200  ; 18
262        db     181  ; 19
263        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s)    ; 20
264        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c)    ; 21
265        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I)    ; 22
266        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u)    ; 23
267        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u)    ; 24
268        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x)    ; 25
269        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x)    ; 26
270        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl)    ; 27
271        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u)    ; 28
272        db     (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A)    ; 29
273
274%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
275%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_s || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s > 255
276%error "DisplayFormatCompressed_Format_s is out of range of DisplayFormatCompressed_BaseFormatOffset"
277%endif
278%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_c || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c > 255
279%error "DisplayFormatCompressed_Format_c is out of range of DisplayFormatCompressed_BaseFormatOffset"
280%endif
281%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_I || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I > 255
282%error "DisplayFormatCompressed_Format_2_I is out of range of DisplayFormatCompressed_BaseFormatOffset"
283%endif
284%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u > 255
285%error "DisplayFormatCompressed_Format_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
286%endif
287%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u > 255
288%error "DisplayFormatCompressed_Format_5_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
289%endif
290%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x > 255
291%error "DisplayFormatCompressed_Format_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
292%endif
293%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x > 255
294%error "DisplayFormatCompressed_Format_5_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
295%endif
296%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_nl || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl > 255
297%error "DisplayFormatCompressed_Format_nl is out of range of DisplayFormatCompressed_BaseFormatOffset"
298%endif
299%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u > 255
300%error "DisplayFormatCompressed_Format_2_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
301%endif
302%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_A || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A > 255
303%error "DisplayFormatCompressed_Format_A is out of range of DisplayFormatCompressed_BaseFormatOffset"
304%endif
305%endif
306
307;; translated usage stats
308;; total translated: 
309
310;; format usage stats
311;; A:4
312;; 2-u:1
313;; 5-u:3
314;; x:6
315;; 5-x:1
316;; s:14
317;; nl:6
318;; 2-I:1
319;; c:6
320;; u:5
321;; total format: 10
322
323;; alphabet usage stats
324;; 58,::3
325;; 59,;:
326;; 60,<:
327;; 61,=:
328;; 62,>:
329;; 63,?:
330;; 64,@:1
331;; 65,A:3
332;; 66,B:11
333;; 67,C:3
334;; 68,D:10
335;; 69,E:3
336;; 70,F:3
337;; 71,G:
338;; 72,H:4
339;; 73,I:2
340;; 74,J:
341;; 75,K:
342;; 76,L:3
343;; 77,M:2
344;; 78,N:
345;; 79,O:1
346;; 80,P:2
347;; 81,Q:1
348;; 82,R:4
349;; 83,S:7
350;; 84,T:
351;; 85,U:1
352;; 86,V:
353;; 87,W:
354;; 88,X:1
355;; 89,Y:
356;; 90,Z:
357;; 91,[:
358;; 92,\:
359;; 93,]:
360;; 94,^:
361;; 95,_:
362;; 96,`:
363;; 97,a:7
364;; 98,b:
365;; 99,c:4
366;; 100,d:4
367;; 101,e:10
368;; 102,f:2
369;; 103,g:2
370;; 104,h:
371;; 105,i:12
372;; 106,j:
373;; 107,k:4
374;; 108,l:5
375;; 109,m:1
376;; 110,n:9
377;; 111,o:18
378;; 112,p:3
379;; 113,q:
380;; 114,r:13
381;; 115,s:6
382;; 116,t:11
383;; 117,u:2
384;; 118,v:2
385;; 119,w:1
386;; 120,x:
387;; 121,y:2
388;; alphabet used count: 39
Note: See TracBrowser for help on using the repository browser.