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