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

Last change on this file since 190 was 189, checked in by gregli@…, 13 years ago

Additional space optimizations, including making IdleProcessing an option in MENUEVENT. Note the fall-through from one file to another, but that there are assembler checks to ensure the proper linkage is maintained. First version of StringsCompress.pl, a perl script to make StringsCompressed.asm from Strings.asm.

File size: 17.7 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%if g_szLCHS <> g_szAddressingModes
140%error "g_szAddressingModes Displacement Incorrect 1"
141%endif
142%if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
143%error "g_szAddressingModes Displacement Incorrect 2"
144%endif
145%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
146%error "g_szAddressingModes Displacement Incorrect 3"
147%endif
148%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
149%error "g_szAddressingModes Displacement Incorrect 4"
150%endif
151
152g_szFddUnknown: ; db "%sUnknown",NULL
153 ; db 25h, 73h, 55h, 6eh, 6bh, 6eh, 6fh, 77h, 6eh, 00h ; uncompressed
154 db 34h, 5bh, 74h, 71h, 74h, 75h, 7dh, 0b4h ; compressed
155
156g_szFddSizeOr: ; db "%s5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
157 ; db 25h, 73h, 35h, 0ach, 22h, 20h, 6fh, 72h, 20h, 33h, 0abh, 22h, 20h, 44h, 44h, 00h ; uncompressed
158 db 34h, 2fh, 21h, 26h, 20h, 75h, 0f8h, 2dh, 22h, 26h, 20h, 4ah, 8ah ; compressed
159
160g_szFddSize: ; db "%s%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
161 ; db 25h, 73h, 25h, 73h, 22h, 2ch, 20h, 25h, 75h, 20h, 6bh, 69h, 42h, 00h ; uncompressed
162 db 34h, 34h, 26h, 27h, 20h, 37h, 20h, 71h, 6fh, 88h ; compressed
163
164
165g_szFddThreeHalf: ; db "3",ONE_HALF,NULL
166 ; db 33h, 0abh, 00h ; uncompressed
167 db 2dh, 02h ; compressed
168
169g_szFddFiveQuarter: ; db "5",ONE_QUARTER,NULL
170 ; db 35h, 0ach, 00h ; uncompressed
171 db 2fh, 01h ; compressed
172
173g_szFddThreeFive_Displacement equ (g_szFddFiveQuarter - g_szFddThreeHalf)
174
175g_szBusTypeValues:
176g_szBusTypeValues_8Dual: ; db "D8 ",NULL
177 ; db 44h, 38h, 20h, 00h ; uncompressed
178 db 4ah, 31h, 00h ; compressed
179
180g_szBusTypeValues_8Reversed: ; db "X8 ",NULL
181 ; db 58h, 38h, 20h, 00h ; uncompressed
182 db 5eh, 31h, 00h ; compressed
183
184g_szBusTypeValues_8Single: ; db "S8 ",NULL
185 ; db 53h, 38h, 20h, 00h ; uncompressed
186 db 59h, 31h, 00h ; compressed
187
188g_szBusTypeValues_16: ; db " 16",NULL
189 ; db 20h, 31h, 36h, 00h ; uncompressed
190 db 20h, 2bh, 10h ; compressed
191
192g_szBusTypeValues_32: ; db " 32",NULL
193 ; db 20h, 33h, 32h, 00h ; uncompressed
194 db 20h, 2dh, 0ch ; compressed
195
196g_szBusTypeValues_Serial: ; db "SER",NULL
197 ; db 53h, 45h, 52h, 00h ; uncompressed
198 db 59h, 4bh, 98h ; compressed
199
200g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
201;
202; Ensure that bus type strings are correctly spaced in memory
203;
204%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
205%error "g_szBusTypeValues Displacement Incorrect 1"
206%endif
207%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
208%error "g_szBusTypeValues Displacement Incorrect 2"
209%endif
210%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
211%error "g_szBusTypeValues Displacement Incorrect 3"
212%endif
213%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
214%error "g_szBusTypeValues Displacement Incorrect 4"
215%endif
216%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
217%error "g_szBusTypeValues Displacement Incorrect 5"
218%endif
219%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
220%error "g_szBusTypeValues Displacement Incorrect 6"
221%endif
222
223g_szSelectionTimeout: ; db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
224 ; 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
225 db 32h, 33h, 3dh, 59h, 6bh, 72h, 6bh, 69h, 7ah, 6fh, 75h, 0f4h, 6fh, 0f4h, 3ch, 20h, 0b9h ; compressed
226
227
228g_szDashForZero: ; db "- ",NULL
229 ; db 2dh, 20h, 00h ; uncompressed
230 db 28h, 00h ; compressed
231
232;;; end of strings.asm
233
234StringsCompressed_NormalBase equ 58
235
236StringsCompressed_FormatsBegin equ 20
237
238StringsCompressed_TranslatesAndFormats:
239 db 32 ; 0
240 db 172 ; 1
241 db 171 ; 2
242 db 179 ; 3
243 db 175 ; 4
244 db 33 ; 5
245 db 34 ; 6
246 db 44 ; 7
247 db 45 ; 8
248 db 46 ; 9
249 db 47 ; 10
250 db 49 ; 11
251 db 50 ; 12
252 db 51 ; 13
253 db 52 ; 14
254 db 53 ; 15
255 db 54 ; 16
256 db 56 ; 17
257 db 200 ; 18
258 db 181 ; 19
259 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s) ; 20
260 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c) ; 21
261 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I) ; 22
262 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u) ; 23
263 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u) ; 24
264 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x) ; 25
265 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x) ; 26
266 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl) ; 27
267 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u) ; 28
268 db (DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A) ; 29
269
270%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_s || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_s > 255
271%error "DisplayFormatCompressed_Format_s is out of range of DisplayFormatCompressed_BaseFormatOffset"
272%endif
273%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_c || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_c > 255
274%error "DisplayFormatCompressed_Format_c is out of range of DisplayFormatCompressed_BaseFormatOffset"
275%endif
276%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_I || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_I > 255
277%error "DisplayFormatCompressed_Format_2_I is out of range of DisplayFormatCompressed_BaseFormatOffset"
278%endif
279%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_u > 255
280%error "DisplayFormatCompressed_Format_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
281%endif
282%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_u > 255
283%error "DisplayFormatCompressed_Format_5_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
284%endif
285%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_x > 255
286%error "DisplayFormatCompressed_Format_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
287%endif
288%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_5_x || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_5_x > 255
289%error "DisplayFormatCompressed_Format_5_x is out of range of DisplayFormatCompressed_BaseFormatOffset"
290%endif
291%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_nl || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_nl > 255
292%error "DisplayFormatCompressed_Format_nl is out of range of DisplayFormatCompressed_BaseFormatOffset"
293%endif
294%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_2_u || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_2_u > 255
295%error "DisplayFormatCompressed_Format_2_u is out of range of DisplayFormatCompressed_BaseFormatOffset"
296%endif
297%if DisplayFormatCompressed_BaseFormatOffset < DisplayFormatCompressed_Format_A || DisplayFormatCompressed_BaseFormatOffset - DisplayFormatCompressed_Format_A > 255
298%error "DisplayFormatCompressed_Format_A is out of range of DisplayFormatCompressed_BaseFormatOffset"
299%endif
300
301;; translated usage stats
302;; total translated:
303
304;; format usage stats
305;; A:4
306;; c:6
307;; s:14
308;; 2-u:1
309;; u:5
310;; 5-u:3
311;; 2-I:1
312;; x:6
313;; 5-x:1
314;; nl:6
315;; total format: 10
316
317;; alphabet usage stats
318;; 58,::3
319;; 59,;:
320;; 60,<:
321;; 61,=:
322;; 62,>:
323;; 63,?:
324;; 64,@:1
325;; 65,A:3
326;; 66,B:11
327;; 67,C:3
328;; 68,D:10
329;; 69,E:3
330;; 70,F:3
331;; 71,G:
332;; 72,H:4
333;; 73,I:2
334;; 74,J:
335;; 75,K:
336;; 76,L:3
337;; 77,M:2
338;; 78,N:
339;; 79,O:1
340;; 80,P:2
341;; 81,Q:1
342;; 82,R:4
343;; 83,S:7
344;; 84,T:
345;; 85,U:1
346;; 86,V:
347;; 87,W:
348;; 88,X:1
349;; 89,Y:
350;; 90,Z:
351;; 91,[:
352;; 92,\:
353;; 93,]:
354;; 94,^:
355;; 95,_:
356;; 96,`:
357;; 97,a:7
358;; 98,b:
359;; 99,c:4
360;; 100,d:4
361;; 101,e:10
362;; 102,f:2
363;; 103,g:2
364;; 104,h:
365;; 105,i:12
366;; 106,j:
367;; 107,k:4
368;; 108,l:5
369;; 109,m:1
370;; 110,n:9
371;; 111,o:18
372;; 112,p:3
373;; 113,q:
374;; 114,r:13
375;; 115,s:6
376;; 116,t:11
377;; 117,u:2
378;; 118,v:2
379;; 119,w:1
380;; 120,x:
381;; 121,y:2
382;; alphabet used count: 39
Note: See TracBrowser for help on using the repository browser.