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

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

WIDE checkin... Added copyright and license information to sorce files, as per the GPL instructions for usage.

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