Changeset 277 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm
- Timestamp:
- Feb 28, 2012, 2:45:48 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm
r262 r277 17 17 SECTION .text 18 18 19 ; POST drive detection strings 20 g_szRomAt: ; db "%s @ %x",LF,CR,NULL 21 ; db 25h, 73h, 20h, 40h, 20h, 25h, 78h, 0ah, 0dh, 00h ; uncompressed 22 db 3eh, 20h, 0c6h, 39h, 1bh ; compressed 23 24 25 ; Boot loader strings 26 g_szTryToBoot: ; db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL 27 ; db 42h, 6fh, 6fh, 74h, 69h, 6eh, 67h, 20h, 66h, 72h, 6fh, 6dh, 20h, 25h, 73h, 20h, 25h, 78h, 0afh, 25h, 78h, 0ah, 0dh, 00h ; uncompressed 28 db 48h, 75h, 75h, 7ah, 6fh, 74h, 0edh, 6ch, 78h, 75h, 0f3h, 3eh, 20h, 39h, 24h, 39h, 1bh ; compressed 29 30 g_szBootSectorNotFound: ; db "Boot sector " 31 ; db 42h, 6fh, 6fh, 74h, 20h, 73h, 65h, 63h, 74h, 6fh, 72h, 20h ; uncompressed 32 db 48h, 75h, 75h, 0fah, 79h, 6bh, 69h, 7ah, 75h, 0f8h ; compressed 33 34 g_szNotFound: ; db "not found",LF,CR,NULL 35 ; db 6eh, 6fh, 74h, 20h, 66h, 6fh, 75h, 6eh, 64h, 0ah, 0dh, 00h ; uncompressed 36 db 74h, 75h, 0fah, 6ch, 75h, 7bh, 74h, 6ah, 1bh ; compressed 37 38 g_szReadError: ; db "Error %x!",LF,CR,NULL 39 ; db 45h, 72h, 72h, 6fh, 72h, 20h, 25h, 78h, 21h, 0ah, 0dh, 00h ; uncompressed 40 db 4bh, 78h, 78h, 75h, 0f8h, 39h, 25h, 1bh ; compressed 41 42 43 g_szAddressingModes: 44 g_szLCHS: ; db "L-CHS",NULL 45 ; db 4ch, 2dh, 43h, 48h, 53h, 00h ; uncompressed 46 db 52h, 28h, 49h, 4eh, 99h ; compressed 47 48 g_szPCHS: ; db "P-CHS",NULL 49 ; db 50h, 2dh, 43h, 48h, 53h, 00h ; uncompressed 50 db 56h, 28h, 49h, 4eh, 99h ; compressed 51 52 g_szLBA28: ; db "LBA28",NULL 53 ; db 4ch, 42h, 41h, 32h, 38h, 00h ; uncompressed 54 db 52h, 48h, 47h, 2ch, 11h ; compressed 55 56 g_szLBA48: ; db "LBA48",NULL 57 ; db 4ch, 42h, 41h, 34h, 38h, 00h ; uncompressed 58 db 52h, 48h, 47h, 2eh, 11h ; compressed 59 60 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes) 61 ; 62 ; Ensure that addressing modes are correctly spaced in memory 63 ; 64 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 65 %if g_szLCHS <> g_szAddressingModes 66 %error "g_szAddressingModes Displacement Incorrect 1" 67 %endif 68 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement 69 %error "g_szAddressingModes Displacement Incorrect 2" 70 %endif 71 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement 72 %error "g_szAddressingModes Displacement Incorrect 3" 73 %endif 74 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement 75 %error "g_szAddressingModes Displacement Incorrect 4" 76 %endif 77 %endif 78 79 g_szBusTypeValues: 80 g_szBusTypeValues_8Dual: ; db "D8 ",NULL 81 ; db 44h, 38h, 20h, 00h ; uncompressed 82 db 4ah, 31h, 00h ; compressed 83 84 g_szBusTypeValues_8Reversed: ; db "X8 ",NULL 85 ; db 58h, 38h, 20h, 00h ; uncompressed 86 db 5eh, 31h, 00h ; compressed 87 88 g_szBusTypeValues_8Single: ; db "S8 ",NULL 89 ; db 53h, 38h, 20h, 00h ; uncompressed 90 db 59h, 31h, 00h ; compressed 91 92 g_szBusTypeValues_16: ; db " 16",NULL 93 ; db 20h, 31h, 36h, 00h ; uncompressed 94 db 20h, 2bh, 10h ; compressed 95 96 g_szBusTypeValues_32: ; db " 32",NULL 97 ; db 20h, 33h, 32h, 00h ; uncompressed 98 db 20h, 2dh, 0ch ; compressed 99 100 g_szBusTypeValues_Serial: ; db "SER",NULL 101 ; db 53h, 45h, 52h, 00h ; uncompressed 102 db 59h, 4bh, 98h ; compressed 103 104 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues) 105 ; 106 ; Ensure that bus type strings are correctly spaced in memory 107 ; 108 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 109 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues 110 %error "g_szBusTypeValues Displacement Incorrect 1" 111 %endif 112 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement 113 %error "g_szBusTypeValues Displacement Incorrect 2" 114 %endif 115 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement 116 %error "g_szBusTypeValues Displacement Incorrect 3" 117 %endif 118 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement 119 %error "g_szBusTypeValues Displacement Incorrect 4" 120 %endif 121 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement 122 %error "g_szBusTypeValues Displacement Incorrect 5" 123 %endif 124 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement 125 %error "g_szBusTypeValues Displacement Incorrect 6" 126 %endif 127 %endif 128 129 g_szSelectionTimeout: ; db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL 130 ; db 0c8h, 0b5h, 25h, 41h, 53h, 65h, 6ch, 65h, 63h, 74h, 69h, 6fh, 6eh, 20h, 69h, 6eh, 20h, 25h, 32h, 2dh, 75h, 20h, 73h, 00h ; uncompressed 131 db 32h, 33h, 3dh, 59h, 6bh, 72h, 6bh, 69h, 7ah, 6fh, 75h, 0f4h, 6fh, 0f4h, 3ch, 20h, 0b9h ; compressed 132 133 134 g_szDashForZero: ; db "- ",NULL 135 ; db 2dh, 20h, 00h ; uncompressed 136 db 28h, 00h ; compressed 137 138 139 ; Boot Menu Floppy Disk strings 140 ; 141 ; The following strings are used by BootMenuPrint_RefreshInformation 142 ; To support optimizations in that code, these strings must start on the same 256 byte page, 143 ; which is checked at assembly time below. 144 ; 145 g_szFddStart: 146 g_szFddUnknown: ; db "Unknown",NULL 147 ; db 55h, 6eh, 6bh, 6eh, 6fh, 77h, 6eh, 00h ; uncompressed 148 db 5bh, 74h, 71h, 74h, 75h, 7dh, 0b4h ; compressed 149 150 g_szFddSizeOr: ; db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL 151 ; db 35h, 0ach, 22h, 20h, 6fh, 72h, 20h, 33h, 0abh, 22h, 20h, 44h, 44h, 00h ; uncompressed 152 db 2fh, 21h, 26h, 20h, 75h, 0f8h, 2dh, 22h, 26h, 20h, 4ah, 8ah ; compressed 153 154 g_szFddSize: ; db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB 155 ; db 25h, 73h, 22h, 2ch, 20h, 25h, 75h, 20h, 6bh, 69h, 42h, 00h ; uncompressed 156 db 3eh, 26h, 27h, 20h, 37h, 20h, 71h, 6fh, 88h ; compressed 157 158 g_szFddThreeHalf: ; db "3",ONE_HALF,NULL 159 ; db 33h, 0abh, 00h ; uncompressed 160 db 2dh, 02h ; compressed 161 162 g_szFddEnd: 163 g_szFddFiveQuarter: ; db "5",ONE_QUARTER,NULL 164 ; db 35h, 0ach, 00h ; uncompressed 165 db 2fh, 01h ; compressed 166 167 168 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 169 %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00) 170 %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" 171 %endif 172 %endif 173 19 174 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP 20 175 ; To support an optimization in that code, these strings must start on the same 256 byte page, … … 34 189 db 4fh, 4ah, 0cbh, 3eh, 20h, 67h, 0fah, 3eh, 40h, 00h ; compressed 35 190 36 g_szDetectOuterSerial: ; db "Serial %s on %s: ",NULL 191 %ifdef MODULE_SERIAL ;%%; is stripped off after string compression, %ifdef won't compress properly 192 g_szDetectOuterSerial: ; db "Serial %s on %s: ",NULL 37 193 ; db 53h, 65h, 72h, 69h, 61h, 6ch, 20h, 25h, 73h, 20h, 6fh, 6eh, 20h, 25h, 73h, 3ah, 20h, 00h ; uncompressed 38 194 db 59h, 6bh, 78h, 6fh, 67h, 0f2h, 3eh, 20h, 75h, 0f4h, 3eh, 40h, 00h ; compressed 39 195 196 g_szDetectCOM: ; db "COM%c%s",NULL 197 ; db 43h, 4fh, 4dh, 25h, 63h, 25h, 73h, 00h ; uncompressed 198 db 49h, 55h, 53h, 35h, 1eh ; compressed 199 200 g_szDetectCOMAuto: ; db " Detect",NULL 201 ; db 20h, 44h, 65h, 74h, 65h, 63h, 74h, 00h ; uncompressed 202 db 20h, 4ah, 6bh, 7ah, 6bh, 69h, 0bah ; compressed 203 204 g_szDetectCOMSmall: ; db "/%u%u00",NULL ; IDE Master at COM1/9600: 205 ; db 2fh, 25h, 75h, 25h, 75h, 30h, 30h, 00h ; uncompressed 206 db 2ah, 37h, 37h, 34h, 14h ; compressed 207 208 g_szDetectCOMLarge: ; db "/%u.%uK",NULL ; IDE Master at COM1/19.2K: 209 ; db 2fh, 25h, 75h, 2eh, 25h, 75h, 4bh, 00h ; uncompressed 210 db 2ah, 37h, 29h, 37h, 91h ; compressed 211 212 %endif ;%%; is stripped off after string compression, %ifdef won't compress properly 213 g_szDetectEnd: 40 214 g_szDetectPort: ; db "%x",NULL ; IDE Master at 1F0h: 41 215 ; db 25h, 78h, 00h ; uncompressed 42 216 db 19h ; compressed 43 44 g_szDetectCOM: ; db "COM%c%s",NULL45 ; db 43h, 4fh, 4dh, 25h, 63h, 25h, 73h, 00h ; uncompressed46 db 49h, 55h, 53h, 35h, 1eh ; compressed47 48 g_szDetectCOMAuto: ; db " Detect",NULL49 ; db 20h, 44h, 65h, 74h, 65h, 63h, 74h, 00h ; uncompressed50 db 20h, 4ah, 6bh, 7ah, 6bh, 69h, 0bah ; compressed51 52 g_szDetectCOMSmall: ; db "/%u%u00",NULL ; IDE Master at COM1/9600:53 ; db 2fh, 25h, 75h, 25h, 75h, 30h, 30h, 00h ; uncompressed54 db 2ah, 37h, 37h, 34h, 14h ; compressed55 56 g_szDetectEnd:57 g_szDetectCOMLarge: ; db "/%u.%uK",NULL ; IDE Master at COM1/19.2K:58 ; db 2fh, 25h, 75h, 2eh, 25h, 75h, 4bh, 00h ; uncompressed59 db 2ah, 37h, 29h, 37h, 91h ; compressed60 217 61 218 … … 97 254 %endif 98 255 99 ; POST drive detection strings100 g_szRomAt: ; db "%s @ %x",LF,CR,NULL101 ; db 25h, 73h, 20h, 40h, 20h, 25h, 78h, 0ah, 0dh, 00h ; uncompressed102 db 3eh, 20h, 0c6h, 39h, 1bh ; compressed103 104 105 ; Boot loader strings106 g_szTryToBoot: ; db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL107 ; db 42h, 6fh, 6fh, 74h, 69h, 6eh, 67h, 20h, 66h, 72h, 6fh, 6dh, 20h, 25h, 73h, 20h, 25h, 78h, 0afh, 25h, 78h, 0ah, 0dh, 00h ; uncompressed108 db 48h, 75h, 75h, 7ah, 6fh, 74h, 0edh, 6ch, 78h, 75h, 0f3h, 3eh, 20h, 39h, 24h, 39h, 1bh ; compressed109 110 g_szBootSectorNotFound: ; db "Boot sector "111 ; db 42h, 6fh, 6fh, 74h, 20h, 73h, 65h, 63h, 74h, 6fh, 72h, 20h ; uncompressed112 db 48h, 75h, 75h, 0fah, 79h, 6bh, 69h, 7ah, 75h, 0f8h ; compressed113 114 g_szNotFound: ; db "not found",LF,CR,NULL115 ; db 6eh, 6fh, 74h, 20h, 66h, 6fh, 75h, 6eh, 64h, 0ah, 0dh, 00h ; uncompressed116 db 74h, 75h, 0fah, 6ch, 75h, 7bh, 74h, 6ah, 1bh ; compressed117 118 g_szReadError: ; db "Error %x!",LF,CR,NULL119 ; db 45h, 72h, 72h, 6fh, 72h, 20h, 25h, 78h, 21h, 0ah, 0dh, 00h ; uncompressed120 db 4bh, 78h, 78h, 75h, 0f8h, 39h, 25h, 1bh ; compressed121 122 123 256 ; Boot menu bottom of screen strings 124 257 g_szFDD: ; db "FDD ",NULL … … 160 293 db 3eh, 23h, 38h, 23h, 3eh, 23h, 20h, 36h, 23h, 1ah ; compressed 161 294 162 163 g_szAddressingModes:164 g_szLCHS: ; db "L-CHS",NULL165 ; db 4ch, 2dh, 43h, 48h, 53h, 00h ; uncompressed166 db 52h, 28h, 49h, 4eh, 99h ; compressed167 168 g_szPCHS: ; db "P-CHS",NULL169 ; db 50h, 2dh, 43h, 48h, 53h, 00h ; uncompressed170 db 56h, 28h, 49h, 4eh, 99h ; compressed171 172 g_szLBA28: ; db "LBA28",NULL173 ; db 4ch, 42h, 41h, 32h, 38h, 00h ; uncompressed174 db 52h, 48h, 47h, 2ch, 11h ; compressed175 176 g_szLBA48: ; db "LBA48",NULL177 ; db 4ch, 42h, 41h, 34h, 38h, 00h ; uncompressed178 db 52h, 48h, 47h, 2eh, 11h ; compressed179 180 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)181 ;182 ; Ensure that addressing modes are correctly spaced in memory183 ;184 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS185 %if g_szLCHS <> g_szAddressingModes186 %error "g_szAddressingModes Displacement Incorrect 1"187 %endif188 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement189 %error "g_szAddressingModes Displacement Incorrect 2"190 %endif191 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement192 %error "g_szAddressingModes Displacement Incorrect 3"193 %endif194 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement195 %error "g_szAddressingModes Displacement Incorrect 4"196 %endif197 %endif198 199 g_szBusTypeValues:200 g_szBusTypeValues_8Dual: ; db "D8 ",NULL201 ; db 44h, 38h, 20h, 00h ; uncompressed202 db 4ah, 31h, 00h ; compressed203 204 g_szBusTypeValues_8Reversed: ; db "X8 ",NULL205 ; db 58h, 38h, 20h, 00h ; uncompressed206 db 5eh, 31h, 00h ; compressed207 208 g_szBusTypeValues_8Single: ; db "S8 ",NULL209 ; db 53h, 38h, 20h, 00h ; uncompressed210 db 59h, 31h, 00h ; compressed211 212 g_szBusTypeValues_16: ; db " 16",NULL213 ; db 20h, 31h, 36h, 00h ; uncompressed214 db 20h, 2bh, 10h ; compressed215 216 g_szBusTypeValues_32: ; db " 32",NULL217 ; db 20h, 33h, 32h, 00h ; uncompressed218 db 20h, 2dh, 0ch ; compressed219 220 g_szBusTypeValues_Serial: ; db "SER",NULL221 ; db 53h, 45h, 52h, 00h ; uncompressed222 db 59h, 4bh, 98h ; compressed223 224 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)225 ;226 ; Ensure that bus type strings are correctly spaced in memory227 ;228 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS229 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues230 %error "g_szBusTypeValues Displacement Incorrect 1"231 %endif232 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement233 %error "g_szBusTypeValues Displacement Incorrect 2"234 %endif235 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement236 %error "g_szBusTypeValues Displacement Incorrect 3"237 %endif238 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement239 %error "g_szBusTypeValues Displacement Incorrect 4"240 %endif241 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement242 %error "g_szBusTypeValues Displacement Incorrect 5"243 %endif244 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement245 %error "g_szBusTypeValues Displacement Incorrect 6"246 %endif247 %endif248 249 g_szSelectionTimeout: ; db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL250 ; db 0c8h, 0b5h, 25h, 41h, 53h, 65h, 6ch, 65h, 63h, 74h, 69h, 6fh, 6eh, 20h, 69h, 6eh, 20h, 25h, 32h, 2dh, 75h, 20h, 73h, 00h ; uncompressed251 db 32h, 33h, 3dh, 59h, 6bh, 72h, 6bh, 69h, 7ah, 6fh, 75h, 0f4h, 6fh, 0f4h, 3ch, 20h, 0b9h ; compressed252 253 254 g_szDashForZero: ; db "- ",NULL255 ; db 2dh, 20h, 00h ; uncompressed256 db 28h, 00h ; compressed257 258 259 ; Boot Menu Floppy Disk strings260 ;261 ; The following strings are used by BootMenuPrint_RefreshInformation262 ; To support optimizations in that code, these strings must start on the same 256 byte page,263 ; which is checked at assembly time below.264 ;265 g_szFddStart:266 g_szFddUnknown: ; db "Unknown",NULL267 ; db 55h, 6eh, 6bh, 6eh, 6fh, 77h, 6eh, 00h ; uncompressed268 db 5bh, 74h, 71h, 74h, 75h, 7dh, 0b4h ; compressed269 270 g_szFddSizeOr: ; db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL271 ; db 35h, 0ach, 22h, 20h, 6fh, 72h, 20h, 33h, 0abh, 22h, 20h, 44h, 44h, 00h ; uncompressed272 db 2fh, 21h, 26h, 20h, 75h, 0f8h, 2dh, 22h, 26h, 20h, 4ah, 8ah ; compressed273 274 g_szFddSize: ; db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB275 ; db 25h, 73h, 22h, 2ch, 20h, 25h, 75h, 20h, 6bh, 69h, 42h, 00h ; uncompressed276 db 3eh, 26h, 27h, 20h, 37h, 20h, 71h, 6fh, 88h ; compressed277 278 g_szFddThreeHalf: ; db "3",ONE_HALF,NULL279 ; db 33h, 0abh, 00h ; uncompressed280 db 2dh, 02h ; compressed281 282 g_szFddEnd:283 g_szFddFiveQuarter: ; db "5",ONE_QUARTER,NULL284 ; db 35h, 0ach, 00h ; uncompressed285 db 2fh, 01h ; compressed286 287 288 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS289 %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)290 %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"291 %endif292 %endif293 295 294 296 ;------------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.