Changeset 292 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS
- Timestamp:
- Mar 3, 2012, 6:53:28 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm
r277 r292 4 4 ; Section containing code 5 5 SECTION .text 6 7 %define SERIALSERVER_AH_ALREADY_HAS_COMMAND_BYTE 8 %define SERIALSERVER_NO_ZERO_SECTOR_COUNTS 6 9 7 10 ;-------------------------------------------------------------------- … … 43 46 .readOrWrite: 44 47 mov [bp+IDEPACK.bFeatures],ah ; store protocol command 45 48 46 49 mov dx, [di+DPT_SERIAL.wSerialPortAndBaud] 47 50 48 jmp SerialServer_SendReceive 51 ALIGN JUMP_ALIGN 52 SerialCommand_FallThroughToSerialServer_SendReceive: 49 53 54 %include "SerialServer.asm" 55 56 %if SerialCommand_FallThroughToSerialServer_SendReceive <> SerialServer_SendReceive 57 %error "SerialServer_SendReceive must be the first routine at the top of SerialServer.asm in the Assembly_Library" 58 %endif 59 60 ALIGN JUMP_ALIGN 61 SerialCommand_ReturnError: 62 stc 63 ret 50 64 51 65 ;-------------------------------------------------------------------- … … 133 147 134 148 test ax,ax ; Take care of the case that is different between master and slave. 135 jz .error149 jz SerialCommand_ReturnError 136 150 137 151 ; fall-through … … 142 156 xchg dx, ax ; move ax to dx (move previously found serial drive to dx, could be zero) 143 157 144 .identifyDeviceInDX: 145 jmp SerialServerScan_ScanForServer 158 .identifyDeviceInDX: 146 159 147 .error: 148 stc 149 ret 160 ALIGN JUMP_ALIGN 161 SerialCommand_FallThroughToSerialServerScan_ScanForServer: 162 163 %include "SerialServerScan.asm" 164 165 %if SerialCommand_FallThroughToSerialServerScan_ScanForServer <> SerialServerScan_ScanForServer 166 %error "SerialServerScan_ScanForServer must be the first routine at the top of SerialServerScan.asm in the Assembly_Library" 167 %endif 168 169 -
trunk/XTIDE_Universal_BIOS/Src/Main.asm
r291 r292 17 17 %define MENUEVENT_INLINE_OFFSETS ; Only one menu required, save space and inline offsets 18 18 19 %ifdef MODULE_SERIAL20 %define INCLUDE_SERIALSERVER_LIBRARY21 %endif22 23 19 ; Included .inc files 24 20 %include "AssemblyLibrary.inc" ; Assembly Library. Must be included first! -
trunk/XTIDE_Universal_BIOS/Src/Strings.asm
r285 r292 8 8 ; Section containing code 9 9 SECTION .text 10 11 ; POST drive detection strings12 g_szRomAt: db "%s @ %x",LF,CR,NULL13 14 ; Boot loader strings15 g_szTryToBoot: db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL16 g_szBootSectorNotFound: db "Boot sector "17 g_szNotFound: db "not found",LF,CR,NULL18 g_szReadError: db "Error %x!",LF,CR,NULL19 20 g_szAddressingModes:21 g_szLCHS: db "L-CHS",NULL22 g_szPCHS: db "P-CHS",NULL23 g_szLBA28: db "LBA28",NULL24 g_szLBA48: db "LBA48",NULL25 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)26 ;27 ; Ensure that addressing modes are correctly spaced in memory28 ;29 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS30 %if g_szLCHS <> g_szAddressingModes31 %error "g_szAddressingModes Displacement Incorrect 1"32 %endif33 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement34 %error "g_szAddressingModes Displacement Incorrect 2"35 %endif36 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement37 %error "g_szAddressingModes Displacement Incorrect 3"38 %endif39 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement40 %error "g_szAddressingModes Displacement Incorrect 4"41 %endif42 %endif43 44 g_szBusTypeValues:45 g_szBusTypeValues_8Dual: db "D8 ",NULL46 g_szBusTypeValues_8Reversed: db "X8 ",NULL47 g_szBusTypeValues_8Single: db "S8 ",NULL48 g_szBusTypeValues_16: db " 16",NULL49 g_szBusTypeValues_32: db " 32",NULL50 g_szBusTypeValues_Serial: db "SER",NULL51 g_szBusTypeValues_8MemMapped: db "M8 ",NULL52 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)53 ;54 ; Ensure that bus type strings are correctly spaced in memory55 ;56 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS57 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues58 %error "g_szBusTypeValues Displacement Incorrect 1"59 %endif60 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement61 %error "g_szBusTypeValues Displacement Incorrect 2"62 %endif63 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement64 %error "g_szBusTypeValues Displacement Incorrect 3"65 %endif66 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement67 %error "g_szBusTypeValues Displacement Incorrect 4"68 %endif69 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement70 %error "g_szBusTypeValues Displacement Incorrect 5"71 %endif72 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement73 %error "g_szBusTypeValues Displacement Incorrect 6"74 %endif75 %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement76 %error "g_szBusTypeValues Displacement Incorrect 7"77 %endif78 %endif79 80 g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL81 82 g_szDashForZero: db "- ",NULL83 10 84 11 ; Boot Menu Floppy Disk strings … … 144 71 %endif 145 72 %endif 73 74 ; POST drive detection strings 75 g_szRomAt: db "%s @ %x",LF,CR,NULL 76 77 ; Boot loader strings 78 g_szTryToBoot: db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL 79 g_szBootSectorNotFound: db "Boot sector " 80 g_szNotFound: db "not found",LF,CR,NULL 81 g_szReadError: db "Error %x!",LF,CR,NULL 82 83 g_szAddressingModes: 84 g_szLCHS: db "L-CHS",NULL 85 g_szPCHS: db "P-CHS",NULL 86 g_szLBA28: db "LBA28",NULL 87 g_szLBA48: db "LBA48",NULL 88 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes) 89 ; 90 ; Ensure that addressing modes are correctly spaced in memory 91 ; 92 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 93 %if g_szLCHS <> g_szAddressingModes 94 %error "g_szAddressingModes Displacement Incorrect 1" 95 %endif 96 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement 97 %error "g_szAddressingModes Displacement Incorrect 2" 98 %endif 99 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement 100 %error "g_szAddressingModes Displacement Incorrect 3" 101 %endif 102 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement 103 %error "g_szAddressingModes Displacement Incorrect 4" 104 %endif 105 %endif 106 107 g_szBusTypeValues: 108 g_szBusTypeValues_8Dual: db "D8 ",NULL 109 g_szBusTypeValues_8Reversed: db "X8 ",NULL 110 g_szBusTypeValues_8Single: db "S8 ",NULL 111 g_szBusTypeValues_16: db " 16",NULL 112 g_szBusTypeValues_32: db " 32",NULL 113 g_szBusTypeValues_Serial: db "SER",NULL 114 g_szBusTypeValues_8MemMapped: db "M8 ",NULL 115 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues) 116 ; 117 ; Ensure that bus type strings are correctly spaced in memory 118 ; 119 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 120 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues 121 %error "g_szBusTypeValues Displacement Incorrect 1" 122 %endif 123 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement 124 %error "g_szBusTypeValues Displacement Incorrect 2" 125 %endif 126 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement 127 %error "g_szBusTypeValues Displacement Incorrect 3" 128 %endif 129 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement 130 %error "g_szBusTypeValues Displacement Incorrect 4" 131 %endif 132 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement 133 %error "g_szBusTypeValues Displacement Incorrect 5" 134 %endif 135 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement 136 %error "g_szBusTypeValues Displacement Incorrect 6" 137 %endif 138 %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement 139 %error "g_szBusTypeValues Displacement Incorrect 7" 140 %endif 141 %endif 142 143 g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL 144 145 g_szDashForZero: db "- ",NULL 146 146 147 147 ; Boot menu bottom of screen strings -
trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm
r285 r292 17 17 SECTION .text 18 18 19 ; Boot Menu Floppy Disk strings 20 ; 21 ; The following strings are used by BootMenuPrint_RefreshInformation 22 ; To support optimizations in that code, these strings must start on the same 256 byte page, 23 ; which is checked at assembly time below. 24 ; 25 g_szFddStart: 26 g_szFddUnknown: ; db "Unknown",NULL 27 ; db 55h, 6eh, 6bh, 6eh, 6fh, 77h, 6eh, 00h ; uncompressed 28 db 5bh, 74h, 71h, 74h, 75h, 7dh, 0b4h ; compressed 29 30 g_szFddSizeOr: ; db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL 31 ; db 35h, 0ach, 22h, 20h, 6fh, 72h, 20h, 33h, 0abh, 22h, 20h, 44h, 44h, 00h ; uncompressed 32 db 2fh, 21h, 26h, 20h, 75h, 0f8h, 2dh, 22h, 26h, 20h, 4ah, 8ah ; compressed 33 34 g_szFddSize: ; db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB 35 ; db 25h, 73h, 22h, 2ch, 20h, 25h, 75h, 20h, 6bh, 69h, 42h, 00h ; uncompressed 36 db 3eh, 26h, 27h, 20h, 37h, 20h, 71h, 6fh, 88h ; compressed 37 38 g_szFddThreeHalf: ; db "3",ONE_HALF,NULL 39 ; db 33h, 0abh, 00h ; uncompressed 40 db 2dh, 02h ; compressed 41 42 g_szFddEnd: 43 g_szFddFiveQuarter: ; db "5",ONE_QUARTER,NULL 44 ; db 35h, 0ach, 00h ; uncompressed 45 db 2fh, 01h ; compressed 46 47 48 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 49 %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00) 50 %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" 51 %endif 52 %endif 53 54 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP 55 ; To support an optimization in that code, these strings must start on the same 256 byte page, 56 ; which is checked at assembly time below. 57 ; 58 g_szDetectStart: 59 g_szDetectMaster: ; db "Master",NULL 60 ; db 4dh, 61h, 73h, 74h, 65h, 72h, 00h ; uncompressed 61 db 53h, 67h, 79h, 7ah, 6bh, 0b8h ; compressed 62 63 g_szDetectSlave: ; db "Slave ",NULL 64 ; db 53h, 6ch, 61h, 76h, 65h, 20h, 00h ; uncompressed 65 db 59h, 72h, 67h, 7ch, 6bh, 00h ; compressed 66 67 g_szDetectOuter: ; db "IDE %s at %s: ",NULL 68 ; db 49h, 44h, 45h, 20h, 25h, 73h, 20h, 61h, 74h, 20h, 25h, 73h, 3ah, 20h, 00h ; uncompressed 69 db 4fh, 4ah, 0cbh, 3eh, 20h, 67h, 0fah, 3eh, 40h, 00h ; compressed 70 71 %ifdef MODULE_SERIAL ;%%; is stripped off after string compression, %ifdef won't compress properly 72 g_szDetectOuterSerial: ; db "Serial %s on %s: ",NULL 73 ; db 53h, 65h, 72h, 69h, 61h, 6ch, 20h, 25h, 73h, 20h, 6fh, 6eh, 20h, 25h, 73h, 3ah, 20h, 00h ; uncompressed 74 db 59h, 6bh, 78h, 6fh, 67h, 0f2h, 3eh, 20h, 75h, 0f4h, 3eh, 40h, 00h ; compressed 75 76 g_szDetectCOM: ; db "COM%c%s",NULL 77 ; db 43h, 4fh, 4dh, 25h, 63h, 25h, 73h, 00h ; uncompressed 78 db 49h, 55h, 53h, 35h, 1eh ; compressed 79 80 g_szDetectCOMAuto: ; db " Detect",NULL 81 ; db 20h, 44h, 65h, 74h, 65h, 63h, 74h, 00h ; uncompressed 82 db 20h, 4ah, 6bh, 7ah, 6bh, 69h, 0bah ; compressed 83 84 g_szDetectCOMSmall: ; db "/%u%u00",NULL ; IDE Master at COM1/9600: 85 ; db 2fh, 25h, 75h, 25h, 75h, 30h, 30h, 00h ; uncompressed 86 db 2ah, 37h, 37h, 34h, 14h ; compressed 87 88 g_szDetectCOMLarge: ; db "/%u.%uK",NULL ; IDE Master at COM1/19.2K: 89 ; db 2fh, 25h, 75h, 2eh, 25h, 75h, 4bh, 00h ; uncompressed 90 db 2ah, 37h, 29h, 37h, 91h ; compressed 91 92 %endif ;%%; is stripped off after string compression, %ifdef won't compress properly 93 g_szDetectEnd: 94 g_szDetectPort: ; db "%x",NULL ; IDE Master at 1F0h: 95 ; db 25h, 78h, 00h ; uncompressed 96 db 19h ; compressed 97 98 99 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 100 %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00) 101 %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" 102 %endif 103 %endif 104 105 ; Boot Menu menuitem strings 106 ; 107 ; The following strings are used by BootMenuPrint_* routines. 108 ; To support optimizations in that code, these strings must start on the same 256 byte page, 109 ; which is checked at assembly time below. 110 ; 111 g_szBootMenuPrintStart: 112 g_szDriveNum: ; db "%x %s",NULL 113 ; db 25h, 78h, 20h, 25h, 73h, 00h ; uncompressed 114 db 39h, 20h, 1eh ; compressed 115 116 g_szDriveNumBOOTNFO: ; db "%x %z",NULL 117 ; db 25h, 78h, 20h, 25h, 7ah, 00h ; uncompressed 118 db 39h, 20h, 1fh ; compressed 119 120 g_szFloppyDrv: ; db "Floppy Drive %c",NULL 121 ; db 46h, 6ch, 6fh, 70h, 70h, 79h, 20h, 44h, 72h, 69h, 76h, 65h, 20h, 25h, 63h, 00h ; uncompressed 122 db 4ch, 72h, 75h, 76h, 76h, 0ffh, 4ah, 78h, 6fh, 7ch, 0ebh, 15h ; compressed 123 124 g_szBootMenuPrintEnd: 125 g_szForeignHD: ; db "Foreign Hard Disk",NULL 126 ; db 46h, 6fh, 72h, 65h, 69h, 67h, 6eh, 20h, 48h, 61h, 72h, 64h, 20h, 44h, 69h, 73h, 6bh, 00h ; uncompressed 127 db 4ch, 75h, 78h, 6bh, 6fh, 6dh, 0f4h, 4eh, 67h, 78h, 0eah, 4ah, 6fh, 79h, 0b1h ; compressed 128 129 130 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 131 %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00) 132 %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" 133 %endif 134 %endif 135 19 136 ; POST drive detection strings 20 137 g_szRomAt: ; db "%s @ %x",LF,CR,NULL … … 143 260 db 28h, 00h ; compressed 144 261 145 146 ; Boot Menu Floppy Disk strings147 ;148 ; The following strings are used by BootMenuPrint_RefreshInformation149 ; To support optimizations in that code, these strings must start on the same 256 byte page,150 ; which is checked at assembly time below.151 ;152 g_szFddStart:153 g_szFddUnknown: ; db "Unknown",NULL154 ; db 55h, 6eh, 6bh, 6eh, 6fh, 77h, 6eh, 00h ; uncompressed155 db 5bh, 74h, 71h, 74h, 75h, 7dh, 0b4h ; compressed156 157 g_szFddSizeOr: ; db "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL158 ; db 35h, 0ach, 22h, 20h, 6fh, 72h, 20h, 33h, 0abh, 22h, 20h, 44h, 44h, 00h ; uncompressed159 db 2fh, 21h, 26h, 20h, 75h, 0f8h, 2dh, 22h, 26h, 20h, 4ah, 8ah ; compressed160 161 g_szFddSize: ; db "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB162 ; db 25h, 73h, 22h, 2ch, 20h, 25h, 75h, 20h, 6bh, 69h, 42h, 00h ; uncompressed163 db 3eh, 26h, 27h, 20h, 37h, 20h, 71h, 6fh, 88h ; compressed164 165 g_szFddThreeHalf: ; db "3",ONE_HALF,NULL166 ; db 33h, 0abh, 00h ; uncompressed167 db 2dh, 02h ; compressed168 169 g_szFddEnd:170 g_szFddFiveQuarter: ; db "5",ONE_QUARTER,NULL171 ; db 35h, 0ach, 00h ; uncompressed172 db 2fh, 01h ; compressed173 174 175 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS176 %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)177 %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"178 %endif179 %endif180 181 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP182 ; To support an optimization in that code, these strings must start on the same 256 byte page,183 ; which is checked at assembly time below.184 ;185 g_szDetectStart:186 g_szDetectMaster: ; db "Master",NULL187 ; db 4dh, 61h, 73h, 74h, 65h, 72h, 00h ; uncompressed188 db 53h, 67h, 79h, 7ah, 6bh, 0b8h ; compressed189 190 g_szDetectSlave: ; db "Slave ",NULL191 ; db 53h, 6ch, 61h, 76h, 65h, 20h, 00h ; uncompressed192 db 59h, 72h, 67h, 7ch, 6bh, 00h ; compressed193 194 g_szDetectOuter: ; db "IDE %s at %s: ",NULL195 ; db 49h, 44h, 45h, 20h, 25h, 73h, 20h, 61h, 74h, 20h, 25h, 73h, 3ah, 20h, 00h ; uncompressed196 db 4fh, 4ah, 0cbh, 3eh, 20h, 67h, 0fah, 3eh, 40h, 00h ; compressed197 198 ;%%; %ifdef MODULE_SERIAL ;%%; is stripped off after string compression, %ifdef won't compress properly199 g_szDetectOuterSerial: ; db "Serial %s on %s: ",NULL200 ; db 53h, 65h, 72h, 69h, 61h, 6ch, 20h, 25h, 73h, 20h, 6fh, 6eh, 20h, 25h, 73h, 3ah, 20h, 00h ; uncompressed201 db 59h, 6bh, 78h, 6fh, 67h, 0f2h, 3eh, 20h, 75h, 0f4h, 3eh, 40h, 00h ; compressed202 203 g_szDetectCOM: ; db "COM%c%s",NULL204 ; db 43h, 4fh, 4dh, 25h, 63h, 25h, 73h, 00h ; uncompressed205 db 49h, 55h, 53h, 35h, 1eh ; compressed206 207 g_szDetectCOMAuto: ; db " Detect",NULL208 ; db 20h, 44h, 65h, 74h, 65h, 63h, 74h, 00h ; uncompressed209 db 20h, 4ah, 6bh, 7ah, 6bh, 69h, 0bah ; compressed210 211 g_szDetectCOMSmall: ; db "/%u%u00",NULL ; IDE Master at COM1/9600:212 ; db 2fh, 25h, 75h, 25h, 75h, 30h, 30h, 00h ; uncompressed213 db 2ah, 37h, 37h, 34h, 14h ; compressed214 215 g_szDetectCOMLarge: ; db "/%u.%uK",NULL ; IDE Master at COM1/19.2K:216 ; db 2fh, 25h, 75h, 2eh, 25h, 75h, 4bh, 00h ; uncompressed217 db 2ah, 37h, 29h, 37h, 91h ; compressed218 219 ;%%; %endif ;%%; is stripped off after string compression, %ifdef won't compress properly220 g_szDetectEnd:221 g_szDetectPort: ; db "%x",NULL ; IDE Master at 1F0h:222 ; db 25h, 78h, 00h ; uncompressed223 db 19h ; compressed224 225 226 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS227 %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)228 %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"229 %endif230 %endif231 232 ; Boot Menu menuitem strings233 ;234 ; The following strings are used by BootMenuPrint_* routines.235 ; To support optimizations in that code, these strings must start on the same 256 byte page,236 ; which is checked at assembly time below.237 ;238 g_szBootMenuPrintStart:239 g_szDriveNum: ; db "%x %s",NULL240 ; db 25h, 78h, 20h, 25h, 73h, 00h ; uncompressed241 db 39h, 20h, 1eh ; compressed242 243 g_szDriveNumBOOTNFO: ; db "%x %z",NULL244 ; db 25h, 78h, 20h, 25h, 7ah, 00h ; uncompressed245 db 39h, 20h, 1fh ; compressed246 247 g_szFloppyDrv: ; db "Floppy Drive %c",NULL248 ; db 46h, 6ch, 6fh, 70h, 70h, 79h, 20h, 44h, 72h, 69h, 76h, 65h, 20h, 25h, 63h, 00h ; uncompressed249 db 4ch, 72h, 75h, 76h, 76h, 0ffh, 4ah, 78h, 6fh, 7ch, 0ebh, 15h ; compressed250 251 g_szBootMenuPrintEnd:252 g_szForeignHD: ; db "Foreign Hard Disk",NULL253 ; db 46h, 6fh, 72h, 65h, 69h, 67h, 6eh, 20h, 48h, 61h, 72h, 64h, 20h, 44h, 69h, 73h, 6bh, 00h ; uncompressed254 db 4ch, 75h, 78h, 6bh, 6fh, 6dh, 0f4h, 4eh, 67h, 78h, 0eah, 4ah, 6fh, 79h, 0b1h ; compressed255 256 257 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS258 %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)259 %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"260 %endif261 %endif262 262 263 263 ; Boot menu bottom of screen strings
Note:
See TracChangeset
for help on using the changeset viewer.