Changeset 322 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Strings.asm


Ignore:
Timestamp:
Mar 11, 2012, 4:17:46 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Commented out the FS and GS segment registers from INTPACK since we never touch them anyway.
  • Minor changes to improve speed in the Int13h handler.
  • Changed Prepare_ByValidatingSectorsInALforOldInt13h so it really doesn't corrupt anything.
  • Changed the makefile so 'make strings' now works even if StringsCompressed.asm is missing or empty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r294 r322  
    88; Section containing code
    99SECTION .text
     10
     11; POST drive detection strings
     12g_szRomAt:      db  "%s @ %x",LF,CR,NULL
     13
     14; Boot loader strings
     15g_szTryToBoot:          db  "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
     16g_szBootSectorNotFound: db  "Boot sector "
     17g_szNotFound:           db  "not found",LF,CR,NULL
     18g_szReadError:          db  "Error %x!",LF,CR,NULL
     19
     20g_szAddressingModes:
     21g_szLCHS:       db  "L-CHS",NULL
     22g_szPCHS:       db  "P-CHS",NULL
     23g_szLBA28:      db  "LBA28",NULL
     24g_szLBA48:      db  "LBA48",NULL
     25g_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
    1043
    1144; Boot Menu Floppy Disk strings
     
    5386%endif
    5487
    55 ; Boot Menu menuitem strings
    56 ;
    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",NULL
    63 g_szDriveNumBOOTNFO:    db  "%x %z",NULL
    64 g_szFloppyDrv:          db  "Floppy Drive %c",NULL
    65 g_szBootMenuPrintEnd:
    66 g_szForeignHD:          db  "Foreign Hard Disk",NULL
    67 
    68 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    69     %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     %endif
    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 
    10788g_szBusTypeValues:
    10889g_szBusTypeValues_8Dual:        db      "D8 ",NULL
     
    138119    %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
    139120        %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;
     130g_szBootMenuPrintStart:
     131g_szDriveNum:           db  "%x %s",NULL
     132g_szDriveNumBOOTNFO:    db  "%x %z",NULL
     133g_szFloppyDrv:          db  "Floppy Drive %c",NULL
     134g_szBootMenuPrintEnd:
     135g_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"
    140140    %endif
    141141%endif
Note: See TracChangeset for help on using the changeset viewer.