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


Ignore:
Timestamp:
Feb 28, 2012, 2:45:48 PM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Moved the bulk of the serial code to the assembly library, for inclusion in other utilities. Fixed a bug in int13h.asm when floppy support was not enabled that was preventing foreign drives from working properly.

File:
1 edited

Legend:

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

    r262 r277  
    88; Section containing code
    99SECTION .text
    10 
    11 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP
    12 ; To support an optimization in that code, these strings must start on the same 256 byte page,
    13 ; which is checked at assembly time below.
    14 ;
    15 g_szDetectStart:
    16 g_szDetectMaster:       db  "Master",NULL
    17 g_szDetectSlave:        db  "Slave ",NULL
    18 g_szDetectOuter:        db  "IDE %s at %s: ",NULL
    19 g_szDetectOuterSerial:  db  "Serial %s on %s: ",NULL       
    20 g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
    21 g_szDetectCOM:          db  "COM%c%s",NULL
    22 g_szDetectCOMAuto:      db  " Detect",NULL
    23 g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
    24 g_szDetectEnd:
    25 g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
    26 
    27 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    28     %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
    29         %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"
    30     %endif
    31 %endif
    32 
    33 ; Boot Menu menuitem strings
    34 ;
    35 ; The following strings are used by BootMenuPrint_* routines.
    36 ; To support optimizations in that code, these strings must start on the same 256 byte page,
    37 ; which is checked at assembly time below.
    38 ;
    39 g_szBootMenuPrintStart:
    40 g_szDriveNum:           db  "%x %s",NULL
    41 g_szDriveNumBOOTNFO:    db  "%x %z",NULL
    42 g_szFloppyDrv:          db  "Floppy Drive %c",NULL
    43 g_szBootMenuPrintEnd:
    44 g_szForeignHD:          db  "Foreign Hard Disk",NULL
    45 
    46 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    47     %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
    48         %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"
    49     %endif
    50 %endif
    5110
    5211; POST drive detection strings
     
    5817g_szNotFound:           db  "not found",LF,CR,NULL
    5918g_szReadError:          db  "Error %x!",LF,CR,NULL
    60 
    61 ; Boot menu bottom of screen strings
    62 g_szFDD:        db  "FDD     ",NULL
    63 g_szHDD:        db  "HDD     ",NULL
    64 g_szRomBoot:    db  "ROM Boot",NULL
    65 g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
    66 
    67 ; Boot Menu information strings
    68 g_szCapacity:           db  "Capacity : %s",NULL
    69 g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
    70 g_szInformation:        db  "%s",LF,CR
    71     db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    72     db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    7319
    7420g_szAddressingModes:
     
    15197    %endif
    15298%endif
     99
     100; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP
     101; To support an optimization in that code, these strings must start on the same 256 byte page,
     102; which is checked at assembly time below.
     103;
     104g_szDetectStart:
     105g_szDetectMaster:       db  "Master",NULL
     106g_szDetectSlave:        db  "Slave ",NULL
     107g_szDetectOuter:        db  "IDE %s at %s: ",NULL
     108;%%; %ifdef MODULE_SERIAL       ;%%; is stripped off after string compression, %ifdef won't compress properly
     109g_szDetectOuterSerial:  db  "Serial %s on %s: ",NULL
     110g_szDetectCOM:          db  "COM%c%s",NULL
     111g_szDetectCOMAuto:      db  " Detect",NULL
     112g_szDetectCOMSmall:     db  "/%u%u00",NULL                  ; IDE Master at COM1/9600:
     113g_szDetectCOMLarge:     db  "/%u.%uK",NULL                  ; IDE Master at COM1/19.2K:
     114;%%; %endif                     ;%%; is stripped off after string compression, %ifdef won't compress properly
     115g_szDetectEnd:
     116g_szDetectPort:         db  "%x",NULL                       ; IDE Master at 1F0h:
     117
     118%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     119    %if ((g_szDetectEnd-$$) & 0xff00) <> ((g_szDetectStart-$$) & 0xff00)
     120        %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"
     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"
     140    %endif
     141%endif
     142
     143; Boot menu bottom of screen strings
     144g_szFDD:        db  "FDD     ",NULL
     145g_szHDD:        db  "HDD     ",NULL
     146g_szRomBoot:    db  "ROM Boot",NULL
     147g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
     148
     149; Boot Menu information strings
     150g_szCapacity:           db  "Capacity : %s",NULL
     151g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
     152g_szInformation:        db  "%s",LF,CR
     153    db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     154    db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    153155
    154156;------------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.