Changeset 489 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Dec 13, 2012, 7:32:09 AM (12 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/Initialization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.