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