[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: |
---|
[421] | 99 | g_szNORMAL: db "NORMAL",NULL |
---|
| 100 | g_szLARGE: db "LARGE ",NULL |
---|
| 101 | g_szLBA: db "LBA ",NULL |
---|
| 102 | g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes) |
---|
[322] | 103 | ; |
---|
| 104 | ; Ensure that addressing modes are correctly spaced in memory |
---|
| 105 | ; |
---|
| 106 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[421] | 107 | %if g_szNORMAL <> g_szAddressingModes |
---|
[322] | 108 | %error "g_szAddressingModes Displacement Incorrect 1" |
---|
| 109 | %endif |
---|
[421] | 110 | %if g_szLARGE <> g_szNORMAL + g_szAddressingModes_Displacement |
---|
[322] | 111 | %error "g_szAddressingModes Displacement Incorrect 2" |
---|
| 112 | %endif |
---|
[421] | 113 | %if g_szLBA <> g_szLARGE + g_szAddressingModes_Displacement |
---|
[322] | 114 | %error "g_szAddressingModes Displacement Incorrect 3" |
---|
| 115 | %endif |
---|
| 116 | %endif |
---|
| 117 | |
---|
[473] | 118 | g_szDeviceTypeValues: |
---|
| 119 | g_szDeviceTypeValues_16bit: db " 16",NULL |
---|
| 120 | g_szDeviceTypeValues_32bit: db " 32",NULL |
---|
[486] | 121 | g_szDeviceTypeValues_8bit: db " 8",NULL |
---|
[473] | 122 | g_szDeviceTypeValues_XTIDEr1: db "D8 ",NULL ; Dual 8-bit |
---|
| 123 | g_szDeviceTypeValues_XTIDEr2: db "X8 ",NULL ; A0<->A3 swapped 8-bit |
---|
| 124 | g_szDeviceTypeValues_XTCFpio8: db "T8 ",NULL ; True 8-bit |
---|
| 125 | g_szDeviceTypeValues_XTCFdma: db "8MA",NULL ; DMA 8-bit |
---|
| 126 | g_szDeviceTypeValues_XTCFmem: db "M8 ",NULL ; Memory Mapped 8-bit |
---|
| 127 | g_szDeviceTypeValues_JrIde: db "M8 ",NULL |
---|
| 128 | g_szDeviceTypeValues_Serial: db "SER",NULL |
---|
[417] | 129 | |
---|
[473] | 130 | g_szDeviceTypeValues_Displacement equ (g_szDeviceTypeValues_32bit - g_szDeviceTypeValues) |
---|
[185] | 131 | ; |
---|
[473] | 132 | ; Ensure that device type strings are correctly spaced in memory |
---|
[185] | 133 | ; |
---|
[242] | 134 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[473] | 135 | %if g_szDeviceTypeValues_16bit <> g_szDeviceTypeValues |
---|
| 136 | %error "g_szDeviceTypeValues Displacement Incorrect 1" |
---|
[242] | 137 | %endif |
---|
[486] | 138 | %if g_szDeviceTypeValues_32bit <> g_szDeviceTypeValues_16bit + g_szDeviceTypeValues_Displacement |
---|
[473] | 139 | %error "g_szDeviceTypeValues Displacement Incorrect 2" |
---|
[242] | 140 | %endif |
---|
[486] | 141 | %if g_szDeviceTypeValues_8bit <> g_szDeviceTypeValues_32bit + g_szDeviceTypeValues_Displacement |
---|
| 142 | %error "g_szDeviceTypeValues Displacement Incorrect 2" |
---|
| 143 | %endif |
---|
| 144 | %if g_szDeviceTypeValues_XTIDEr1 <> g_szDeviceTypeValues_8bit + g_szDeviceTypeValues_Displacement |
---|
[473] | 145 | %error "g_szDeviceTypeValues Displacement Incorrect 3" |
---|
[242] | 146 | %endif |
---|
[473] | 147 | %if g_szDeviceTypeValues_XTIDEr2 <> g_szDeviceTypeValues_XTIDEr1 + g_szDeviceTypeValues_Displacement |
---|
| 148 | %error "g_szDeviceTypeValues Displacement Incorrect 4" |
---|
[242] | 149 | %endif |
---|
[473] | 150 | %if g_szDeviceTypeValues_XTCFpio8 <> g_szDeviceTypeValues_XTIDEr2 + g_szDeviceTypeValues_Displacement |
---|
| 151 | %error "g_szDeviceTypeValues Displacement Incorrect 5" |
---|
[242] | 152 | %endif |
---|
[473] | 153 | %if g_szDeviceTypeValues_XTCFdma <> g_szDeviceTypeValues_XTCFpio8 + g_szDeviceTypeValues_Displacement |
---|
| 154 | %error "g_szDeviceTypeValues Displacement Incorrect 6" |
---|
[242] | 155 | %endif |
---|
[473] | 156 | %if g_szDeviceTypeValues_XTCFmem <> g_szDeviceTypeValues_XTCFdma + g_szDeviceTypeValues_Displacement |
---|
| 157 | %error "g_szDeviceTypeValues Displacement Incorrect 7" |
---|
[285] | 158 | %endif |
---|
[473] | 159 | %if g_szDeviceTypeValues_JrIde <> g_szDeviceTypeValues_XTCFmem + g_szDeviceTypeValues_Displacement |
---|
| 160 | %error "g_szDeviceTypeValues Displacement Incorrect 8" |
---|
| 161 | %endif |
---|
| 162 | %if g_szDeviceTypeValues_Serial <> g_szDeviceTypeValues_JrIde + g_szDeviceTypeValues_Displacement |
---|
| 163 | %error "g_szDeviceTypeValues Displacement Incorrect 9" |
---|
| 164 | %endif |
---|
[185] | 165 | %endif |
---|
[242] | 166 | |
---|
[332] | 167 | g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL |
---|
| 168 | |
---|
| 169 | |
---|
[277] | 170 | |
---|
[415] | 171 | |
---|
[277] | 172 | ; Boot Menu information strings |
---|
| 173 | g_szCapacity: db "Capacity : %s",NULL |
---|
| 174 | g_szCapacityNum: db "%5-u.%u %ciB",NULL |
---|
| 175 | g_szInformation: db "%s",LF,CR |
---|
[421] | 176 | db "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL, "IRQ",SINGLE_VERTICAL,"Reset",LF,CR |
---|
[277] | 177 | db "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL |
---|
| 178 | |
---|
[415] | 179 | |
---|
[334] | 180 | ; Boot Menu menuitem strings |
---|
| 181 | ; |
---|
| 182 | ; The following strings are used by BootMenuPrint_* routines. |
---|
| 183 | ; To support optimizations in that code, these strings must start on the same 256 byte page, |
---|
[332] | 184 | ; which is checked at assembly time below. |
---|
| 185 | ; |
---|
[334] | 186 | g_szBootMenuPrintStart: |
---|
| 187 | g_szDriveNum: db "%x %s",NULL |
---|
| 188 | g_szDriveNumBOOTNFO: db "%x %z",NULL |
---|
| 189 | g_szFloppyDrv: db "Floppy Drive %c",NULL |
---|
| 190 | g_szBootMenuPrintEnd: |
---|
| 191 | g_szForeignHD: db "Foreign Hard Disk",NULL |
---|
[332] | 192 | |
---|
| 193 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[334] | 194 | %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00) |
---|
| 195 | %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] | 196 | %endif |
---|
| 197 | %endif |
---|
[415] | 198 | |
---|
| 199 | %endif ; MODULE_BOOT_MENU |
---|
| 200 | %endif ; MODULE_HOTKEYS |
---|
| 201 | |
---|
| 202 | |
---|
[197] | 203 | ;------------------------------------------------------------------------------------------ |
---|
[242] | 204 | ; |
---|
[197] | 205 | ; Tables for StringsCompress.pl |
---|
| 206 | ; |
---|
[488] | 207 | ; Items can be added and removed from this table as needed, with the following rules: |
---|
| 208 | ; * Formats follow the special characters. But other than that, order makes no difference. |
---|
| 209 | ; * Some of the formats require "even" and "odd" numbering. Even tells the code that |
---|
| 210 | ; it is a "number-" format, otherwise it doesn't interpret a number first. The easiest |
---|
| 211 | ; way to maintain this is to move one of the "n/a" items to/from the front of the format |
---|
| 212 | ; list to maintain the even/odd. |
---|
| 213 | ; * Values do not need to remain consistent across versions. This table is only used |
---|
| 214 | ; internally to this file. |
---|
| 215 | ; * There can only be 32 of these (0-31). |
---|
| 216 | ; * Keeping the list short is good - this translates to a table in the compressed version. |
---|
| 217 | ; An error will be reported if a character or format is no longer being used by any |
---|
| 218 | ; strings above. |
---|
| 219 | ; * Please keep items sequential for ease of further editing. |
---|
| 220 | ; |
---|
[197] | 221 | ;$translate{ord(' ')} = 0; |
---|
| 222 | ;$translate{172} = 1; # ONE_QUARTER |
---|
| 223 | ;$translate{171} = 2; # ONE_HALF |
---|
| 224 | ;$translate{179} = 3; # SINGLE_VERTICAL |
---|
| 225 | ;$translate{175} = 4; # ANGLE_QUOTE_RIGHT |
---|
| 226 | ;$translate{ord('!')} = 5; |
---|
| 227 | ;$translate{ord('"')} = 6; |
---|
| 228 | ;$translate{ord(',')} = 7; |
---|
| 229 | ;$translate{ord('-')} = 8; |
---|
| 230 | ;$translate{ord('.')} = 9; |
---|
| 231 | ;$translate{ord('/')} = 10; |
---|
[242] | 232 | ;$translate{ord('1')} = 11; |
---|
[197] | 233 | ;$translate{ord('2')} = 12; |
---|
| 234 | ;$translate{ord('3')} = 13; |
---|
[488] | 235 | ;$translate{ord('5')} = 14; |
---|
| 236 | ;$translate{ord('6')} = 15; |
---|
| 237 | ;$translate{ord('8')} = 16; |
---|
| 238 | ;$translate{200} = 17; # DOUBLE_BOTTOM_LEFT_CORNER |
---|
| 239 | ;$translate{181} = 18; # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL |
---|
| 240 | ;$translate{ord('0')} = 19; |
---|
[197] | 241 | ; |
---|
| 242 | ; Formats begin immediately after the last Translated character (they are in the same table) |
---|
| 243 | ; |
---|
[488] | 244 | ;$format_begin = 20; |
---|
[197] | 245 | ; |
---|
[488] | 246 | ;$format{"2-I"} = 20; # must be even |
---|
| 247 | ;$format{"u"} = 21; # must be odd |
---|
| 248 | ;$format{"5-u"} = 22; # must be even |
---|
| 249 | ;$format{"x"} = 23; # must be odd |
---|
| 250 | ;$format{"5-x"} = 24; # must be even |
---|
| 251 | ;$format{"nl"} = 25; # n/a |
---|
| 252 | ;$format{"2-u"} = 26; # must be even |
---|
| 253 | ;$format{"A"} = 27; # n/a |
---|
| 254 | ;$format{"c"} = 28; # n/a |
---|
| 255 | ;$format{"s"} = 29; # n/a, normal string from DS |
---|
| 256 | ;$format{"z"} = 30; # n/a, boot string from BDA |
---|
[197] | 257 | ; |
---|
| 258 | ; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity). |
---|
| 259 | ; |
---|
| 260 | ; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case |
---|
[242] | 261 | ; letters. If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the |
---|
[197] | 262 | ; front end. |
---|
| 263 | ; |
---|
| 264 | ;$normal_base = 0x3a; |
---|
| 265 | ; |
---|
| 266 | ; End of StringsCompress.pl information |
---|
| 267 | ; |
---|
| 268 | ;------------------------------------------------------------------------------------------ |
---|