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

Last change on this file since 396 was 392, checked in by aitotat@…, 13 years ago

Changes to XTIDE Universal BIOS:

  • Greatly improved Hotkey Bar is displayed during drive detection.
  • 8k builds no longer include boot menu.
  • Boot menu is displayed only if F2 is pressed during drive detection.
  • Some changes to directory structure.


File size: 9.1 KB
RevLine 
[88]1; Project name : XTIDE Universal BIOS
[3]2; Description : Strings and equates for BIOS messages.
3
[376]4;
5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 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
[186]20%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
[242]21 %include "Display.inc"
[186]22%endif
23
[3]24; Section containing code
25SECTION .text
26
[334]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 ;%%; is stripped off after string compression, %ifdef won't compress properly
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 ;%%; is stripped off after string compression, %ifdef won't compress properly
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; Boot Menu Floppy Disk strings
51;
52; The following strings are used by BootMenuPrint_RefreshInformation
53; To support optimizations in that code, these strings must start on the same 256 byte page,
54; which is checked at assembly time below.
55;
56g_szFddStart:
57g_szFddUnknown: db "Unknown",NULL
58g_szFddSizeOr: db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
59g_szFddSize: db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
60g_szFddThreeHalf: db "3",ONE_HALF,NULL
61g_szFddEnd:
62g_szFddFiveQuarter: db "5",ONE_QUARTER,NULL
63
64%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
65 %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
66 %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"
67 %endif
68%endif
69
[322]70; POST drive detection strings
[334]71g_szRomAt: db "%s @ %x",LF,CR
72 db "Released under GNU GPL v2",LF,CR,LF,CR,NULL
[322]73
74; Boot loader strings
[392]75g_szTryToBoot: db "Booting %c",ANGLE_QUOTE_RIGHT,"%c",LF,CR,NULL
[322]76g_szBootSectorNotFound: db "Boot sector "
77g_szNotFound: db "not found",LF,CR,NULL
78g_szReadError: db "Error %x!",LF,CR,NULL
79
[392]80
[322]81g_szAddressingModes:
82g_szLCHS: db "L-CHS",NULL
83g_szPCHS: db "P-CHS",NULL
84g_szLBA28: db "LBA28",NULL
85g_szLBA48: db "LBA48",NULL
86g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
87;
88; Ensure that addressing modes are correctly spaced in memory
89;
90%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
91 %if g_szLCHS <> g_szAddressingModes
92 %error "g_szAddressingModes Displacement Incorrect 1"
93 %endif
94 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
95 %error "g_szAddressingModes Displacement Incorrect 2"
96 %endif
97 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
98 %error "g_szAddressingModes Displacement Incorrect 3"
99 %endif
100 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
101 %error "g_szAddressingModes Displacement Incorrect 4"
102 %endif
103%endif
104
[242]105g_szBusTypeValues:
[182]106g_szBusTypeValues_8Dual: db "D8 ",NULL
107g_szBusTypeValues_8Reversed: db "X8 ",NULL
108g_szBusTypeValues_8Single: db "S8 ",NULL
109g_szBusTypeValues_16: db " 16",NULL
110g_szBusTypeValues_32: db " 32",NULL
111g_szBusTypeValues_Serial: db "SER",NULL
[285]112g_szBusTypeValues_8MemMapped: db "M8 ",NULL
[185]113g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
114;
115; Ensure that bus type strings are correctly spaced in memory
116;
[242]117%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
118 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues
119 %error "g_szBusTypeValues Displacement Incorrect 1"
120 %endif
121 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
122 %error "g_szBusTypeValues Displacement Incorrect 2"
123 %endif
124 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
125 %error "g_szBusTypeValues Displacement Incorrect 3"
126 %endif
127 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
128 %error "g_szBusTypeValues Displacement Incorrect 4"
129 %endif
130 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
131 %error "g_szBusTypeValues Displacement Incorrect 5"
132 %endif
133 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
134 %error "g_szBusTypeValues Displacement Incorrect 6"
135 %endif
[285]136 %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
137 %error "g_szBusTypeValues Displacement Incorrect 7"
138 %endif
[185]139%endif
[242]140
[332]141g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
142
143g_szDashForZero: db "- ",NULL
144
[277]145; Boot menu bottom of screen strings
[392]146g_szFDD: db "FDD [%c]",NULL ; "FDD [A]"
147g_szHDD: db "HDD [%c]",NULL ; "HDD [C]"
148g_szBootMenu: db "%sMnu",NULL ; "BootMnu"
149g_szRomBoot: db "Rom%s",NULL ; "RomBoot"
150g_szBoot: db "Boot",NULL
151g_szHotkey: db "%A%c%c%A%s%A ",NULL ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
[277]152
153; Boot Menu information strings
154g_szCapacity: db "Capacity : %s",NULL
155g_szCapacityNum: db "%5-u.%u %ciB",NULL
156g_szInformation: db "%s",LF,CR
157 db "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL, "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
158 db "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
159
[334]160; Boot Menu menuitem strings
161;
162; The following strings are used by BootMenuPrint_* routines.
163; To support optimizations in that code, these strings must start on the same 256 byte page,
[332]164; which is checked at assembly time below.
165;
[334]166g_szBootMenuPrintStart:
167g_szDriveNum: db "%x %s",NULL
168g_szDriveNumBOOTNFO: db "%x %z",NULL
169g_szFloppyDrv: db "Floppy Drive %c",NULL
170g_szBootMenuPrintEnd:
171g_szForeignHD: db "Foreign Hard Disk",NULL
[332]172
173%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
[334]174 %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
175 %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"
[332]176 %endif
177%endif
[334]178
[197]179;------------------------------------------------------------------------------------------
[242]180;
[197]181; Tables for StringsCompress.pl
182;
183;$translate{ord(' ')} = 0;
184;$translate{172} = 1; # ONE_QUARTER
185;$translate{171} = 2; # ONE_HALF
186;$translate{179} = 3; # SINGLE_VERTICAL
187;$translate{175} = 4; # ANGLE_QUOTE_RIGHT
188;$translate{ord('!')} = 5;
189;$translate{ord('"')} = 6;
190;$translate{ord(',')} = 7;
191;$translate{ord('-')} = 8;
192;$translate{ord('.')} = 9;
193;$translate{ord('/')} = 10;
[242]194;$translate{ord('1')} = 11;
[197]195;$translate{ord('2')} = 12;
196;$translate{ord('3')} = 13;
197;$translate{ord('4')} = 14;
198;$translate{ord('5')} = 15;
199;$translate{ord('6')} = 16;
200;$translate{ord('8')} = 17;
201;$translate{200} = 18; # DOUBLE_BOTTOM_LEFT_CORNER
202;$translate{181} = 19; # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
[241]203;$translate{ord('0')} = 20;
[197]204;
205; Formats begin immediately after the last Translated character (they are in the same table)
206;
[233]207;$format_begin = 21;
[197]208;
209;$format{"c"} = 21; # n/a
210;$format{"2-I"} = 22; # must be even
211;$format{"u"} = 23; # must be odd
212;$format{"5-u"} = 24; # must be even
213;$format{"x"} = 25; # must be odd
214;$format{"5-x"} = 26; # must be even
215;$format{"nl"} = 27; # n/a
216;$format{"2-u"} = 28; # must be even
217;$format{"A"} = 29; # n/a
[241]218;$format{"s"} = 30; # n/a, normal string from DS
219;$format{"z"} = 31; # n/a, boot string from BDA
[197]220;
221; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
222;
223; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
[242]224; letters. If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
[197]225; front end.
226;
227;$normal_base = 0x3a;
228;
229; End of StringsCompress.pl information
230;
231;------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.