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

Last change on this file since 601 was 601, checked in by krille_n_, 5 years ago

Changes:

  • Building the BIOS now works again.
  • Added a new IDE device type/transfer mode for use only with XT-IDE rev 2+ (or Chuck(G)-modded rev 1) cards installed in any of the following machines: Olivetti M24, AT&T PC6300, Xerox 6060 and Logabax Persona 1600. This new transfer mode is slightly faster than the regular XT-IDE rev 1 device type and requires that the card is configured for High Speed mode (or, in case of the card being a rev 1 card, has the Chuck(G) mod done). The new device type is called "XTIDE rev 2 (Olivetti M24)" in XTIDECFG.
  • Made some minor improvements to the library code that handles 'Drive Not Ready' errors in XTIDECFG.
  • Optimizations.
File size: 13.5 KB
Line 
1; Project name  :   XTIDE Universal BIOS
2; Description   :   Strings and equates for BIOS messages.
3
4;
5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
12;
13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16; GNU General Public License for more details.
17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18;
19
20%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
21    %include "Display.inc"
22%endif
23
24; Section containing code
25SECTION .text
26
27; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
28; To support an optimization in that code, these strings must start on the same 256 byte page,
29; which is checked at assembly time below.
30;
31g_szDetectStart:
32g_szDetectMaster:       db  "Master",NULL
33g_szDetectSlave:        db  "Slave ",NULL
34g_szDetectOuter:        db  "%s at %s: ",NULL
35%ifdef MODULE_SERIAL
36g_szDetectCOM:          db  "COM%c%s",NULL
37g_szDetectCOMAuto:      db  " Detect",NULL
38g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
39g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
40%endif
41g_szDetectEnd:
42g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
43
44%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
45    %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
46        %error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP.  Please move this block up or down within Strings.asm"
47    %endif
48%endif
49
50
51; POST drive detection strings
52g_szDashForZero:    db  "- ",NULL   ; Required by Display Library
53g_szRomAt:          db  LF,CR
54                    db  "%s @ %x",LF,CR                     ; -=XTIDE ... =- @ Segment
55                    db  "%s",LF,CR                          ; version string
56                    db  "Released under GNU GPL v2",LF,CR
57                    db  LF,CR,NULL
58%ifdef MODULE_BOOT_MENU
59g_szBootMenuTitle:  db  "%s%c",LF,CR                        ; -=XTIDE ... =- and null (eaten)
60                    db  "%s",NULL                           ; version string
61%endif
62g_szDriveName:      db  "%z",LF,CR,NULL
63
64
65; Boot loader strings
66g_szTryToBoot:          db  "Booting %c",ANGLE_QUOTE_RIGHT,"%c",LF,CR,NULL
67g_szBootSectorNotFound: db  "Boot sector "          ; String fall through...
68g_szNotFound:           db  "not found",LF,CR,NULL
69g_szReadError:          db  "Error %x!",LF,CR,NULL
70
71
72%ifdef MODULE_HOTKEYS
73; Hotkey Bar strings
74g_szFDD:                db  "FDD [%c]",NULL         ; "FDD [A]"
75g_szHDD:                db  "HDD [%c]",NULL         ; "HDD [C]"
76%ifdef MODULE_BOOT_MENU
77g_szBootMenu:           db  "BootMnu%c",NULL        ; "BootMnu", location of %c doesn't matter
78%endif ; MODULE_BOOT_MENU
79g_szHotkey:             db  "%A%c%c%A%s%A ",NULL    ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
80%ifdef MODULE_SERIAL
81g_szHotComDetect:       db  "ComDtct%c",NULL        ; "ComDtct", location of %c doesn't matter
82%endif ; MODULE_SERIAL
83%endif ; MODULE_HOTKEYS
84
85%ifdef MODULE_BOOT_MENU
86g_szRomBootDash:        db  " -  "                  ; String fall through to g_szRomBoot
87%endif
88%ifdef MODULE_HOTKEYS OR MODULE_BOOT_MENU
89g_szRomBoot:            db  "Rom%cBoot",NULL        ; "RomBoot" or "Rom Boot"
90%endif
91
92
93%ifdef MODULE_BOOT_MENU
94; Boot Menu Floppy Disk strings
95;
96; The following strings are used by BootMenuPrint_RefreshInformation
97; To support optimizations in that code, these strings must start on the same 256 byte page,
98; which is checked at assembly time below.
99;
100g_szFddStart:
101g_szFddUnknown:     db  "Unknown",NULL
102g_szFddSizeOr:      db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
103g_szFddSize:        db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
104g_szFddThreeHalf:   db  "3",ONE_HALF,NULL
105g_szFddEnd:
106g_szFddFiveQuarter: db  "5",ONE_QUARTER,NULL
107
108%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
109    %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
110        %error "g_szFdd* strings must start on the same 256 byte page, required by the BootMenuPrint_RefreshInformation routines for floppy drives.  Please move this block up or down within Strings.asm"
111    %endif
112%endif
113
114
115g_szAddressingModes:
116g_szNORMAL:     db  "NORMAL",NULL
117g_szLARGE:      db  "LARGE ",NULL
118g_szLBA:        db  "LBA   ",NULL
119g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes)
120;
121; Ensure that addressing modes are correctly spaced in memory
122;
123%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
124    %if g_szNORMAL <> g_szAddressingModes
125        %error "g_szAddressingModes Displacement Incorrect 1"
126    %endif
127    %if g_szLARGE <> g_szNORMAL + g_szAddressingModes_Displacement
128        %error "g_szAddressingModes Displacement Incorrect 2"
129    %endif
130    %if g_szLBA <> g_szLARGE + g_szAddressingModes_Displacement
131        %error "g_szAddressingModes Displacement Incorrect 3"
132    %endif
133%endif
134
135
136g_szDeviceTypeValues:
137g_szDeviceTypeValues_16bit:             db  " 16",NULL
138%ifdef MODULE_ADVANCED_ATA OR MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
139g_szDeviceTypeValues_32bit:             db  " 32",NULL
140%ifdef MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
141g_szDeviceTypeValues_8bit:              db  "  8",NULL
142g_szDeviceTypeValues_XTIDEr1:           db  "D8 ",NULL  ; Dual 8-bit
143g_szDeviceTypeValues_XTIDEr2:           db  "X8 ",NULL  ; A0<->A3 swapped 8-bit
144g_szDeviceTypeValues_XTIDEr2_Olivetti:  db  "X8O",NULL  ; Same as above but in Olivetti M24 and derivatives
145%ifdef MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
146g_szDeviceTypeValues_XTCFpio8:          db  "T8 ",NULL  ; True 8-bit
147g_szDeviceTypeValues_XTCFpio8BIU:       db  "T8B",NULL
148g_szDeviceTypeValues_XTCFpio16BIU:      db  "16B",NULL
149g_szDeviceTypeValues_XTCFdma:           db  "8MA",NULL  ; DMA 8-bit
150g_szDeviceTypeValues_JrIde:             db  "M8 ",NULL  ; Memory Mapped 8-bit
151g_szDeviceTypeValues_ADP50L:            db  "M8 ",NULL  ; Memory Mapped 8-bit
152%ifdef MODULE_SERIAL
153g_szDeviceTypeValues_Serial:            db  "SER",NULL
154%endif ; MODULE_SERIAL
155%endif ; MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
156%endif ; MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
157%endif ; MODULE_ADVANCED_ATA OR MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
158
159g_szDeviceTypeValues_Displacement equ 3     ; 3 compressed, 4 uncompressed
160;g_szDeviceTypeValues_Displacement equ (g_szDeviceTypeValues_32bit - g_szDeviceTypeValues)
161;
162; Ensure that device type strings are correctly spaced in memory
163;
164%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
165    %if g_szDeviceTypeValues_16bit <> g_szDeviceTypeValues
166        %error "g_szDeviceTypeValues Displacement Incorrect 1"
167    %endif
168
169    %ifdef MODULE_ADVANCED_ATA OR MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
170
171    %if g_szDeviceTypeValues_32bit <> g_szDeviceTypeValues_16bit + g_szDeviceTypeValues_Displacement
172        %error "g_szDeviceTypeValues Displacement Incorrect 2"
173    %endif
174
175    %ifdef MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
176
177    %if g_szDeviceTypeValues_8bit <> g_szDeviceTypeValues_32bit + g_szDeviceTypeValues_Displacement
178        %error "g_szDeviceTypeValues Displacement Incorrect 3"
179    %endif
180    %if g_szDeviceTypeValues_XTIDEr1 <> g_szDeviceTypeValues_8bit + g_szDeviceTypeValues_Displacement
181        %error "g_szDeviceTypeValues Displacement Incorrect 4"
182    %endif
183    %if g_szDeviceTypeValues_XTIDEr2 <> g_szDeviceTypeValues_XTIDEr1 + g_szDeviceTypeValues_Displacement
184        %error "g_szDeviceTypeValues Displacement Incorrect 5"
185    %endif
186    %if g_szDeviceTypeValues_XTIDEr2_Olivetti <> g_szDeviceTypeValues_XTIDEr2 + g_szDeviceTypeValues_Displacement
187        %error "g_szDeviceTypeValues Displacement Incorrect 6"
188    %endif
189
190    %ifdef MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
191
192    %if g_szDeviceTypeValues_XTCFpio8 <> g_szDeviceTypeValues_XTIDEr2_Olivetti + g_szDeviceTypeValues_Displacement
193        %error "g_szDeviceTypeValues Displacement Incorrect 7"
194    %endif
195    %if g_szDeviceTypeValues_XTCFpio8BIU <> g_szDeviceTypeValues_XTCFpio8 + g_szDeviceTypeValues_Displacement
196        %error "g_szDeviceTypeValues Displacement Incorrect 8"
197    %endif
198    %if g_szDeviceTypeValues_XTCFpio16BIU <> g_szDeviceTypeValues_XTCFpio8BIU + g_szDeviceTypeValues_Displacement
199        %error "g_szDeviceTypeValues Displacement Incorrect 9"
200    %endif
201    %if g_szDeviceTypeValues_XTCFdma <> g_szDeviceTypeValues_XTCFpio16BIU + g_szDeviceTypeValues_Displacement
202        %error "g_szDeviceTypeValues Displacement Incorrect 10"
203    %endif
204    %if g_szDeviceTypeValues_JrIde <> g_szDeviceTypeValues_XTCFdma + g_szDeviceTypeValues_Displacement
205        %error "g_szDeviceTypeValues Displacement Incorrect 11"
206    %endif
207    %if g_szDeviceTypeValues_ADP50L <> g_szDeviceTypeValues_JrIde + g_szDeviceTypeValues_Displacement
208        %error "g_szDeviceTypeValues Displacement Incorrect 12"
209    %endif
210
211    %ifdef MODULE_SERIAL
212
213    %if g_szDeviceTypeValues_Serial <> g_szDeviceTypeValues_ADP50L + g_szDeviceTypeValues_Displacement
214        %error "g_szDeviceTypeValues Displacement Incorrect 13"
215    %endif
216
217    %endif ; MODULE_SERIAL
218    %endif ; MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
219    %endif ; MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
220    %endif ; MODULE_ADVANCED_ATA OR MODULE_8BIT_IDE OR MODULE_8BIT_IDE_ADVANCED OR MODULE_SERIAL
221
222%endif
223
224
225g_szSelectionTimeout:   db  DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
226
227
228; Boot Menu menuitem strings
229;
230; The following strings are used by BootMenuPrint_* routines.
231; To support optimizations in that code, these strings must start on the same 256 byte page,
232; which is checked at assembly time below.
233;
234g_szDriveNumSpace:      db  " "                         ; leading space, used if drive number is less than 0fh
235                                                        ; must come immediately before g_szDriveNum!
236g_szBootMenuPrintStart:
237g_szDriveNum:           db  "%x %s",NULL
238g_szDriveNumBNSpace:    db  " "                         ; leading space, used if drive number is less than 0fh
239                                                        ; must come immediately before g_szDriveNumBOOTNFO!
240g_szDriveNumBOOTNFO:    db  "%x %z",NULL
241g_szFloppyDrv:          db  "Floppy Drive %c",NULL
242g_szBootMenuPrintEnd:
243g_szForeignHD:          db  "Foreign Hard Disk",NULL
244
245%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
246    %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
247        %error "g_szBootMenuPrint* strings must start on the same 256 byte page, required by the BootMenuPrint_* routines.  Please move this block up or down within Strings.asm"
248    %endif
249    %if g_szDriveNumSpace+1 != g_szDriveNum || g_szDriveNumBNSpace+1 != g_szDriveNumBOOTNFO
250        %error "g_szDriveNumSpace or g_szDriveNumBNSpace are out of position"
251    %endif
252%endif
253
254
255; Boot Menu information strings
256g_szCapacity:           db  "Capacity : %s",NULL
257g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
258g_szInformation:        db  "%s",LF,CR
259                        db  "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,"IRQ",SINGLE_VERTICAL,"Reset",LF,CR
260                        db  "%s",SINGLE_VERTICAL,"%5-u",SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",NULL
261
262%endif ; MODULE_BOOT_MENU
263
264
265;------------------------------------------------------------------------------------------
266;
267; Tables for StringsCompress.pl
268;
269; Items can be added and removed from this table as needed, with the following rules:
270;  * Formats follow the special characters.  But other than that, order makes no difference.
271;  * Some of the formats require "even" and "odd" numbering.  Even tells the code that
272;    it is a "number-" format, otherwise it doesn't interpret a number first.  The easiest
273;    way to maintain this is to move one of the "n/a" items to/from the front of the format
274;    list to maintain the even/odd.
275;  * Values do not need to remain consistent across versions.  This table is only used
276;    internally to this file.
277;  * There can only be 32 of these (0-31).
278;  * Keeping the list short is good - this translates to a table in the compressed version.
279;    An error will be reported if a character or format is no longer being used by any
280;    strings above.
281;  * Please keep items sequential for ease of further editing.
282;
283;$translate{ord(' ')} = 0;
284;$translate{172}      = 1;     # ONE_QUARTER
285;$translate{171}      = 2;     # ONE_HALF
286;$translate{179}      = 3;     # SINGLE_VERTICAL
287;$translate{175}      = 4;     # ANGLE_QUOTE_RIGHT
288;$translate{ord('!')} = 5;
289;$translate{ord('"')} = 6;
290;$translate{ord(',')} = 7;
291;$translate{ord('-')} = 8;
292;$translate{ord('.')} = 9;
293;$translate{ord('/')} = 10;
294;$translate{ord('1')} = 11;
295;$translate{ord('2')} = 12;
296;$translate{ord('3')} = 13;
297;$translate{ord('5')} = 14;
298;$translate{ord('6')} = 15;
299;$translate{ord('8')} = 16;
300;$translate{200}      = 17;    # DOUBLE_BOTTOM_LEFT_CORNER
301;$translate{181}      = 18;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
302;$translate{ord('0')} = 19;
303;
304; Formats begin immediately after the last Translated character (they are in the same table)
305;
306;$format_begin = 20;
307;
308;$format{"2-I"} = 20;        # must be even
309;$format{"u"}   = 21;        # must be odd
310;$format{"5-u"} = 22;        # must be even
311;$format{"x"}   = 23;        # must be odd
312;$format{"5-x"} = 24;        # must be even
313;$format{"nl"}  = 25;        # n/a
314;$format{"2-u"} = 26;        # must be even
315;$format{"A"}   = 27;        # n/a
316;$format{"c"}   = 28;        # n/a
317;$format{"s"}   = 29;        # n/a, normal string from DS
318;$format{"z"}   = 30;        # n/a, boot string from BDA
319;
320; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
321;
322; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
323; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
324; front end.
325;
326;$normal_base = 0x3a;
327;
328; End of StringsCompress.pl information
329;
330;------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.