Changeset 322 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.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/StringsCompressed.asm

    r292 r322  
    1717SECTION .text
    1818
     19; POST drive detection strings
     20g_szRomAt:      ; db    "%s @ %x",LF,CR,NULL
     21                ; db     25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
     22                  db     3eh,  20h, 0c6h,  39h,  1bh                                  ; compressed
     23
     24
     25; Boot loader strings
     26g_szTryToBoot:          ; db    "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
     27                        ; db     42h,  6fh,  6fh,  74h,  69h,  6eh,  67h,  20h,  66h,  72h,  6fh,  6dh,  20h,  25h,  73h,  20h,  25h,  78h, 0afh,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
     28                          db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  6ch,  78h,  75h, 0f3h,  3eh,  20h,  39h,  24h,  39h,  1bh                                              ; compressed
     29
     30g_szBootSectorNotFound: ; db    "Boot sector "
     31                        ; db     42h,  6fh,  6fh,  74h,  20h,  73h,  65h,  63h,  74h,  6fh,  72h,  20h    ; uncompressed
     32                          db     48h,  75h,  75h, 0fah,  79h,  6bh,  69h,  7ah,  75h, 0f8h                ; compressed
     33
     34g_szNotFound:           ; db    "not found",LF,CR,NULL
     35                        ; db     6eh,  6fh,  74h,  20h,  66h,  6fh,  75h,  6eh,  64h,  0ah,  0dh,  00h    ; uncompressed
     36                          db     74h,  75h, 0fah,  6ch,  75h,  7bh,  74h,  6ah,  1bh                      ; compressed
     37
     38g_szReadError:          ; db    "Error %x!",LF,CR,NULL
     39                        ; db     45h,  72h,  72h,  6fh,  72h,  20h,  25h,  78h,  21h,  0ah,  0dh,  00h    ; uncompressed
     40                          db     4bh,  78h,  78h,  75h, 0f8h,  39h,  25h,  1bh                            ; compressed
     41
     42
     43g_szAddressingModes:
     44g_szLCHS:       ; db    "L-CHS",NULL
     45                ; db     4ch,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
     46                  db     52h,  28h,  49h,  4eh,  99h          ; compressed
     47
     48g_szPCHS:       ; db    "P-CHS",NULL
     49                ; db     50h,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
     50                  db     56h,  28h,  49h,  4eh,  99h          ; compressed
     51
     52g_szLBA28:      ; db    "LBA28",NULL
     53                ; db     4ch,  42h,  41h,  32h,  38h,  00h    ; uncompressed
     54                  db     52h,  48h,  47h,  2ch,  11h          ; compressed
     55
     56g_szLBA48:      ; db    "LBA48",NULL
     57                ; db     4ch,  42h,  41h,  34h,  38h,  00h    ; uncompressed
     58                  db     52h,  48h,  47h,  2eh,  11h          ; compressed
     59
     60g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
     61;
     62; Ensure that addressing modes are correctly spaced in memory
     63;
     64%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     65%if g_szLCHS <> g_szAddressingModes
     66%error "g_szAddressingModes Displacement Incorrect 1"
     67%endif
     68%if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
     69%error "g_szAddressingModes Displacement Incorrect 2"
     70%endif
     71%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
     72%error "g_szAddressingModes Displacement Incorrect 3"
     73%endif
     74%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
     75%error "g_szAddressingModes Displacement Incorrect 4"
     76%endif
     77%endif
     78
    1979; Boot Menu Floppy Disk strings
    2080;
     
    52112%endif
    53113
    54 ; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInAXandIdeVarsInCSBP
     114; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
    55115; To support an optimization in that code, these strings must start on the same 256 byte page,
    56116; which is checked at assembly time below.
     
    99159%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    100160%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"
     161%error "g_szDetect* strings must start on the same 256 byte page, required by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP.  Please move this block up or down within strings.asm"
     162%endif
     163%endif
     164
     165g_szBusTypeValues:
     166g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
     167                                ; db         44h,  38h,  20h,  00h    ; uncompressed
     168                                  db         4ah,  31h,  00h          ; compressed
     169
     170g_szBusTypeValues_8Reversed:    ; db        "X8 ",NULL
     171                                ; db         58h,  38h,  20h,  00h    ; uncompressed
     172                                  db         5eh,  31h,  00h          ; compressed
     173
     174g_szBusTypeValues_8Single:      ; db        "S8 ",NULL
     175                                ; db         53h,  38h,  20h,  00h    ; uncompressed
     176                                  db         59h,  31h,  00h          ; compressed
     177
     178g_szBusTypeValues_16:           ; db        " 16",NULL
     179                                ; db         20h,  31h,  36h,  00h    ; uncompressed
     180                                  db         20h,  2bh,  10h          ; compressed
     181
     182g_szBusTypeValues_32:           ; db        " 32",NULL
     183                                ; db         20h,  33h,  32h,  00h    ; uncompressed
     184                                  db         20h,  2dh,  0ch          ; compressed
     185
     186g_szBusTypeValues_Serial:       ; db        "SER",NULL
     187                                ; db         53h,  45h,  52h,  00h    ; uncompressed
     188                                  db         59h,  4bh,  98h          ; compressed
     189
     190g_szBusTypeValues_8MemMapped:   ; db        "M8 ",NULL
     191                                ; db         4dh,  38h,  20h,  00h    ; uncompressed
     192                                  db         53h,  31h,  00h          ; compressed
     193
     194g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
     195;
     196; Ensure that bus type strings are correctly spaced in memory
     197;
     198%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     199%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
     200%error "g_szBusTypeValues Displacement Incorrect 1"
     201%endif
     202%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
     203%error "g_szBusTypeValues Displacement Incorrect 2"
     204%endif
     205%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
     206%error "g_szBusTypeValues Displacement Incorrect 3"
     207%endif
     208%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
     209%error "g_szBusTypeValues Displacement Incorrect 4"
     210%endif
     211%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
     212%error "g_szBusTypeValues Displacement Incorrect 5"
     213%endif
     214%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
     215%error "g_szBusTypeValues Displacement Incorrect 6"
     216%endif
     217%if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
     218%error "g_szBusTypeValues Displacement Incorrect 7"
    102219%endif
    103220%endif
     
    131248%if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
    132249%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 
    136 ; POST drive detection strings
    137 g_szRomAt:      ; db    "%s @ %x",LF,CR,NULL
    138                 ; db     25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
    139                   db     3eh,  20h, 0c6h,  39h,  1bh                                  ; compressed
    140 
    141 
    142 ; Boot loader strings
    143 g_szTryToBoot:          ; db    "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
    144                         ; db     42h,  6fh,  6fh,  74h,  69h,  6eh,  67h,  20h,  66h,  72h,  6fh,  6dh,  20h,  25h,  73h,  20h,  25h,  78h, 0afh,  25h,  78h,  0ah,  0dh,  00h    ; uncompressed
    145                           db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  6ch,  78h,  75h, 0f3h,  3eh,  20h,  39h,  24h,  39h,  1bh                                              ; compressed
    146 
    147 g_szBootSectorNotFound: ; db    "Boot sector "
    148                         ; db     42h,  6fh,  6fh,  74h,  20h,  73h,  65h,  63h,  74h,  6fh,  72h,  20h    ; uncompressed
    149                           db     48h,  75h,  75h, 0fah,  79h,  6bh,  69h,  7ah,  75h, 0f8h                ; compressed
    150 
    151 g_szNotFound:           ; db    "not found",LF,CR,NULL
    152                         ; db     6eh,  6fh,  74h,  20h,  66h,  6fh,  75h,  6eh,  64h,  0ah,  0dh,  00h    ; uncompressed
    153                           db     74h,  75h, 0fah,  6ch,  75h,  7bh,  74h,  6ah,  1bh                      ; compressed
    154 
    155 g_szReadError:          ; db    "Error %x!",LF,CR,NULL
    156                         ; db     45h,  72h,  72h,  6fh,  72h,  20h,  25h,  78h,  21h,  0ah,  0dh,  00h    ; uncompressed
    157                           db     4bh,  78h,  78h,  75h, 0f8h,  39h,  25h,  1bh                            ; compressed
    158 
    159 
    160 g_szAddressingModes:
    161 g_szLCHS:       ; db    "L-CHS",NULL
    162                 ; db     4ch,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
    163                   db     52h,  28h,  49h,  4eh,  99h          ; compressed
    164 
    165 g_szPCHS:       ; db    "P-CHS",NULL
    166                 ; db     50h,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
    167                   db     56h,  28h,  49h,  4eh,  99h          ; compressed
    168 
    169 g_szLBA28:      ; db    "LBA28",NULL
    170                 ; db     4ch,  42h,  41h,  32h,  38h,  00h    ; uncompressed
    171                   db     52h,  48h,  47h,  2ch,  11h          ; compressed
    172 
    173 g_szLBA48:      ; db    "LBA48",NULL
    174                 ; db     4ch,  42h,  41h,  34h,  38h,  00h    ; uncompressed
    175                   db     52h,  48h,  47h,  2eh,  11h          ; compressed
    176 
    177 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
    178 ;
    179 ; Ensure that addressing modes are correctly spaced in memory
    180 ;
    181 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    182 %if g_szLCHS <> g_szAddressingModes
    183 %error "g_szAddressingModes Displacement Incorrect 1"
    184 %endif
    185 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
    186 %error "g_szAddressingModes Displacement Incorrect 2"
    187 %endif
    188 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
    189 %error "g_szAddressingModes Displacement Incorrect 3"
    190 %endif
    191 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
    192 %error "g_szAddressingModes Displacement Incorrect 4"
    193 %endif
    194 %endif
    195 
    196 g_szBusTypeValues:
    197 g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
    198                                 ; db         44h,  38h,  20h,  00h    ; uncompressed
    199                                   db         4ah,  31h,  00h          ; compressed
    200 
    201 g_szBusTypeValues_8Reversed:    ; db        "X8 ",NULL
    202                                 ; db         58h,  38h,  20h,  00h    ; uncompressed
    203                                   db         5eh,  31h,  00h          ; compressed
    204 
    205 g_szBusTypeValues_8Single:      ; db        "S8 ",NULL
    206                                 ; db         53h,  38h,  20h,  00h    ; uncompressed
    207                                   db         59h,  31h,  00h          ; compressed
    208 
    209 g_szBusTypeValues_16:           ; db        " 16",NULL
    210                                 ; db         20h,  31h,  36h,  00h    ; uncompressed
    211                                   db         20h,  2bh,  10h          ; compressed
    212 
    213 g_szBusTypeValues_32:           ; db        " 32",NULL
    214                                 ; db         20h,  33h,  32h,  00h    ; uncompressed
    215                                   db         20h,  2dh,  0ch          ; compressed
    216 
    217 g_szBusTypeValues_Serial:       ; db        "SER",NULL
    218                                 ; db         53h,  45h,  52h,  00h    ; uncompressed
    219                                   db         59h,  4bh,  98h          ; compressed
    220 
    221 g_szBusTypeValues_8MemMapped:   ; db        "M8 ",NULL
    222                                 ; db         4dh,  38h,  20h,  00h    ; uncompressed
    223                                   db         53h,  31h,  00h          ; compressed
    224 
    225 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
    226 ;
    227 ; Ensure that bus type strings are correctly spaced in memory
    228 ;
    229 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    230 %if g_szBusTypeValues_8Dual <> g_szBusTypeValues
    231 %error "g_szBusTypeValues Displacement Incorrect 1"
    232 %endif
    233 %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
    234 %error "g_szBusTypeValues Displacement Incorrect 2"
    235 %endif
    236 %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
    237 %error "g_szBusTypeValues Displacement Incorrect 3"
    238 %endif
    239 %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
    240 %error "g_szBusTypeValues Displacement Incorrect 4"
    241 %endif
    242 %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
    243 %error "g_szBusTypeValues Displacement Incorrect 5"
    244 %endif
    245 %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
    246 %error "g_szBusTypeValues Displacement Incorrect 6"
    247 %endif
    248 %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
    249 %error "g_szBusTypeValues Displacement Incorrect 7"
    250250%endif
    251251%endif
Note: See TracChangeset for help on using the changeset viewer.