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


Ignore:
Timestamp:
Apr 12, 2012, 2:07:46 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu is now an optional module (MODULE_BOOT_MENU).
Location:
trunk/XTIDE_Universal_BIOS/Src/Initialization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm

    r376 r386  
    199199DetectDrives_DriveNotFound:
    200200    mov     si, g_szNotFound
    201     jmp     BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
     201    jmp     DetectPrint_NullTerminatedStringFromCSSIandSetCF
    202202
    203203
     
    219219    jc      SHORT DetectDrives_DriveNotFound
    220220    call    BootMenuInfo_CreateForHardDisk
    221     jmp     short DetectPrint_DriveNameFromBootnfoInESBX
     221    jmp     SHORT DetectPrint_DriveNameFromBootnfoInESBX
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm

    r376 r386  
    2222
    2323;--------------------------------------------------------------------
     24; BootMenuPrint_InitializeDisplayContext
     25;   Parameters:
     26;       Nothing
     27;   Returns:
     28;       Nothing
     29;   Corrupts registers:
     30;       AX, DI
     31;--------------------------------------------------------------------
     32BootMenuPrint_InitializeDisplayContext:
     33    CALL_DISPLAY_LIBRARY InitializeDisplayContext
     34    ret
     35
     36
     37;--------------------------------------------------------------------
    2438; Prints BIOS name and segment address where it is found.
    2539;
     
    3953    push    cs                          ; BIOS segment
    4054
    41 DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay:
    42     jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
     55    jmp     DetectPrint_FormatCSSIfromParamsInSSBP
    4356
    4457
     
    122135    mov     si, g_szDetectOuter             ; Load SI with default wrapper string "IDE %s at %s: "
    123136
    124     jmp     short DetectPrint_BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay
     137    jmp     SHORT DetectPrint_FormatCSSIfromParamsInSSBP
    125138
    126139
     
    146159    pop     di
    147160    ret
     161
     162;--------------------------------------------------------------------
     163; DetectPrint_FailedToLoadFirstSector
     164;   Parameters:
     165;       AH:     INT 13h error code
     166;   Returns:
     167;       Nothing
     168;   Corrupts registers:
     169;       AX, CX, SI, DI
     170;--------------------------------------------------------------------
     171DetectPrint_FailedToLoadFirstSector:
     172    push    bp
     173    mov     bp, sp
     174    eMOVZX  cx, ah
     175    push    cx                  ; Push INT 13h error code
     176    mov     si, g_szReadError
     177    jmp     SHORT DetectPrint_FormatCSSIfromParamsInSSBP
     178
     179
     180;--------------------------------------------------------------------
     181; DetectPrint_TryToBootFromDL
     182;   Parameters:
     183;       DL:     Drive to boot from (translated, 00h or 80h)
     184;       DS:     RAMVARS segment
     185;   Returns:
     186;       Nothing
     187;   Corrupts registers:
     188;       AX, SI, DI
     189;--------------------------------------------------------------------
     190DetectPrint_TryToBootFromDL:
     191    push    bp
     192    mov     bp, sp
     193
     194    mov     ax, g_szHDD
     195    test    dl, dl
     196    js      SHORT .NotFDD
     197    mov     ax, g_szFDD
     198.NotFDD:
     199    push    ax
     200
     201    call    DriveXlate_ToOrBack
     202    push    dx                  ; Push untranslated drive number
     203    call    DriveXlate_ToOrBack
     204    push    dx                  ; Push translated drive number
     205
     206    mov     si, g_szTryToBoot
     207    jmp     SHORT DetectPrint_FormatCSSIfromParamsInSSBP   
     208
     209
     210;--------------------------------------------------------------------
     211; DetectPrint_NullTerminatedStringFromCSSIandSetCF
     212;   Parameters:
     213;       CS:SI:  Ptr to NULL terminated string to print
     214;   Returns:
     215;       CF:     Set since menu event was handled successfully
     216;   Corrupts registers:
     217;       AX, DI
     218;--------------------------------------------------------------------
     219DetectPrint_NullTerminatedStringFromCSSIandSetCF:
     220;
     221; We send all CSSI strings through the Format routine for the case of
     222; compressed strings, but this doesn't hurt in the non-compressed case either
     223; (perhaps a little slower, but shouldn't be noticeable to the user)
     224; and results in smaller code size.
     225;
     226    push    bp
     227    mov     bp,sp
     228    ; Fall to BootMenuPrint_FormatCSSIfromParamsInSSBP
     229
     230;--------------------------------------------------------------------
     231; DetectPrint_FormatCSSIfromParamsInSSBP
     232;   Parameters:
     233;       CS:SI:  Ptr to string to format
     234;       BP:     SP before pushing parameters
     235;   Returns:
     236;       BP:     Popped from stack
     237;       CF:     Set since menu event was handled successfully
     238;   Corrupts registers:
     239;       AX, DI
     240;--------------------------------------------------------------------
     241DetectPrint_FormatCSSIfromParamsInSSBP:
     242    CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI
     243    stc             ; Successful return from menu event
     244    pop     bp
     245    ret
Note: See TracChangeset for help on using the changeset viewer.