1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Strings and equates for BIOS messages.
|
---|
3 |
|
---|
4 | %ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
|
---|
5 | %include "Display.inc"
|
---|
6 | %endif
|
---|
7 |
|
---|
8 | ; Section containing code
|
---|
9 | SECTION .text
|
---|
10 |
|
---|
11 | ; POST drive detection strings
|
---|
12 | g_szRomAt: db "%s @ %x",LF,CR,NULL
|
---|
13 |
|
---|
14 | ; Boot loader strings
|
---|
15 | g_szTryToBoot: db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
|
---|
16 | g_szBootSectorNotFound: db "Boot sector "
|
---|
17 | g_szNotFound: db "not found",LF,CR,NULL
|
---|
18 | g_szReadError: db "Error %x!",LF,CR,NULL
|
---|
19 |
|
---|
20 | g_szAddressingModes:
|
---|
21 | g_szLCHS: db "L-CHS",NULL
|
---|
22 | g_szPCHS: db "P-CHS",NULL
|
---|
23 | g_szLBA28: db "LBA28",NULL
|
---|
24 | g_szLBA48: db "LBA48",NULL
|
---|
25 | g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
|
---|
26 | ;
|
---|
27 | ; Ensure that addressing modes are correctly spaced in memory
|
---|
28 | ;
|
---|
29 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
|
---|
30 | %if g_szLCHS <> g_szAddressingModes
|
---|
31 | %error "g_szAddressingModes Displacement Incorrect 1"
|
---|
32 | %endif
|
---|
33 | %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
|
---|
34 | %error "g_szAddressingModes Displacement Incorrect 2"
|
---|
35 | %endif
|
---|
36 | %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
|
---|
37 | %error "g_szAddressingModes Displacement Incorrect 3"
|
---|
38 | %endif
|
---|
39 | %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
|
---|
40 | %error "g_szAddressingModes Displacement Incorrect 4"
|
---|
41 | %endif
|
---|
42 | %endif
|
---|
43 |
|
---|
44 | g_szBusTypeValues:
|
---|
45 | g_szBusTypeValues_8Dual: db "D8 ",NULL
|
---|
46 | g_szBusTypeValues_8Reversed: db "X8 ",NULL
|
---|
47 | g_szBusTypeValues_8Single: db "S8 ",NULL
|
---|
48 | g_szBusTypeValues_16: db " 16",NULL
|
---|
49 | g_szBusTypeValues_32: db " 32",NULL
|
---|
50 | g_szBusTypeValues_Serial: db "SER",NULL
|
---|
51 | g_szBusTypeValues_8MemMapped: db "M8 ",NULL
|
---|
52 | g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
|
---|
53 | ;
|
---|
54 | ; Ensure that bus type strings are correctly spaced in memory
|
---|
55 | ;
|
---|
56 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
|
---|
57 | %if g_szBusTypeValues_8Dual <> g_szBusTypeValues
|
---|
58 | %error "g_szBusTypeValues Displacement Incorrect 1"
|
---|
59 | %endif
|
---|
60 | %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
|
---|
61 | %error "g_szBusTypeValues Displacement Incorrect 2"
|
---|
62 | %endif
|
---|
63 | %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
|
---|
64 | %error "g_szBusTypeValues Displacement Incorrect 3"
|
---|
65 | %endif
|
---|
66 | %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
|
---|
67 | %error "g_szBusTypeValues Displacement Incorrect 4"
|
---|
68 | %endif
|
---|
69 | %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
|
---|
70 | %error "g_szBusTypeValues Displacement Incorrect 5"
|
---|
71 | %endif
|
---|
72 | %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
|
---|
73 | %error "g_szBusTypeValues Displacement Incorrect 6"
|
---|
74 | %endif
|
---|
75 | %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
|
---|
76 | %error "g_szBusTypeValues Displacement Incorrect 7"
|
---|
77 | %endif
|
---|
78 | %endif
|
---|
79 |
|
---|
80 | g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
|
---|
81 |
|
---|
82 | g_szDashForZero: db "- ",NULL
|
---|
83 |
|
---|
84 | ; Boot Menu Floppy Disk strings
|
---|
85 | ;
|
---|
86 | ; The following strings are used by BootMenuPrint_RefreshInformation
|
---|
87 | ; To support optimizations in that code, these strings must start on the same 256 byte page,
|
---|
88 | ; which is checked at assembly time below.
|
---|
89 | ;
|
---|
90 | g_szFddStart:
|
---|
91 | g_szFddUnknown: db "Unknown",NULL
|
---|
92 | g_szFddSizeOr: db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
|
---|
93 | g_szFddSize: db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
|
---|
94 | g_szFddThreeHalf: db "3",ONE_HALF,NULL
|
---|
95 | g_szFddEnd:
|
---|
96 | g_szFddFiveQuarter: db "5",ONE_QUARTER,NULL
|
---|
97 |
|
---|
98 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
|
---|
99 | %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
|
---|
100 | %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"
|
---|
101 | %endif
|
---|
102 | %endif
|
---|
103 |
|
---|
104 | ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP
|
---|
105 | ; To support an optimization in that code, these strings must start on the same 256 byte page,
|
---|
106 | ; which is checked at assembly time below.
|
---|
107 | ;
|
---|
108 | g_szDetectStart:
|
---|
109 | g_szDetectMaster: db "Master",NULL
|
---|
110 | g_szDetectSlave: db "Slave ",NULL
|
---|
111 | g_szDetectOuter: db "IDE %s at %s: ",NULL
|
---|
112 | ;%%; %ifdef MODULE_SERIAL ;%%; is stripped off after string compression, %ifdef won't compress properly
|
---|
113 | g_szDetectOuterSerial: db "Serial %s on %s: ",NULL
|
---|
114 | g_szDetectCOM: db "COM%c%s",NULL
|
---|
115 | g_szDetectCOMAuto: db " Detect",NULL
|
---|
116 | g_szDetectCOMSmall: db "/%u%u00",NULL ; IDE Master at COM1/9600:
|
---|
117 | g_szDetectCOMLarge: db "/%u.%uK",NULL ; IDE Master at COM1/19.2K:
|
---|
118 | ;%%; %endif ;%%; is stripped off after string compression, %ifdef won't compress properly
|
---|
119 | g_szDetectEnd:
|
---|
120 | g_szDetectPort: db "%x",NULL ; IDE Master at 1F0h:
|
---|
121 |
|
---|
122 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
|
---|
123 | %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
|
---|
124 | %error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP. Please move this block up or down within strings.asm"
|
---|
125 | %endif
|
---|
126 | %endif
|
---|
127 |
|
---|
128 | ; Boot Menu menuitem strings
|
---|
129 | ;
|
---|
130 | ; The following strings are used by BootMenuPrint_* routines.
|
---|
131 | ; To support optimizations in that code, these strings must start on the same 256 byte page,
|
---|
132 | ; which is checked at assembly time below.
|
---|
133 | ;
|
---|
134 | g_szBootMenuPrintStart:
|
---|
135 | g_szDriveNum: db "%x %s",NULL
|
---|
136 | g_szDriveNumBOOTNFO: db "%x %z",NULL
|
---|
137 | g_szFloppyDrv: db "Floppy Drive %c",NULL
|
---|
138 | g_szBootMenuPrintEnd:
|
---|
139 | g_szForeignHD: db "Foreign Hard Disk",NULL
|
---|
140 |
|
---|
141 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
|
---|
142 | %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
|
---|
143 | %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"
|
---|
144 | %endif
|
---|
145 | %endif
|
---|
146 |
|
---|
147 | ; Boot menu bottom of screen strings
|
---|
148 | g_szFDD: db "FDD ",NULL
|
---|
149 | g_szHDD: db "HDD ",NULL
|
---|
150 | g_szRomBoot: db "ROM Boot",NULL
|
---|
151 | g_szHotkey: db "%A%c%c%A%s%A ",NULL
|
---|
152 |
|
---|
153 | ; Boot Menu information strings
|
---|
154 | g_szCapacity: db "Capacity : %s",NULL
|
---|
155 | g_szCapacityNum: db "%5-u.%u %ciB",NULL
|
---|
156 | g_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 |
|
---|
160 | ;------------------------------------------------------------------------------------------
|
---|
161 | ;
|
---|
162 | ; Tables for StringsCompress.pl
|
---|
163 | ;
|
---|
164 | ;$translate{ord(' ')} = 0;
|
---|
165 | ;$translate{172} = 1; # ONE_QUARTER
|
---|
166 | ;$translate{171} = 2; # ONE_HALF
|
---|
167 | ;$translate{179} = 3; # SINGLE_VERTICAL
|
---|
168 | ;$translate{175} = 4; # ANGLE_QUOTE_RIGHT
|
---|
169 | ;$translate{ord('!')} = 5;
|
---|
170 | ;$translate{ord('"')} = 6;
|
---|
171 | ;$translate{ord(',')} = 7;
|
---|
172 | ;$translate{ord('-')} = 8;
|
---|
173 | ;$translate{ord('.')} = 9;
|
---|
174 | ;$translate{ord('/')} = 10;
|
---|
175 | ;$translate{ord('1')} = 11;
|
---|
176 | ;$translate{ord('2')} = 12;
|
---|
177 | ;$translate{ord('3')} = 13;
|
---|
178 | ;$translate{ord('4')} = 14;
|
---|
179 | ;$translate{ord('5')} = 15;
|
---|
180 | ;$translate{ord('6')} = 16;
|
---|
181 | ;$translate{ord('8')} = 17;
|
---|
182 | ;$translate{200} = 18; # DOUBLE_BOTTOM_LEFT_CORNER
|
---|
183 | ;$translate{181} = 19; # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL
|
---|
184 | ;$translate{ord('0')} = 20;
|
---|
185 | ;
|
---|
186 | ; Formats begin immediately after the last Translated character (they are in the same table)
|
---|
187 | ;
|
---|
188 | ;$format_begin = 21;
|
---|
189 | ;
|
---|
190 | ;$format{"c"} = 21; # n/a
|
---|
191 | ;$format{"2-I"} = 22; # must be even
|
---|
192 | ;$format{"u"} = 23; # must be odd
|
---|
193 | ;$format{"5-u"} = 24; # must be even
|
---|
194 | ;$format{"x"} = 25; # must be odd
|
---|
195 | ;$format{"5-x"} = 26; # must be even
|
---|
196 | ;$format{"nl"} = 27; # n/a
|
---|
197 | ;$format{"2-u"} = 28; # must be even
|
---|
198 | ;$format{"A"} = 29; # n/a
|
---|
199 | ;$format{"s"} = 30; # n/a, normal string from DS
|
---|
200 | ;$format{"z"} = 31; # n/a, boot string from BDA
|
---|
201 | ;
|
---|
202 | ; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity).
|
---|
203 | ;
|
---|
204 | ; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case
|
---|
205 | ; letters. If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the
|
---|
206 | ; front end.
|
---|
207 | ;
|
---|
208 | ;$normal_base = 0x3a;
|
---|
209 | ;
|
---|
210 | ; End of StringsCompress.pl information
|
---|
211 | ;
|
---|
212 | ;------------------------------------------------------------------------------------------
|
---|
213 |
|
---|
214 |
|
---|