Changeset 332 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Mar 12, 2012, 1:33:24 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Fixed a bug in the new BIOS Drive Information Tool.
  • Very small changes to improve speed (I hope).
  • Changed AH48h_GetExtendedDriveParameters.asm to allow AT builds with USE_386 (won't affect any other builds).
  • Verified that most define combinations can be built and changed Strings.asm accordingly. "Most" meaning with or without any combination of EBIOS and/or Serial code defines.
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeError.asm

    r324 r332  
    2323
    2424%ifndef ASSEMBLE_SHARED_IDE_DEVICE_FUNCTIONS    ; JR-IDE/ISA
    25     jmp     ContinueFromMemIdeError     ; What's this supposed to do? *FIXME*
     25    jmp     ContinueFromMemIdeError
    2626%else
    2727ContinueFromMemIdeError:
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeIO.asm

    r181 r332  
    66
    77;--------------------------------------------------------------------
     8; IdeIO_OutputALtoIdeControlBlockRegisterInDL
    89; IdeIO_OutputALtoIdeRegisterInDL
    9 ; IdeIO_OutputALtoIdeControlBlockRegisterInDL
    1010;   Parameters:
    1111;       AL:     Byte to output
    12 ;       DL:     IDE Register                (IdeIO_OutputALtoIdeRegisterInDL)
    13 ;               IDE Control Block Register  (IdeIO_OutputALtoIdeControlBlockRegisterInDL)
     12;       DL:     IDE Control Block Register  (IdeIO_OutputALtoIdeControlBlockRegisterInDL)
     13;               IDE Register                (IdeIO_OutputALtoIdeRegisterInDL)
    1414;       DS:DI:  Ptr to DPT (in RAMVARS segment)
    1515;   Returns:
     
    1919;--------------------------------------------------------------------
    2020ALIGN JUMP_ALIGN
     21IdeIO_OutputALtoIdeControlBlockRegisterInDL:
     22    mov     bl, IDEVARS.wPortCtrl
     23    SKIP2B  f   ; cmp ax, <next instruction>
     24    ; Fall to IdeIO_OutputALtoIdeRegisterInDL
     25
    2126IdeIO_OutputALtoIdeRegisterInDL:
    2227    mov     bl, IDEVARS.wPort
    23     SKIP2B  f   ; cmp ax, <next instruction>
    24     ; Fall to IdeIO_OutputALtoIdeControlBlockRegisterInDL
    25 
    26 IdeIO_OutputALtoIdeControlBlockRegisterInDL:
    27     mov     bl, IDEVARS.wPortCtrl
    2828    call    GetPortToDXandTranslateA0andA3ifNecessary
    2929    out     dx, al
     
    6363GetPortToDXandTranslateA0andA3ifNecessary:
    6464    xor     bh, bh
     65    add     bl, [di+DPT.bIdevarsOffset]     ; CS:BX now points port address
    6566    xor     dh, dh                          ; DX now has IDE register offset
    66     add     bl, [di+DPT.bIdevarsOffset]     ; CS:BX now points port address
    6767    add     dx, [cs:bx]
    6868    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_REVERSED_A0_AND_A3
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH4h_HVerify.asm

    r294 r332  
    2727ALIGN JUMP_ALIGN
    2828AH4h_HandlerForVerifyDiskSectors:
    29     call    Prepare_ByValidatingSectorsInALforOldInt13h
    3029    mov     ah, COMMAND_VERIFY_SECTORS
     30    call    Prepare_ByValidatingSectorsInALforOldInt13h ; Preserves AX
    3131    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRDY)
    3232%ifdef USE_186
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm

    r294 r332  
    2525;--------------------------------------------------------------------
    2626AH8h_HandlerForReadDiskDriveParameters:
    27     test    di,di
    28     jnz     SHORT .OurDrive
     27    test    di, di
     28    jz      SHORT .NotOurDrive
    2929
    30     call    Int13h_CallPreviousInt13hHandler
    31     jnc     SHORT .MidGame
    32     jmp     Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    33 
    34 .OurDrive:
    3530    call    AH8h_GetDriveParameters
    3631
     
    6762    jmp     Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    6863%endif
     64
     65.NotOurDrive:
     66    call    Int13h_CallPreviousInt13hHandler
     67    jnc     SHORT .MidGame
     68    jmp     Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    6969
    7070
     
    114114
    115115%ifdef MODULE_SERIAL_FLOPPY
    116     mov     bl,[di+DPT.bFlagsHigh]
     116    mov     bl, [di+DPT.bFlagsHigh]
    117117%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS             ; not sure why this is needed for preprocessor-only
    118     eSHR_IM bl,FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION
     118    eSHR_IM bl, FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION
    119119%endif
    120120%endif
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/EBIOS/AH48h_GetExtendedDriveParameters.asm

    r324 r332  
    3131    mov     cx, MINIMUM_EDRIVEINFO_SIZE
    3232    cmp     [si+EDRIVE_INFO.wSize], cx
    33     jb      SHORT Prepare_ReturnFromInt13hWithInvalidFunctionError
     33    jb      Prepare_ReturnFromInt13hWithInvalidFunctionError
    3434    je      SHORT .SkipEddConfigurationParameters
    3535
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r322 r332  
    6161    %endif
    6262%endif
     63
     64g_szBusTypeValues:
     65g_szBusTypeValues_8Dual:        db      "D8 ",NULL
     66g_szBusTypeValues_8Reversed:    db      "X8 ",NULL
     67g_szBusTypeValues_8Single:      db      "S8 ",NULL
     68g_szBusTypeValues_16:           db      " 16",NULL
     69g_szBusTypeValues_32:           db      " 32",NULL
     70g_szBusTypeValues_Serial:       db      "SER",NULL
     71g_szBusTypeValues_8MemMapped:   db      "M8 ",NULL
     72g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
     73;
     74; Ensure that bus type strings are correctly spaced in memory
     75;
     76%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     77    %if g_szBusTypeValues_8Dual <> g_szBusTypeValues
     78        %error "g_szBusTypeValues Displacement Incorrect 1"
     79    %endif
     80    %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
     81        %error "g_szBusTypeValues Displacement Incorrect 2"
     82    %endif
     83    %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
     84        %error "g_szBusTypeValues Displacement Incorrect 3"
     85    %endif
     86    %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
     87        %error "g_szBusTypeValues Displacement Incorrect 4"
     88    %endif
     89    %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
     90        %error "g_szBusTypeValues Displacement Incorrect 5"
     91    %endif
     92    %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
     93        %error "g_szBusTypeValues Displacement Incorrect 6"
     94    %endif
     95    %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
     96        %error "g_szBusTypeValues Displacement Incorrect 7"
     97    %endif
     98%endif
     99
     100g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
     101
     102g_szDashForZero:        db      "- ",NULL
     103
     104; Boot Menu menuitem strings
     105;
     106; The following strings are used by BootMenuPrint_* routines.
     107; To support optimizations in that code, these strings must start on the same 256 byte page,
     108; which is checked at assembly time below.
     109;
     110g_szBootMenuPrintStart:
     111g_szDriveNum:           db  "%x %s",NULL
     112g_szDriveNumBOOTNFO:    db  "%x %z",NULL
     113g_szFloppyDrv:          db  "Floppy Drive %c",NULL
     114g_szBootMenuPrintEnd:
     115g_szForeignHD:          db  "Foreign Hard Disk",NULL
     116
     117%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     118    %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
     119        %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"
     120    %endif
     121%endif
     122
     123; Boot menu bottom of screen strings
     124g_szFDD:        db  "FDD     ",NULL
     125g_szHDD:        db  "HDD     ",NULL
     126g_szRomBoot:    db  "ROM Boot",NULL
     127g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
     128
     129; Boot Menu information strings
     130g_szCapacity:           db  "Capacity : %s",NULL
     131g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
     132g_szInformation:        db  "%s",LF,CR
     133    db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     134    db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    63135
    64136; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
     
    85157    %endif
    86158%endif
    87 
    88 g_szBusTypeValues:
    89 g_szBusTypeValues_8Dual:        db      "D8 ",NULL
    90 g_szBusTypeValues_8Reversed:    db      "X8 ",NULL
    91 g_szBusTypeValues_8Single:      db      "S8 ",NULL
    92 g_szBusTypeValues_16:           db      " 16",NULL
    93 g_szBusTypeValues_32:           db      " 32",NULL
    94 g_szBusTypeValues_Serial:       db      "SER",NULL
    95 g_szBusTypeValues_8MemMapped:   db      "M8 ",NULL
    96 g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
    97 ;
    98 ; Ensure that bus type strings are correctly spaced in memory
    99 ;
    100 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    101     %if g_szBusTypeValues_8Dual <> g_szBusTypeValues
    102         %error "g_szBusTypeValues Displacement Incorrect 1"
    103     %endif
    104     %if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
    105         %error "g_szBusTypeValues Displacement Incorrect 2"
    106     %endif
    107     %if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
    108         %error "g_szBusTypeValues Displacement Incorrect 3"
    109     %endif
    110     %if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
    111         %error "g_szBusTypeValues Displacement Incorrect 4"
    112     %endif
    113     %if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
    114         %error "g_szBusTypeValues Displacement Incorrect 5"
    115     %endif
    116     %if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
    117         %error "g_szBusTypeValues Displacement Incorrect 6"
    118     %endif
    119     %if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
    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     %endif
    141 %endif
    142 
    143 g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    144 
    145 g_szDashForZero:        db      "- ",NULL
    146 
    147 ; Boot menu bottom of screen strings
    148 g_szFDD:        db  "FDD     ",NULL
    149 g_szHDD:        db  "HDD     ",NULL
    150 g_szRomBoot:    db  "ROM Boot",NULL
    151 g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
    152 
    153 ; Boot Menu information strings
    154 g_szCapacity:           db  "Capacity : %s",NULL
    155 g_szCapacityNum:        db  "%5-u.%u %ciB",NULL
    156 g_szInformation:        db  "%s",LF,CR
    157     db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    158     db     "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    159159
    160160;------------------------------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm

    r322 r332  
    112112%endif
    113113
     114g_szBusTypeValues:
     115g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
     116                                ; db         44h,  38h,  20h,  00h    ; uncompressed
     117                                  db         4ah,  31h,  00h          ; compressed
     118
     119g_szBusTypeValues_8Reversed:    ; db        "X8 ",NULL
     120                                ; db         58h,  38h,  20h,  00h    ; uncompressed
     121                                  db         5eh,  31h,  00h          ; compressed
     122
     123g_szBusTypeValues_8Single:      ; db        "S8 ",NULL
     124                                ; db         53h,  38h,  20h,  00h    ; uncompressed
     125                                  db         59h,  31h,  00h          ; compressed
     126
     127g_szBusTypeValues_16:           ; db        " 16",NULL
     128                                ; db         20h,  31h,  36h,  00h    ; uncompressed
     129                                  db         20h,  2bh,  10h          ; compressed
     130
     131g_szBusTypeValues_32:           ; db        " 32",NULL
     132                                ; db         20h,  33h,  32h,  00h    ; uncompressed
     133                                  db         20h,  2dh,  0ch          ; compressed
     134
     135g_szBusTypeValues_Serial:       ; db        "SER",NULL
     136                                ; db         53h,  45h,  52h,  00h    ; uncompressed
     137                                  db         59h,  4bh,  98h          ; compressed
     138
     139g_szBusTypeValues_8MemMapped:   ; db        "M8 ",NULL
     140                                ; db         4dh,  38h,  20h,  00h    ; uncompressed
     141                                  db         53h,  31h,  00h          ; compressed
     142
     143g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
     144;
     145; Ensure that bus type strings are correctly spaced in memory
     146;
     147%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     148%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
     149%error "g_szBusTypeValues Displacement Incorrect 1"
     150%endif
     151%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
     152%error "g_szBusTypeValues Displacement Incorrect 2"
     153%endif
     154%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
     155%error "g_szBusTypeValues Displacement Incorrect 3"
     156%endif
     157%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement
     158%error "g_szBusTypeValues Displacement Incorrect 4"
     159%endif
     160%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
     161%error "g_szBusTypeValues Displacement Incorrect 5"
     162%endif
     163%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
     164%error "g_szBusTypeValues Displacement Incorrect 6"
     165%endif
     166%if g_szBusTypeValues_8MemMapped <> g_szBusTypeValues_Serial + g_szBusTypeValues_Displacement
     167%error "g_szBusTypeValues Displacement Incorrect 7"
     168%endif
     169%endif
     170
     171g_szSelectionTimeout:   ; db        DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
     172                        ; db        0c8h, 0b5h,  25h,  41h,  53h,  65h,  6ch,  65h,  63h,  74h,  69h,  6fh,  6eh,  20h,  69h,  6eh,  20h,  25h,  32h,  2dh,  75h,  20h,  73h,  00h    ; uncompressed
     173                          db         32h,  33h,  3dh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ch,  20h, 0b9h                                              ; compressed
     174
     175
     176g_szDashForZero:        ; db        "- ",NULL
     177                        ; db         2dh,  20h,  00h    ; uncompressed
     178                          db         28h,  00h          ; compressed
     179
     180
     181; Boot Menu menuitem strings
     182;
     183; The following strings are used by BootMenuPrint_* routines.
     184; To support optimizations in that code, these strings must start on the same 256 byte page,
     185; which is checked at assembly time below.
     186;
     187g_szBootMenuPrintStart:
     188g_szDriveNum:           ; db    "%x %s",NULL
     189                        ; db     25h,  78h,  20h,  25h,  73h,  00h    ; uncompressed
     190                          db     39h,  20h,  1eh                      ; compressed
     191
     192g_szDriveNumBOOTNFO:    ; db    "%x %z",NULL
     193                        ; db     25h,  78h,  20h,  25h,  7ah,  00h    ; uncompressed
     194                          db     39h,  20h,  1fh                      ; compressed
     195
     196g_szFloppyDrv:          ; db    "Floppy Drive %c",NULL
     197                        ; db     46h,  6ch,  6fh,  70h,  70h,  79h,  20h,  44h,  72h,  69h,  76h,  65h,  20h,  25h,  63h,  00h    ; uncompressed
     198                          db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0ebh,  15h                            ; compressed
     199
     200g_szBootMenuPrintEnd:
     201g_szForeignHD:          ; db    "Foreign Hard Disk",NULL
     202                        ; db     46h,  6fh,  72h,  65h,  69h,  67h,  6eh,  20h,  48h,  61h,  72h,  64h,  20h,  44h,  69h,  73h,  6bh,  00h    ; uncompressed
     203                          db     4ch,  75h,  78h,  6bh,  6fh,  6dh, 0f4h,  4eh,  67h,  78h, 0eah,  4ah,  6fh,  79h, 0b1h                      ; compressed
     204
     205
     206%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     207%if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
     208%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"
     209%endif
     210%endif
     211
     212; Boot menu bottom of screen strings
     213g_szFDD:        ; db    "FDD     ",NULL
     214                ; db     46h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
     215                  db     4ch,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
     216
     217g_szHDD:        ; db    "HDD     ",NULL
     218                ; db     48h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
     219                  db     4eh,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
     220
     221g_szRomBoot:    ; db    "ROM Boot",NULL
     222                ; db     52h,  4fh,  4dh,  20h,  42h,  6fh,  6fh,  74h,  00h    ; uncompressed
     223                  db     58h,  55h, 0d3h,  48h,  75h,  75h, 0bah                ; compressed
     224
     225g_szHotkey:     ; db    "%A%c%c%A%s%A ",NULL
     226                ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
     227                  db     3dh,  35h,  35h,  3dh,  3eh,  3dh,  00h                                              ; compressed
     228
     229
     230; Boot Menu information strings
     231g_szCapacity:           ; db    "Capacity : %s",NULL
     232                        ; db     43h,  61h,  70h,  61h,  63h,  69h,  74h,  79h,  20h,  3ah,  20h,  25h,  73h,  00h    ; uncompressed
     233                          db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh, 0c0h,  1eh                            ; compressed
     234
     235g_szCapacityNum:        ; db    "%5-u.%u %ciB",NULL
     236                        ; db     25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  00h    ; uncompressed
     237                          db     38h,  29h,  37h,  20h,  35h,  6fh,  88h                                        ; compressed
     238
     239g_szInformation:        ; db    "%s",LF,CR
     240                        ; db     25h,  73h,  0ah,  0dh    ; uncompressed
     241                          db     3eh,  3bh                ; compressed
     242
     243    ; db    "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     244    ; db     41h,  64h,  64h,  72h,  2eh, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh    ; uncompressed
     245      db     47h,  6ah,  6ah,  78h,  29h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  3bh          ; compressed
     246
     247    ; db       "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
     248    ; db        25h,  73h, 0b3h,  25h,  35h,  2dh,  75h, 0b3h,  25h,  73h, 0b3h,  20h,  25h,  32h,  2dh,  49h, 0b3h,  25h,  35h,  2dh,  78h,  00h    ; uncompressed
     249      db        3eh,  23h,  38h,  23h,  3eh,  23h,  20h,  36h,  23h,  1ah                                                                            ; compressed
     250
     251
    114252; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
    115253; To support an optimization in that code, these strings must start on the same 256 byte page,
     
    162300%endif
    163301%endif
    164 
    165 g_szBusTypeValues:
    166 g_szBusTypeValues_8Dual:        ; db        "D8 ",NULL
    167                                 ; db         44h,  38h,  20h,  00h    ; uncompressed
    168                                   db         4ah,  31h,  00h          ; compressed
    169 
    170 g_szBusTypeValues_8Reversed:    ; db        "X8 ",NULL
    171                                 ; db         58h,  38h,  20h,  00h    ; uncompressed
    172                                   db         5eh,  31h,  00h          ; compressed
    173 
    174 g_szBusTypeValues_8Single:      ; db        "S8 ",NULL
    175                                 ; db         53h,  38h,  20h,  00h    ; uncompressed
    176                                   db         59h,  31h,  00h          ; compressed
    177 
    178 g_szBusTypeValues_16:           ; db        " 16",NULL
    179                                 ; db         20h,  31h,  36h,  00h    ; uncompressed
    180                                   db         20h,  2bh,  10h          ; compressed
    181 
    182 g_szBusTypeValues_32:           ; db        " 32",NULL
    183                                 ; db         20h,  33h,  32h,  00h    ; uncompressed
    184                                   db         20h,  2dh,  0ch          ; compressed
    185 
    186 g_szBusTypeValues_Serial:       ; db        "SER",NULL
    187                                 ; db         53h,  45h,  52h,  00h    ; uncompressed
    188                                   db         59h,  4bh,  98h          ; compressed
    189 
    190 g_szBusTypeValues_8MemMapped:   ; db        "M8 ",NULL
    191                                 ; db         4dh,  38h,  20h,  00h    ; uncompressed
    192                                   db         53h,  31h,  00h          ; compressed
    193 
    194 g_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"
    219 %endif
    220 %endif
    221 
    222 ; Boot Menu menuitem strings
    223 ;
    224 ; The following strings are used by BootMenuPrint_* routines.
    225 ; To support optimizations in that code, these strings must start on the same 256 byte page,
    226 ; which is checked at assembly time below.
    227 ;
    228 g_szBootMenuPrintStart:
    229 g_szDriveNum:           ; db    "%x %s",NULL
    230                         ; db     25h,  78h,  20h,  25h,  73h,  00h    ; uncompressed
    231                           db     39h,  20h,  1eh                      ; compressed
    232 
    233 g_szDriveNumBOOTNFO:    ; db    "%x %z",NULL
    234                         ; db     25h,  78h,  20h,  25h,  7ah,  00h    ; uncompressed
    235                           db     39h,  20h,  1fh                      ; compressed
    236 
    237 g_szFloppyDrv:          ; db    "Floppy Drive %c",NULL
    238                         ; db     46h,  6ch,  6fh,  70h,  70h,  79h,  20h,  44h,  72h,  69h,  76h,  65h,  20h,  25h,  63h,  00h    ; uncompressed
    239                           db     4ch,  72h,  75h,  76h,  76h, 0ffh,  4ah,  78h,  6fh,  7ch, 0ebh,  15h                            ; compressed
    240 
    241 g_szBootMenuPrintEnd:
    242 g_szForeignHD:          ; db    "Foreign Hard Disk",NULL
    243                         ; db     46h,  6fh,  72h,  65h,  69h,  67h,  6eh,  20h,  48h,  61h,  72h,  64h,  20h,  44h,  69h,  73h,  6bh,  00h    ; uncompressed
    244                           db     4ch,  75h,  78h,  6bh,  6fh,  6dh, 0f4h,  4eh,  67h,  78h, 0eah,  4ah,  6fh,  79h, 0b1h                      ; compressed
    245 
    246 
    247 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    248 %if ((g_szBootMenuPrintStart-$$) & 0xff00) <> ((g_szBootMenuPrintEnd-$$) & 0xff00)
    249 %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"
    250 %endif
    251 %endif
    252 
    253 g_szSelectionTimeout:   ; db        DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    254                         ; db        0c8h, 0b5h,  25h,  41h,  53h,  65h,  6ch,  65h,  63h,  74h,  69h,  6fh,  6eh,  20h,  69h,  6eh,  20h,  25h,  32h,  2dh,  75h,  20h,  73h,  00h    ; uncompressed
    255                           db         32h,  33h,  3dh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ch,  20h, 0b9h                                              ; compressed
    256 
    257 
    258 g_szDashForZero:        ; db        "- ",NULL
    259                         ; db         2dh,  20h,  00h    ; uncompressed
    260                           db         28h,  00h          ; compressed
    261 
    262 
    263 ; Boot menu bottom of screen strings
    264 g_szFDD:        ; db    "FDD     ",NULL
    265                 ; db     46h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
    266                   db     4ch,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
    267 
    268 g_szHDD:        ; db    "HDD     ",NULL
    269                 ; db     48h,  44h,  44h,  20h,  20h,  20h,  20h,  20h,  00h    ; uncompressed
    270                   db     4eh,  4ah, 0cah,  20h,  20h,  20h,  00h                ; compressed
    271 
    272 g_szRomBoot:    ; db    "ROM Boot",NULL
    273                 ; db     52h,  4fh,  4dh,  20h,  42h,  6fh,  6fh,  74h,  00h    ; uncompressed
    274                   db     58h,  55h, 0d3h,  48h,  75h,  75h, 0bah                ; compressed
    275 
    276 g_szHotkey:     ; db    "%A%c%c%A%s%A ",NULL
    277                 ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
    278                   db     3dh,  35h,  35h,  3dh,  3eh,  3dh,  00h                                              ; compressed
    279 
    280 
    281 ; Boot Menu information strings
    282 g_szCapacity:           ; db    "Capacity : %s",NULL
    283                         ; db     43h,  61h,  70h,  61h,  63h,  69h,  74h,  79h,  20h,  3ah,  20h,  25h,  73h,  00h    ; uncompressed
    284                           db     49h,  67h,  76h,  67h,  69h,  6fh,  7ah, 0ffh, 0c0h,  1eh                            ; compressed
    285 
    286 g_szCapacityNum:        ; db    "%5-u.%u %ciB",NULL
    287                         ; db     25h,  35h,  2dh,  75h,  2eh,  25h,  75h,  20h,  25h,  63h,  69h,  42h,  00h    ; uncompressed
    288                           db     38h,  29h,  37h,  20h,  35h,  6fh,  88h                                        ; compressed
    289 
    290 g_szInformation:        ; db    "%s",LF,CR
    291                         ; db     25h,  73h,  0ah,  0dh    ; uncompressed
    292                           db     3eh,  3bh                ; compressed
    293 
    294     ; db    "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    295     ; db     41h,  64h,  64h,  72h,  2eh, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh    ; uncompressed
    296       db     47h,  6ah,  6ah,  78h,  29h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  3bh          ; compressed
    297 
    298     ; db       "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
    299     ; db        25h,  73h, 0b3h,  25h,  35h,  2dh,  75h, 0b3h,  25h,  73h, 0b3h,  20h,  25h,  32h,  2dh,  49h, 0b3h,  25h,  35h,  2dh,  78h,  00h    ; uncompressed
    300       db        3eh,  23h,  38h,  23h,  3eh,  23h,  20h,  36h,  23h,  1ah                                                                            ; compressed
    301 
    302302
    303303;------------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.