[88] | 1 | ; Project name : XTIDE Universal BIOS |
---|
[3] | 2 | ; Description : Strings and equates for BIOS messages. |
---|
| 3 | |
---|
[376] | 4 | ; |
---|
[491] | 5 | ; XTIDE Universal BIOS and Associated Tools |
---|
[526] | 6 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team. |
---|
[376] | 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. |
---|
[491] | 12 | ; |
---|
[376] | 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. |
---|
[491] | 17 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 18 | ; |
---|
[376] | 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 | |
---|
[334] | 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 | ; |
---|
| 31 | g_szDetectStart: |
---|
| 32 | g_szDetectMaster: db "Master",NULL |
---|
| 33 | g_szDetectSlave: db "Slave ",NULL |
---|
| 34 | g_szDetectOuter: db "%s at %s: ",NULL |
---|
[415] | 35 | %ifdef MODULE_SERIAL |
---|
[491] | 36 | g_szDetectCOM: db "COM%c%s",NULL |
---|
[334] | 37 | g_szDetectCOMAuto: db " Detect",NULL |
---|
| 38 | g_szDetectCOMSmall: db "/%u%u00",NULL ; IDE Master at COM1/9600: |
---|
| 39 | g_szDetectCOMLarge: db "/%u.%uK",NULL ; IDE Master at COM1/19.2K: |
---|
[415] | 40 | %endif |
---|
[334] | 41 | g_szDetectEnd: |
---|
[491] | 42 | g_szDetectPort: db "%x",NULL ; IDE Master at 1F0h: |
---|
[334] | 43 | |
---|
| 44 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
| 45 | %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00) |
---|
[491] | 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" |
---|
[334] | 47 | %endif |
---|
| 48 | %endif |
---|
| 49 | |
---|
[415] | 50 | |
---|
[491] | 51 | ; POST drive detection strings |
---|
| 52 | g_szDashForZero: db "- ",NULL ; Required by Display Library |
---|
| 53 | g_szRomAt: db LF,CR |
---|
| 54 | db "%s @ %x",LF,CR ; -=XTIDE ... =- @ Segment |
---|
| 55 | db "%s",LF,CR ; version string |
---|
| 56 | db "Released under GNU GPL v2",LF,CR |
---|
| 57 | db LF,CR,NULL |
---|
| 58 | %ifdef MODULE_BOOT_MENU |
---|
| 59 | g_szBootMenuTitle: db "%s%c",LF,CR ; -=XTIDE ... =- and null (eaten) |
---|
| 60 | db "%s",NULL ; version string |
---|
| 61 | %endif |
---|
| 62 | g_szDriveName: db "%z",LF,CR,NULL |
---|
| 63 | |
---|
| 64 | |
---|
[415] | 65 | ; Boot loader strings |
---|
| 66 | g_szTryToBoot: db "Booting %c",ANGLE_QUOTE_RIGHT,"%c",LF,CR,NULL |
---|
[492] | 67 | g_szBootSectorNotFound: db "Boot sector " ; String fall through... |
---|
[415] | 68 | g_szNotFound: db "not found",LF,CR,NULL |
---|
| 69 | g_szReadError: db "Error %x!",LF,CR,NULL |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %ifdef MODULE_HOTKEYS |
---|
| 73 | ; Hotkey Bar strings |
---|
[492] | 74 | g_szFDD: db "FDD [%c]",NULL ; "FDD [A]" |
---|
| 75 | g_szHDD: db "HDD [%c]",NULL ; "HDD [C]" |
---|
| 76 | %ifdef MODULE_BOOT_MENU |
---|
| 77 | g_szBootMenu: db "BootMnu%c",NULL ; "BootMnu", location of %c doesn't matter |
---|
| 78 | %endif ; MODULE_BOOT_MENU |
---|
| 79 | g_szHotkey: db "%A%c%c%A%s%A ",NULL ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot " |
---|
| 80 | %ifdef MODULE_SERIAL |
---|
| 81 | g_szHotComDetect: db "ComDtct%c",NULL ; "ComDtct", location of %c doesn't matter |
---|
| 82 | %endif ; MODULE_SERIAL |
---|
| 83 | %endif ; MODULE_HOTKEYS |
---|
[415] | 84 | |
---|
[492] | 85 | %ifdef MODULE_BOOT_MENU |
---|
| 86 | g_szRomBootDash: db " - " ; String fall through to g_szRomBoot |
---|
| 87 | %endif |
---|
[505] | 88 | %ifdef MODULE_HOTKEYS OR MODULE_BOOT_MENU |
---|
| 89 | g_szRomBoot: db "Rom%cBoot",NULL ; "RomBoot" or "Rom Boot" |
---|
[492] | 90 | %endif |
---|
[415] | 91 | |
---|
[505] | 92 | |
---|
[415] | 93 | %ifdef MODULE_BOOT_MENU |
---|
[334] | 94 | ; Boot Menu Floppy Disk strings |
---|
| 95 | ; |
---|
| 96 | ; The following strings are used by BootMenuPrint_RefreshInformation |
---|
| 97 | ; To support optimizations in that code, these strings must start on the same 256 byte page, |
---|
| 98 | ; which is checked at assembly time below. |
---|
| 99 | ; |
---|
| 100 | g_szFddStart: |
---|
[491] | 101 | g_szFddUnknown: db "Unknown",NULL |
---|
| 102 | g_szFddSizeOr: db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL |
---|
| 103 | g_szFddSize: db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB |
---|
| 104 | g_szFddThreeHalf: db "3",ONE_HALF,NULL |
---|
[334] | 105 | g_szFddEnd: |
---|
[491] | 106 | g_szFddFiveQuarter: db "5",ONE_QUARTER,NULL |
---|
[334] | 107 | |
---|
| 108 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
| 109 | %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00) |
---|
[491] | 110 | %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" |
---|
[334] | 111 | %endif |
---|
| 112 | %endif |
---|
| 113 | |
---|
[322] | 114 | |
---|
| 115 | g_szAddressingModes: |
---|
[421] | 116 | g_szNORMAL: db "NORMAL",NULL |
---|
| 117 | g_szLARGE: db "LARGE ",NULL |
---|
| 118 | g_szLBA: db "LBA ",NULL |
---|
| 119 | g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes) |
---|
[322] | 120 | ; |
---|
| 121 | ; Ensure that addressing modes are correctly spaced in memory |
---|
| 122 | ; |
---|
| 123 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[421] | 124 | %if g_szNORMAL <> g_szAddressingModes |
---|
[322] | 125 | %error "g_szAddressingModes Displacement Incorrect 1" |
---|
| 126 | %endif |
---|
[421] | 127 | %if g_szLARGE <> g_szNORMAL + g_szAddressingModes_Displacement |
---|
[322] | 128 | %error "g_szAddressingModes Displacement Incorrect 2" |
---|
| 129 | %endif |
---|
[421] | 130 | %if g_szLBA <> g_szLARGE + g_szAddressingModes_Displacement |
---|
[322] | 131 | %error "g_szAddressingModes Displacement Incorrect 3" |
---|
| 132 | %endif |
---|
| 133 | %endif |
---|
| 134 | |
---|
[491] | 135 | |
---|
[473] | 136 | g_szDeviceTypeValues: |
---|
[588] | 137 | g_szDeviceTypeValues_16bit: db " 16",NULL |
---|
| 138 | g_szDeviceTypeValues_32bit: db " 32",NULL |
---|
| 139 | g_szDeviceTypeValues_8bit: db " 8",NULL |
---|
| 140 | g_szDeviceTypeValues_XTIDEr1: db "D8 ",NULL ; Dual 8-bit |
---|
| 141 | g_szDeviceTypeValues_XTIDEr2: db "X8 ",NULL ; A0<->A3 swapped 8-bit |
---|
| 142 | g_szDeviceTypeValues_XTCFpio8: db "T8 ",NULL ; True 8-bit |
---|
| 143 | g_szDeviceTypeValues_XTCFpio8BIU: db "T8B",NULL |
---|
| 144 | g_szDeviceTypeValues_XTCFpio16BIU: db "16B",NULL |
---|
| 145 | g_szDeviceTypeValues_XTCFdma: db "8MA",NULL ; DMA 8-bit |
---|
| 146 | g_szDeviceTypeValues_JrIde: db "M8 ",NULL ; Memory Mapped 8-bit |
---|
| 147 | g_szDeviceTypeValues_ADP50L: db "M8 ",NULL ; Memory Mapped 8-bit |
---|
| 148 | g_szDeviceTypeValues_Serial: db "SER",NULL |
---|
[417] | 149 | |
---|
[473] | 150 | g_szDeviceTypeValues_Displacement equ (g_szDeviceTypeValues_32bit - g_szDeviceTypeValues) |
---|
[185] | 151 | ; |
---|
[473] | 152 | ; Ensure that device type strings are correctly spaced in memory |
---|
[185] | 153 | ; |
---|
[242] | 154 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[473] | 155 | %if g_szDeviceTypeValues_16bit <> g_szDeviceTypeValues |
---|
| 156 | %error "g_szDeviceTypeValues Displacement Incorrect 1" |
---|
[242] | 157 | %endif |
---|
[486] | 158 | %if g_szDeviceTypeValues_32bit <> g_szDeviceTypeValues_16bit + g_szDeviceTypeValues_Displacement |
---|
[473] | 159 | %error "g_szDeviceTypeValues Displacement Incorrect 2" |
---|
[242] | 160 | %endif |
---|
[486] | 161 | %if g_szDeviceTypeValues_8bit <> g_szDeviceTypeValues_32bit + g_szDeviceTypeValues_Displacement |
---|
[588] | 162 | %error "g_szDeviceTypeValues Displacement Incorrect 3" |
---|
[486] | 163 | %endif |
---|
| 164 | %if g_szDeviceTypeValues_XTIDEr1 <> g_szDeviceTypeValues_8bit + g_szDeviceTypeValues_Displacement |
---|
[588] | 165 | %error "g_szDeviceTypeValues Displacement Incorrect 4" |
---|
[242] | 166 | %endif |
---|
[473] | 167 | %if g_szDeviceTypeValues_XTIDEr2 <> g_szDeviceTypeValues_XTIDEr1 + g_szDeviceTypeValues_Displacement |
---|
[588] | 168 | %error "g_szDeviceTypeValues Displacement Incorrect 5" |
---|
[242] | 169 | %endif |
---|
[473] | 170 | %if g_szDeviceTypeValues_XTCFpio8 <> g_szDeviceTypeValues_XTIDEr2 + g_szDeviceTypeValues_Displacement |
---|
| 171 | %error "g_szDeviceTypeValues Displacement Incorrect 6" |
---|
[242] | 172 | %endif |
---|
[588] | 173 | %if g_szDeviceTypeValues_XTCFpio8BIU <> g_szDeviceTypeValues_XTCFpio8 + g_szDeviceTypeValues_Displacement |
---|
[473] | 174 | %error "g_szDeviceTypeValues Displacement Incorrect 7" |
---|
[285] | 175 | %endif |
---|
[588] | 176 | %if g_szDeviceTypeValues_XTCFpio16BIU <> g_szDeviceTypeValues_XTCFpio8BIU + g_szDeviceTypeValues_Displacement |
---|
[473] | 177 | %error "g_szDeviceTypeValues Displacement Incorrect 8" |
---|
| 178 | %endif |
---|
[588] | 179 | %if g_szDeviceTypeValues_XTCFdma <> g_szDeviceTypeValues_XTCFpio16BIU + g_szDeviceTypeValues_Displacement |
---|
[473] | 180 | %error "g_szDeviceTypeValues Displacement Incorrect 9" |
---|
| 181 | %endif |
---|
[588] | 182 | %if g_szDeviceTypeValues_JrIde <> g_szDeviceTypeValues_XTCFdma + g_szDeviceTypeValues_Displacement |
---|
[536] | 183 | %error "g_szDeviceTypeValues Displacement Incorrect 10" |
---|
| 184 | %endif |
---|
[588] | 185 | %if g_szDeviceTypeValues_ADP50L <> g_szDeviceTypeValues_JrIde + g_szDeviceTypeValues_Displacement |
---|
| 186 | %error "g_szDeviceTypeValues Displacement Incorrect 11" |
---|
| 187 | %endif |
---|
| 188 | %if g_szDeviceTypeValues_Serial <> g_szDeviceTypeValues_ADP50L + g_szDeviceTypeValues_Displacement |
---|
| 189 | %error "g_szDeviceTypeValues Displacement Incorrect 12" |
---|
| 190 | %endif |
---|
[185] | 191 | %endif |
---|
[242] | 192 | |
---|
[332] | 193 | |
---|
[491] | 194 | g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL |
---|
[332] | 195 | |
---|
[277] | 196 | |
---|
[334] | 197 | ; Boot Menu menuitem strings |
---|
| 198 | ; |
---|
| 199 | ; The following strings are used by BootMenuPrint_* routines. |
---|
| 200 | ; To support optimizations in that code, these strings must start on the same 256 byte page, |
---|
[332] | 201 | ; which is checked at assembly time below. |
---|
| 202 | ; |
---|
[492] | 203 | g_szDriveNumSpace: db " " ; leading space, used if drive number is less than 0fh |
---|
| 204 | ; must come immediately before g_szDriveNum! |
---|
[334] | 205 | g_szBootMenuPrintStart: |
---|
| 206 | g_szDriveNum: db "%x %s",NULL |
---|
[492] | 207 | g_szDriveNumBNSpace: db " " ; leading space, used if drive number is less than 0fh |
---|
| 208 | ; must come immediately before g_szDriveNumBOOTNFO! |
---|
[334] | 209 | g_szDriveNumBOOTNFO: db "%x %z",NULL |
---|
| 210 | g_szFloppyDrv: db "Floppy Drive %c",NULL |
---|
| 211 | g_szBootMenuPrintEnd: |
---|
| 212 | g_szForeignHD: db "Foreign Hard Disk",NULL |
---|
[332] | 213 | |
---|
| 214 | %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS |
---|
[334] | 215 | %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00) |
---|
[491] | 216 | %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] | 217 | %endif |
---|
[492] | 218 | %if g_szDriveNumSpace+1 != g_szDriveNum || g_szDriveNumBNSpace+1 != g_szDriveNumBOOTNFO |
---|
| 219 | %error "g_szDriveNumSpace or g_szDriveNumBNSpace are out of position" |
---|
| 220 | %endif |
---|
[332] | 221 | %endif |
---|
[415] | 222 | |
---|
[536] | 223 | |
---|
| 224 | ; Boot Menu information strings |
---|
| 225 | g_szCapacity: db "Capacity : %s",NULL |
---|
| 226 | g_szCapacityNum: db "%5-u.%u %ciB",NULL |
---|
| 227 | g_szInformation: db "%s",LF,CR |
---|
| 228 | db "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,"IRQ",SINGLE_VERTICAL,"Reset",LF,CR |
---|
| 229 | db "%s",SINGLE_VERTICAL,"%5-u",SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",NULL |
---|
| 230 | |
---|
[415] | 231 | %endif ; MODULE_BOOT_MENU |
---|
| 232 | |
---|
| 233 | |
---|
[197] | 234 | ;------------------------------------------------------------------------------------------ |
---|
[242] | 235 | ; |
---|
[197] | 236 | ; Tables for StringsCompress.pl |
---|
| 237 | ; |
---|
[488] | 238 | ; Items can be added and removed from this table as needed, with the following rules: |
---|
| 239 | ; * Formats follow the special characters. But other than that, order makes no difference. |
---|
| 240 | ; * Some of the formats require "even" and "odd" numbering. Even tells the code that |
---|
| 241 | ; it is a "number-" format, otherwise it doesn't interpret a number first. The easiest |
---|
| 242 | ; way to maintain this is to move one of the "n/a" items to/from the front of the format |
---|
| 243 | ; list to maintain the even/odd. |
---|
| 244 | ; * Values do not need to remain consistent across versions. This table is only used |
---|
| 245 | ; internally to this file. |
---|
| 246 | ; * There can only be 32 of these (0-31). |
---|
| 247 | ; * Keeping the list short is good - this translates to a table in the compressed version. |
---|
[491] | 248 | ; An error will be reported if a character or format is no longer being used by any |
---|
[488] | 249 | ; strings above. |
---|
| 250 | ; * Please keep items sequential for ease of further editing. |
---|
| 251 | ; |
---|
[197] | 252 | ;$translate{ord(' ')} = 0; |
---|
| 253 | ;$translate{172} = 1; # ONE_QUARTER |
---|
| 254 | ;$translate{171} = 2; # ONE_HALF |
---|
| 255 | ;$translate{179} = 3; # SINGLE_VERTICAL |
---|
| 256 | ;$translate{175} = 4; # ANGLE_QUOTE_RIGHT |
---|
| 257 | ;$translate{ord('!')} = 5; |
---|
| 258 | ;$translate{ord('"')} = 6; |
---|
| 259 | ;$translate{ord(',')} = 7; |
---|
| 260 | ;$translate{ord('-')} = 8; |
---|
| 261 | ;$translate{ord('.')} = 9; |
---|
| 262 | ;$translate{ord('/')} = 10; |
---|
[242] | 263 | ;$translate{ord('1')} = 11; |
---|
[197] | 264 | ;$translate{ord('2')} = 12; |
---|
| 265 | ;$translate{ord('3')} = 13; |
---|
[488] | 266 | ;$translate{ord('5')} = 14; |
---|
| 267 | ;$translate{ord('6')} = 15; |
---|
| 268 | ;$translate{ord('8')} = 16; |
---|
| 269 | ;$translate{200} = 17; # DOUBLE_BOTTOM_LEFT_CORNER |
---|
| 270 | ;$translate{181} = 18; # DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL |
---|
| 271 | ;$translate{ord('0')} = 19; |
---|
[197] | 272 | ; |
---|
| 273 | ; Formats begin immediately after the last Translated character (they are in the same table) |
---|
| 274 | ; |
---|
[488] | 275 | ;$format_begin = 20; |
---|
[197] | 276 | ; |
---|
[488] | 277 | ;$format{"2-I"} = 20; # must be even |
---|
| 278 | ;$format{"u"} = 21; # must be odd |
---|
| 279 | ;$format{"5-u"} = 22; # must be even |
---|
| 280 | ;$format{"x"} = 23; # must be odd |
---|
| 281 | ;$format{"5-x"} = 24; # must be even |
---|
| 282 | ;$format{"nl"} = 25; # n/a |
---|
| 283 | ;$format{"2-u"} = 26; # must be even |
---|
| 284 | ;$format{"A"} = 27; # n/a |
---|
| 285 | ;$format{"c"} = 28; # n/a |
---|
| 286 | ;$format{"s"} = 29; # n/a, normal string from DS |
---|
| 287 | ;$format{"z"} = 30; # n/a, boot string from BDA |
---|
[197] | 288 | ; |
---|
| 289 | ; NOTE: The last $format cannot exceed 31 (stored in a 5-bit quantity). |
---|
| 290 | ; |
---|
| 291 | ; Starting point for the "normal" range, typically around 0x40 to cover upper and lower case |
---|
[242] | 292 | ; letters. If lower case 'z' is not used, 0x3a can be a good choice as it adds ':' to the |
---|
[197] | 293 | ; front end. |
---|
| 294 | ; |
---|
| 295 | ;$normal_base = 0x3a; |
---|
| 296 | ; |
---|
| 297 | ; End of StringsCompress.pl information |
---|
| 298 | ; |
---|
| 299 | ;------------------------------------------------------------------------------------------ |
---|