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


Ignore:
Timestamp:
Feb 24, 2012, 10:28:31 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

More optimizations. Merged RamVars_IsFunction/DriveHandledByThisBIOS in with FindDPT_ForDriveNumber, since they are often used together, making a returned NULL DI pointer indicate a foreign drive in many places. Revamped the iteration done in the handlers for int13/0dh and int13h/0h. Added serial specific print string during drive detection.

File:
1 edited

Legend:

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

    r252 r262  
    1717g_szDetectSlave:        db  "Slave ",NULL
    1818g_szDetectOuter:        db  "IDE %s at %s: ",NULL
     19g_szDetectOuterSerial:  db  "Serial %s on %s: ",NULL       
    1920g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
    2021g_szDetectCOM:          db  "COM%c%s",NULL
    21 g_szDetectCOMAuto:      db  " Auto",NULL
     22g_szDetectCOMAuto:      db  " Detect",NULL
    2223g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
    2324g_szDetectEnd:
     
    7071    db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    7172    db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    72 
    73 ; Boot Menu Floppy Disk strings
    74 ;
    75 ; The following strings are used by BootMenuPrint_RefreshInformation
    76 ; To support optimizations in that code, these strings must start on the same 256 byte page,
    77 ; which is checked at assembly time below.
    78 ;
    79 g_szFddStart:
    80 g_szFddUnknown: db  "Unknown",NULL
    81 g_szFddSizeOr:  db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
    82 g_szFddSize:    db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
    83 g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
    84 g_szFddEnd:
    85 g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL
    86 
    87 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    88     %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
    89         %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"
    90     %endif
    91 %endif
    9273
    9374g_szAddressingModes:
     
    151132g_szDashForZero:        db      "- ",NULL
    152133
     134; Boot Menu Floppy Disk strings
     135;
     136; The following strings are used by BootMenuPrint_RefreshInformation
     137; To support optimizations in that code, these strings must start on the same 256 byte page,
     138; which is checked at assembly time below.
     139;
     140g_szFddStart:
     141g_szFddUnknown: db  "Unknown",NULL
     142g_szFddSizeOr:  db  "5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
     143g_szFddSize:    db  "%s",QUOTATION_MARK,", %u kiB",NULL ; 3½", 1440 kiB
     144g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
     145g_szFddEnd:
     146g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL
     147
     148%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     149    %if ((g_szFddStart-$$) & 0xff00) <> ((g_szFddEnd-$$) & 0xff00)
     150        %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"
     151    %endif
     152%endif
    153153
    154154;------------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.