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

Last change on this file since 486 was 486, checked in by aitotat@…, 11 years ago

Changes to XTIDE Universal BIOS:

  • Faster DMA support (with less error tolerance).
  • Fixed boot menu device type strings.
File size: 9.9 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; POST drive detection strings
28g_szDashForZero:    db  "- ",NULL   ; Required by Display Library
29g_szRomAt:          db  LF,CR,"%s @ %x",LF,CR
30                    db  "Released under GNU GPL v2",LF,CR,LF,CR,NULL
31
32
33; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
34; To support an optimization in that code, these strings must start on the same 256 byte page,
35; which is checked at assembly time below.
36;
37g_szDetectStart:
38g_szDetectMaster:       db  "Master",NULL
39g_szDetectSlave:        db  "Slave ",NULL
40g_szDetectOuter:        db  "%s at %s: ",NULL
41%ifdef MODULE_SERIAL
42g_szDetectCOM:          db  "COM%c%s",NULL
43g_szDetectCOMAuto:      db  " Detect",NULL
44g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
45g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
46%endif
47g_szDetectEnd:
48g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
49
50%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
51    %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
52        %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"
53    %endif
54%endif
55
56
57; Boot loader strings
58g_szTryToBoot:          db  "Booting %c",ANGLE_QUOTE_RIGHT,"%c",LF,CR,NULL
59g_szBootSectorNotFound: db  "Boot sector "
60g_szNotFound:           db  "not found",LF,CR,NULL
61g_szReadError:          db  "Error %x!",LF,CR,NULL
62
63
64%ifdef MODULE_HOTKEYS
65
66; Hotkey Bar strings
67g_szFDD:        db  "FDD [%c]",NULL         ; "FDD [A]"
68g_szHDD:        db  "HDD [%c]",NULL         ; "HDD [C]"
69g_szBootMenu:   db  "%sMnu",NULL            ; "BootMnu"
70g_szRomBoot:    db  "Rom%s",NULL            ; "RomBoot"
71g_szBoot:       db  "Boot",NULL
72g_szHotkey:     db  "%A%c%c%A%s%A ",NULL    ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
73
74
75%ifdef MODULE_BOOT_MENU
76
77; Boot Menu Floppy Disk strings
78;
79; The following strings are used by BootMenuPrint_RefreshInformation
80; To support optimizations in that code, these strings must start on the same 256 byte page,
81; which is checked at assembly time below.
82;
83g_szFddStart:
84g_szFddUnknown: db  "Unknown",NULL
85g_szFddSizeOr:  db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
86g_szFddSize:    db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
87g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
88g_szFddEnd:
89g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL
90
91%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
92    %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
93        %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"
94    %endif
95%endif
96
97
98g_szAddressingModes:
99g_szNORMAL:     db  "NORMAL",NULL
100g_szLARGE:      db  "LARGE ",NULL
101g_szLBA:        db  "LBA   ",NULL
102wantToRemoveThis:   db  "4",NULL    ; String compression want '4' somewhere
103g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes)
104;
105; Ensure that addressing modes are correctly spaced in memory
106;
107%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
108    %if g_szNORMAL <> g_szAddressingModes
109        %error "g_szAddressingModes Displacement Incorrect 1"
110    %endif
111    %if g_szLARGE <> g_szNORMAL + g_szAddressingModes_Displacement
112        %error "g_szAddressingModes Displacement Incorrect 2"
113    %endif
114    %if g_szLBA <> g_szLARGE + g_szAddressingModes_Displacement
115        %error "g_szAddressingModes Displacement Incorrect 3"
116    %endif
117%endif
118
119g_szDeviceTypeValues:
120g_szDeviceTypeValues_16bit:     db      " 16",NULL
121g_szDeviceTypeValues_32bit:     db      " 32",NULL
122g_szDeviceTypeValues_8bit:      db      "  8",NULL
123g_szDeviceTypeValues_XTIDEr1:   db      "D8 ",NULL  ; Dual 8-bit
124g_szDeviceTypeValues_XTIDEr2:   db      "X8 ",NULL  ; A0<->A3 swapped 8-bit
125g_szDeviceTypeValues_XTCFpio8:  db      "T8 ",NULL  ; True 8-bit
126g_szDeviceTypeValues_XTCFdma:   db      "8MA",NULL  ; DMA 8-bit
127g_szDeviceTypeValues_XTCFmem:   db      "M8 ",NULL  ; Memory Mapped 8-bit
128g_szDeviceTypeValues_JrIde:     db      "M8 ",NULL
129g_szDeviceTypeValues_Serial:    db      "SER",NULL
130
131g_szDeviceTypeValues_Displacement equ (g_szDeviceTypeValues_32bit - g_szDeviceTypeValues)
132;
133; Ensure that device type strings are correctly spaced in memory
134;
135%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
136    %if g_szDeviceTypeValues_16bit <> g_szDeviceTypeValues
137        %error "g_szDeviceTypeValues Displacement Incorrect 1"
138    %endif
139    %if g_szDeviceTypeValues_32bit <> g_szDeviceTypeValues_16bit + g_szDeviceTypeValues_Displacement
140        %error "g_szDeviceTypeValues Displacement Incorrect 2"
141    %endif
142    %if g_szDeviceTypeValues_8bit <> g_szDeviceTypeValues_32bit + g_szDeviceTypeValues_Displacement
143        %error "g_szDeviceTypeValues Displacement Incorrect 2"
144    %endif
145    %if g_szDeviceTypeValues_XTIDEr1 <> g_szDeviceTypeValues_8bit + g_szDeviceTypeValues_Displacement
146        %error "g_szDeviceTypeValues Displacement Incorrect 3"
147    %endif
148    %if g_szDeviceTypeValues_XTIDEr2 <> g_szDeviceTypeValues_XTIDEr1 + g_szDeviceTypeValues_Displacement
149        %error "g_szDeviceTypeValues Displacement Incorrect 4"
150    %endif
151    %if g_szDeviceTypeValues_XTCFpio8 <> g_szDeviceTypeValues_XTIDEr2 + g_szDeviceTypeValues_Displacement
152        %error "g_szDeviceTypeValues Displacement Incorrect 5"
153    %endif
154    %if g_szDeviceTypeValues_XTCFdma <> g_szDeviceTypeValues_XTCFpio8 + g_szDeviceTypeValues_Displacement
155        %error "g_szDeviceTypeValues Displacement Incorrect 6"
156    %endif
157    %if g_szDeviceTypeValues_XTCFmem <> g_szDeviceTypeValues_XTCFdma + g_szDeviceTypeValues_Displacement
158        %error "g_szDeviceTypeValues Displacement Incorrect 7"
159    %endif
160    %if g_szDeviceTypeValues_JrIde <> g_szDeviceTypeValues_XTCFmem + g_szDeviceTypeValues_Displacement
161        %error "g_szDeviceTypeValues Displacement Incorrect 8"
162    %endif
163    %if g_szDeviceTypeValues_Serial <> g_szDeviceTypeValues_JrIde + g_szDeviceTypeValues_Displacement
164        %error "g_szDeviceTypeValues Displacement Incorrect 9"
165    %endif
166%endif
167
168g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
169
170
171
172
173; Boot Menu information strings
174g_szCapacity:           db  "Capacity : %s",NULL
175g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
176g_szInformation:        db  "%s",LF,CR
177    db  "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
178    db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
179
180
181; Boot Menu menuitem strings
182;
183; The following strings are used by BootMenuPrint_* routines.
184; To support optimizations in that code, these strings must start on the same 256 byte page,
185; which is checked at assembly time below.
186;
187g_szBootMenuPrintStart:
188g_szDriveNum:           db  "%x %s",NULL
189g_szDriveNumBOOTNFO:    db  "%x %z",NULL
190g_szFloppyDrv:          db  "Floppy Drive %c",NULL
191g_szBootMenuPrintEnd:
192g_szForeignHD:          db  "Foreign Hard Disk",NULL
193
194%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
195    %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
196        %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"
197    %endif
198%endif
199
200%endif ; MODULE_BOOT_MENU
201%endif ; MODULE_HOTKEYS
202
203
204;------------------------------------------------------------------------------------------
205;
206; Tables for StringsCompress.pl
207;
208;$translate{ord(' ')} = 0;
209;$translate{172}      = 1;     # ONE_QUARTER
210;$translate{171}      = 2;     # ONE_HALF
211;$translate{179}      = 3;     # SINGLE_VERTICAL
212;$translate{175}      = 4;     # ANGLE_QUOTE_RIGHT
213;$translate{ord('!')} = 5;
214;$translate{ord('"')} = 6;
215;$translate{ord(',')} = 7;
216;$translate{ord('-')} = 8;
217;$translate{ord('.')} = 9;
218;$translate{ord('/')} = 10;
219;$translate{ord('1')} = 11;
220;$translate{ord('2')} = 12;
221;$translate{ord('3')} = 13;
222;$translate{ord('4')} = 14; ; Not used at the moment
223;$translate{ord('5')} = 15;
224;$translate{ord('6')} = 16;
225;$translate{ord('8')} = 17;
226;$translate{200}      = 18;    # DOUBLE_BOTTOM_LEFT_CORNER
227;$translate{181}      = 19;    # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
228;$translate{ord('0')} = 20;
229;
230; Formats begin immediately after the last Translated character (they are in the same table)
231;
232;$format_begin = 21;
233;
234;$format{"c"}   = 21;        # n/a
235;$format{"2-I"} = 22;        # must be even
236;$format{"u"}   = 23;        # must be odd
237;$format{"5-u"} = 24;        # must be even
238;$format{"x"}   = 25;        # must be odd
239;$format{"5-x"} = 26;        # must be even
240;$format{"nl"}  = 27;        # n/a
241;$format{"2-u"} = 28;        # must be even
242;$format{"A"}   = 29;        # n/a
243;$format{"s"}   = 30;        # n/a, normal string from DS
244;$format{"z"}   = 31;        # n/a, boot string from BDA
245;
246; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
247;
248; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
249; letters.  If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
250; front end.
251;
252;$normal_base = 0x3a;
253;
254; End of StringsCompress.pl information
255;
256;------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.