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


Ignore:
Timestamp:
Apr 12, 2012, 2:07:46 PM (13 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/Boot
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r376 r386  
    6161    push    ax                                      ; the hard disks don't ever use it, but it does no harm)
    6262
    63     jmp     short BootMenuPrint_RefreshInformation.FormatRelay
     63    jmp     SHORT BootMenuPrint_RefreshInformation.FormatRelay
    6464
    6565;--------------------------------------------------------------------
     
    7676BootMenuPrint_TitleStrings:
    7777    mov     si, ROMVARS.szTitle
    78     call    BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
     78    call    DetectPrint_NullTerminatedStringFromCSSIandSetCF
    7979    CALL_DISPLAY_LIBRARY PrintNewlineCharacters
    8080    mov     si, ROMVARS.szVersion
    81     ; Fall to BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
    82 
    83 ;--------------------------------------------------------------------
    84 ; BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
    85 ;   Parameters:
    86 ;       CS:SI:  Ptr to NULL terminated string to print
    87 ;   Returns:
    88 ;       CF:     Set since menu event was handled successfully
    89 ;   Corrupts registers:
    90 ;       AX, DI
    91 ;--------------------------------------------------------------------
    92 BootMenuPrint_NullTerminatedStringFromCSSIandSetCF:
    93 ;
    94 ; We send all CSSI strings through the Format routine for the case of
    95 ; compressed strings, but this doesn't hurt in the non-compressed case either
    96 ; (perhaps a little slower, but shouldn't be noticeable to the user)
    97 ; and results in smaller code size.
    98 ;
    99     push    bp
    100     mov     bp,sp
    101     jmp     short BootMenuPrint_RefreshInformation.FormatRelay
     81    jmp     DetectPrint_NullTerminatedStringFromCSSIandSetCF
    10282
    10383
     
    186166
    187167.FormatRelay:
    188     jmp     short BootMenuPrint_FormatCSSIfromParamsInSSBP
     168    jmp     DetectPrint_FormatCSSIfromParamsInSSBP
    189169
    190170
     
    222202
    223203    test    di,di
    224     jz      short BootMenuPrint_FormatCSSIfromParamsInSSBP
     204    jz      SHORT BootMenuPrint_RefreshInformation.FormatRelay
    225205
    226206%include "BootMenuPrintCfg.asm"         ; inline of code to fill out remainder of information string
    227 
    228 ;;; fall-through to BootMenuPrint_FormatCSSIfromParamsInSSBP
    229 
    230 
    231 ;--------------------------------------------------------------------
    232 ; BootMenuPrint_FormatCSSIfromParamsInSSBP
    233 ;   Parameters:
    234 ;       CS:SI:  Ptr to string to format
    235 ;       BP:     SP before pushing parameters
    236 ;   Returns:
    237 ;       BP:     Popped from stack
    238 ;       CF:     Set since menu event was handled successfully
    239 ;   Corrupts registers:
    240 ;       AX, DI
    241 ;--------------------------------------------------------------------
    242 BootMenuPrint_FormatCSSIfromParamsInSSBP:
    243     CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI
    244     stc             ; Successful return from menu event
    245     pop     bp
    246     ret
     207    jmp     DetectPrint_FormatCSSIfromParamsInSSBP
    247208
    248209
     
    371332    push    cx          ; Key attribute for last space
    372333    mov     si, g_szHotkey
    373 
    374 BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay:
    375     jmp     SHORT BootMenuPrint_FormatCSSIfromParamsInSSBP
    376 
    377 
    378 ;--------------------------------------------------------------------
    379 ; BootMenuPrint_InitializeDisplayContext
    380 ;   Parameters:
    381 ;       Nothing
    382 ;   Returns:
    383 ;       Nothing
    384 ;   Corrupts registers:
    385 ;       AX, DI
    386 ;--------------------------------------------------------------------
    387 BootMenuPrint_InitializeDisplayContext:
    388     CALL_DISPLAY_LIBRARY InitializeDisplayContext
    389     ret
     334    jmp     DetectPrint_FormatCSSIfromParamsInSSBP
    390335
    391336
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootSector.asm

    r376 r386  
    3434;--------------------------------------------------------------------
    3535BootSector_TryToLoadFromDriveDL:
    36     call    BootPrint_TryToBootFromDL
     36    call    DetectPrint_TryToBootFromDL
    3737    call    LoadFirstSectorFromDriveDL
    3838    jc      SHORT .FailedToLoadFirstSector
     
    4646    ret
    4747.FailedToLoadFirstSector:
    48     call    BootPrint_FailedToLoadFirstSector
     48    call    DetectPrint_FailedToLoadFirstSector
    4949    clc
    5050    ret
    5151.FirstHardDiskSectorNotBootable:
    5252    mov     si, g_szBootSectorNotFound
    53     call    BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
     53    call    DetectPrint_NullTerminatedStringFromCSSIandSetCF
    5454    clc
    5555    ret
Note: See TracChangeset for help on using the changeset viewer.