Changeset 489 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src


Ignore:
Timestamp:
Dec 13, 2012, 7:32:09 AM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Added version string to initial title banner, for cases where there is not a boot menu (just hotkeys, or no hotkeys). Also ifdef'd out some unused code.

Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
14 edited

Legend:

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

    r480 r489  
    217217ALIGN JUMP_ALIGN
    218218%ifdef USE_186
     219%ifdef MODULE_8BIT_IDE
    219220IdePioBlock_ReadFromXtideRev2:
     221%endif
    220222%endif
    221223IdePioBlock_ReadFrom16bitDataPort:
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeWait.asm

    r400 r489  
    9393;       AL, BX, CX, DX
    9494;--------------------------------------------------------------------
    95 IdePollBsyAndFlgInAH:
     95.IdePollBsyAndFlgInAH:
    9696    call    IdeIO_InputStatusRegisterToAL       ; Discard contents of first read
    9797
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm

    r480 r489  
    6666        mov     dx, [di+DPT_SERIAL.wSerialPortAndBaud]
    6767
     68; fall through to SerialCommand_FallThroughToSerialServer_SendReceive
     69       
    6870ALIGN JUMP_ALIGN
    69 SerialCommand_FallThroughToSerialServer_SendReceive:
     71SerialCommand_FallThroughToSerialServer_SendReceive:       
    7072
     73; fall through to SerialServer_SendReceive
     74       
    7175%include "SerialServer.asm"
    7276
     
    177181.identifyDeviceInDX:
    178182
     183; fall through to SerialCommand_FallThroughToSerialServerScan_ScanForServer
     184       
    179185ALIGN JUMP_ALIGN
    180 SerialCommand_FallThroughToSerialServerScan_ScanForServer:     
     186SerialCommand_FallThroughToSerialServerScan_ScanForServer:
     187
     188; fall through to SerialServerScan_ScanForServer
    181189       
    182190%include "SerialServerScan.asm"
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH0h_HReset.asm

    r435 r489  
    174174
    175175.done:
    176 NoForeignDrivesToReset:
     176.NoForeignDrivesToReset:
    177177    ret
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm

    r474 r489  
    5050
    5151;--------------------------------------------------------------------
    52 ; Prints BIOS name and segment address where it is found.
    53 ;
    54 ; DetectPrint_RomFoundAtSegment
    55 ;   Parameters:
    56 ;       Nothing
    57 ;   Returns:
    58 ;       Nothing
    59 ;   Corrupts registers:
    60 ;       AX, SI, DI
    61 ;--------------------------------------------------------------------
    62 DetectPrint_RomFoundAtSegment:
    63     push    bp
    64     mov     bp, sp
    65     mov     si, g_szRomAt
    66     ePUSH_T ax, ROMVARS.szTitle         ; Bios title string
    67     push    cs                          ; BIOS segment
    68 
    69     jmp     DetectPrint_FormatCSSIfromParamsInSSBP
    70 
    71 
    72 ;--------------------------------------------------------------------
    7352; DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
    7453;   Parameters:
     
    8261DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP:
    8362    mov     ax, [cs:bp+IDEVARS.wBasePort]   ; for IDE: AX=port address, DH=.bDevice
    84     ; Fall to DetectPrint_StartDetectWithAutodetectedBasePortInAX
     63    ; fall through to DetectPrint_StartDetectWithAutodetectedBasePortInAXandIdeVarsInCSBP
    8564
    8665;--------------------------------------------------------------------
     
    167146;       Nothing
    168147;   Corrupts registers:
    169 ;       AX, SI
     148;       AX, SI, DI
    170149;--------------------------------------------------------------------
    171150DetectPrint_DriveNameFromDrvDetectInfoInESBX:
    172     push    di
    173     push    bx
    174 
    175     lea     si, [bx+DRVDETECTINFO.szDrvName]
    176     mov     bx, es
    177     CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI
    178     CALL_DISPLAY_LIBRARY PrintNewlineCharacters
    179 
    180     pop     bx
    181     pop     di
    182     ret
     151    push    bp
     152    mov     bp,sp   
     153    lea     si,[bx+DRVDETECTINFO.szDrvName]
     154    push    si
     155    mov     si,g_szDriveName
     156    jmp     SHORT DetectPrint_FormatCSSIfromParamsInSSBP
     157
     158               
     159;--------------------------------------------------------------------
     160; Prints BIOS name and segment address where it is found.
     161;
     162; DetectPrint_RomFoundAtSegment
     163;   Parameters:
     164;       Nothing
     165;   Returns:
     166;       Nothing
     167;   Corrupts registers:
     168;       AX, SI, DI
     169;--------------------------------------------------------------------
     170DetectPrint_RomFoundAtSegment:
     171    mov     si, g_szRomAt
     172    mov     di, cs                      ; BIOS segment address, for later inclusion in the output, parameterized
     173                                        ; so that it can be a different value when using .BootMenuEntry
     174
     175.BootMenuEntry:
     176    push    bp
     177    mov     bp, sp
     178
     179%ifndef USE_186
     180    mov     ax, ROMVARS.szTitle
     181    push    ax
     182    push    di                          ; BIOS segment
     183    add     al, ROMVARS.szVersion - ROMVARS.szTitle
     184    push    ax
     185%else
     186    ; szTitle and szVersion have the high order byte of their addresses zero,
     187    ; so these push instructions are only 2 bytes
     188    ;
     189    push    ROMVARS.szTitle
     190    push    di                          ; BIOS segment
     191    push    ROMVARS.szVersion
     192%endif
     193
     194    jmp     SHORT DetectPrint_FormatCSSIfromParamsInSSBP
     195
    183196
    184197;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm

    r431 r489  
    4343%ifndef MODULE_HOTKEYS
    4444    cmp     BYTE [RAMVARS.bDrvCnt], 0
    45     je      SHORT Interrupts_Return
     45    je      SHORT Interrupts_InstallHandlerToVectorInALFromCSSI.Interrupts_Return
    4646%endif
    4747    ; Fall to .InitializeInt13hAnd40h
     
    172172    mov     [es:bx], si             ; Store offset
    173173    mov     [es:bx+2], cs           ; Store segment
    174 Interrupts_Return:
     174.Interrupts_Return:
    175175    ret
    176176
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r485 r489  
    8888    at  ROMVARS.bIdleTimeout,   db  0                       ; Standby timer disabled by default
    8989
    90     at  ROMVARS.ideVars0+IDEVARS.wBasePort,         dw  DEVICE_ATA_PRIMARY_PORT         ; Controller Command Block base port
    91     at  ROMVARS.ideVars0+IDEVARS.wControlBlockPort, dw  DEVICE_ATA_PRIMARY_PORTCTRL     ; Controller Control Block base port
     90    at  ROMVARS.ideVars0+IDEVARS.wBasePort,         dw  300h        ; Controller Command Block base port
     91    at  ROMVARS.ideVars0+IDEVARS.wControlBlockPort, dw  310h    ; Controller Control Block base port
    9292    at  ROMVARS.ideVars0+IDEVARS.bDevice,           db  DEVICE_16BIT_ATA
    9393    at  ROMVARS.ideVars0+IDEVARS.bIRQ,              db  0
  • trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuEvent.asm

    r395 r489  
    3737    eCMOVZ  dl, dh
    3838    call    IsDriveDLinSystem
    39     jnc     SHORT DoNotSetDefaultMenuitem
     39    jnc     SHORT BootMenuEvent_Handler.DoNotSetDefaultMenuitem
    4040    call    DriveXlate_SetDriveToSwap
    4141    ; Fall to GetMenuitemToDXforDriveInDL
     
    106106    jmp     bx
    107107
    108 EventNotHandled:
    109 DoNotSetDefaultMenuitem:
     108.EventNotHandled:
     109.DoNotSetDefaultMenuitem:
    110110    xor     dx, dx      ; Clear CF (and menuitem index for DoNotSetDefaultMenuitem)
    111111    ret
     
    127127
    128128    cmp     bx, BYTE MENUEVENT.RefreshItemFromCX    ; Above last supported item?
    129     ja      SHORT EventNotHandled
     129    ja      SHORT .EventNotHandled
    130130    jmp     [cs:bx+rgfnEventSpecificHandlers]
    131131
    132 EventNotHandled:
    133 DoNotSetDefaultMenuitem:
     132.EventNotHandled:
     133.DoNotSetDefaultMenuitem:
    134134    xor     dx, dx      ; Clear CF (and menuitem index for DoNotSetDefaultMenuitem)
    135135    ret
  • trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm

    r421 r489  
    7676;--------------------------------------------------------------------
    7777BootMenuPrint_TitleStrings:
    78     mov     si, ROMVARS.szTitle
    79     call    DetectPrint_NullTerminatedStringFromCSSIandSetCF
    80     CALL_DISPLAY_LIBRARY PrintNewlineCharacters
    81     mov     si, ROMVARS.szVersion
    82     jmp     DetectPrint_NullTerminatedStringFromCSSIandSetCF
    83 
    84 
     78    xor     di,di                       ; Null character will be eaten
     79    mov     si, g_szBootMenuTitle
     80    jmp     DetectPrint_RomFoundAtSegment.BootMenuEntry
     81
     82       
    8583;--------------------------------------------------------------------
    8684; BootMenuPrint_RefreshInformation
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r488 r489  
    2727; POST drive detection strings
    2828g_szDashForZero:    db  "- ",NULL   ; Required by Display Library
    29 g_szRomAt:          db  LF,CR,"%s @ %x",LF,CR
    30                     db  "Released under GNU GPL v2",LF,CR,LF,CR,NULL
    31 
     29g_szRomAt:          db  LF,CR
     30                    db  "%s @ %x",LF,CR                     ; -=XTIDE ... =- @ Segment
     31                    db  "%s",LF,CR                          ; version string
     32                    db  "Released under GNU GPL v2",LF,CR   
     33                    db  LF,CR,NULL
     34%ifdef MODULE_BOOT_MENU
     35g_szBootMenuTitle:  db  "%s%c",LF,CR                        ; -=XTIDE ... =- and null (eaten)
     36                    db  "%s",NULL                           ; version string
     37%endif
     38g_szDriveName:      db  "%z",LF,CR,NULL
    3239
    3340; The following strings are used by DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP
     
    166173
    167174g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
    168 
    169175
    170176
  • trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm

    r488 r489  
    4040                      db     28h,  00h          ; compressed
    4141
    42 g_szRomAt:          ; db    LF,CR,"%s @ %x",LF,CR
    43                     ; db     0ah,  0dh,  25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh    ; uncompressed
    44                       db     39h,  3dh,  20h, 0c6h,  37h,  39h                                  ; compressed
    45 
    46     ; db  "Released under GNU GPL v2",LF,CR,LF,CR,NULL
    47     ; db   52h,  65h,  6ch,  65h,  61h,  73h,  65h,  64h,  20h,  75h,  6eh,  64h,  65h,  72h,  20h,  47h,  4eh,  55h,  20h,  47h,  50h,  4ch,  20h,  76h,  32h,  0ah,  0dh,  0ah,  0dh,  00h    ; uncompressed
    48       db   58h,  6bh,  72h,  6bh,  67h,  79h,  6bh, 0eah,  7bh,  74h,  6ah,  6bh, 0f8h,  4dh,  54h, 0dbh,  4dh,  56h, 0d2h,  7ch,  2ch,  39h,  19h                                              ; compressed
    49 
     42g_szRomAt:          ; db    LF,CR
     43                    ; db     0ah,  0dh    ; uncompressed
     44                      db     39h          ; compressed
     45
     46    ; db    "%s @ %x",LF,CR                     ; -=XTIDE ... =- @ Segment
     47    ; db     25h,  73h,  20h,  40h,  20h,  25h,  78h,  0ah,  0dh    ; uncompressed
     48      db     3dh,  20h, 0c6h,  37h,  39h                            ; compressed
     49
     50    ; db    "%s",LF,CR                          ; version string
     51    ; db     25h,  73h,  0ah,  0dh    ; uncompressed
     52      db     3dh,  39h                ; compressed
     53
     54    ; db  "Released under GNU GPL v2",LF,CR
     55    ; db   52h,  65h,  6ch,  65h,  61h,  73h,  65h,  64h,  20h,  75h,  6eh,  64h,  65h,  72h,  20h,  47h,  4eh,  55h,  20h,  47h,  50h,  4ch,  20h,  76h,  32h,  0ah,  0dh    ; uncompressed
     56      db   58h,  6bh,  72h,  6bh,  67h,  79h,  6bh, 0eah,  7bh,  74h,  6ah,  6bh, 0f8h,  4dh,  54h, 0dbh,  4dh,  56h, 0d2h,  7ch,  2ch,  39h                                  ; compressed
     57
     58    ; db    LF,CR,NULL
     59    ; db     0ah,  0dh,  00h    ; uncompressed
     60      db     19h                ; compressed
     61
     62%ifdef MODULE_BOOT_MENU
     63g_szBootMenuTitle:  ; db    "%s%c",LF,CR                        ; -=XTIDE ... =- and null (eaten)
     64                    ; db     25h,  73h,  25h,  63h,  0ah,  0dh    ; uncompressed
     65                      db     3dh,  3ch,  39h                      ; compressed
     66
     67    ; db    "%s",NULL                           ; version string
     68    ; db     25h,  73h,  00h    ; uncompressed
     69      db     1dh                ; compressed
     70
     71%endif
     72g_szDriveName:      ; db    "%z",LF,CR,NULL
     73                    ; db     25h,  7ah,  0ah,  0dh,  00h    ; uncompressed
     74                      db     3eh,  19h                      ; compressed
    5075
    5176
     
    295320                        ; 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
    296321                          db         31h,  32h,  3bh,  59h,  6bh,  72h,  6bh,  69h,  7ah,  6fh,  75h, 0f4h,  6fh, 0f4h,  3ah,  20h, 0b9h                                              ; compressed
    297 
    298322
    299323
     
    530554;; 5-u:2
    531555;; x:5
    532 ;; s:13
     556;; s:16
    533557;; 5-x:1
    534 ;; nl:9
     558;; nl:12
    535559;; 2-I:1
    536560;; u:6
    537 ;; c:9
    538 ;; z:1
     561;; c:10
     562;; z:2
    539563;; total format: 11
    540564
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm

    r473 r489  
    5050    mov     dl, [cs:ROMVARS.bBootDrv]
    5151
     52    ; fall through to BootVars_StoreHotkeyForDriveNumberInDL
     53
    5254;--------------------------------------------------------------------
    5355; BootVars_StoreHotkeyForDriveNumberInDL
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/FindDPT.asm

    r433 r489  
    246246;       SI
    247247;--------------------------------------------------------------------
    248 ALIGN JUMP_ALIGN
    249 FindDPT_ToDSDIforFlagsHighInBL:
     248%ifdef MODULE_IRQ       
     249ALIGN JUMP_ALIGN
     250FindDPT_ToDSDIforFlagsHighInBL:
     251%endif
    250252    mov     si, IterateToDptWithFlagsHighInBL
    251253    ; Fall to IterateAllDPTs
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r473 r489  
    229229
    230230
     231%if 0                           ; unused...
    231232;--------------------------------------------------------------------
    232233; RamVars_IsDriveDetectionInProgress
     
    241242    cmp     WORD [RAMVARS.wSignature], RAMVARS_DRV_DETECT_SIGNATURE
    242243    ret
     244%endif
Note: See TracChangeset for help on using the changeset viewer.