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