Changeset 322 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Strings.asm
- Timestamp:
- Mar 11, 2012, 4:17:46 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Strings.asm
r294 r322 8 8 ; Section containing code 9 9 SECTION .text 10 11 ; POST drive detection strings 12 g_szRomAt: db "%s @ %x",LF,CR,NULL 13 14 ; Boot loader strings 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 19 20 g_szAddressingModes: 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 25 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes) 26 ; 27 ; Ensure that addressing modes are correctly spaced in memory 28 ; 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 42 %endif 10 43 11 44 ; Boot Menu Floppy Disk strings … … 53 86 %endif 54 87 55 ; Boot Menu menuitem strings56 ;57 ; The following strings are used by BootMenuPrint_* routines.58 ; To support optimizations in that code, these strings must start on the same 256 byte page,59 ; which is checked at assembly time below.60 ;61 g_szBootMenuPrintStart:62 g_szDriveNum: db "%x %s",NULL63 g_szDriveNumBOOTNFO: db "%x %z",NULL64 g_szFloppyDrv: db "Floppy Drive %c",NULL65 g_szBootMenuPrintEnd:66 g_szForeignHD: db "Foreign Hard Disk",NULL67 68 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS69 %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)70 %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"71 %endif72 %endif73 74 ; POST drive detection strings75 g_szRomAt: db "%s @ %x",LF,CR,NULL76 77 ; Boot loader strings78 g_szTryToBoot: db "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL79 g_szBootSectorNotFound: db "Boot sector "80 g_szNotFound: db "not found",LF,CR,NULL81 g_szReadError: db "Error %x!",LF,CR,NULL82 83 g_szAddressingModes:84 g_szLCHS: db "L-CHS",NULL85 g_szPCHS: db "P-CHS",NULL86 g_szLBA28: db "LBA28",NULL87 g_szLBA48: db "LBA48",NULL88 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)89 ;90 ; Ensure that addressing modes are correctly spaced in memory91 ;92 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS93 %if g_szLCHS <> g_szAddressingModes94 %error "g_szAddressingModes Displacement Incorrect 1"95 %endif96 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement97 %error "g_szAddressingModes Displacement Incorrect 2"98 %endif99 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement100 %error "g_szAddressingModes Displacement Incorrect 3"101 %endif102 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement103 %error "g_szAddressingModes Displacement Incorrect 4"104 %endif105 %endif106 107 88 g_szBusTypeValues: 108 89 g_szBusTypeValues_8Dual: db "D8 ",NULL … … 138 119 %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement 139 120 %error "g_szBusTypeValues Displacement Incorrect 7" 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 140 %endif 141 141 %endif
Note:
See TracChangeset
for help on using the changeset viewer.