Changeset 135 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm


Ignore:
Timestamp:
Mar 13, 2011, 12:38:59 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Boot menu now displays drive number (untested)
  • Timeout counter implemented to boot menu (untested)
File:
1 edited

Legend:

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

    r130 r135  
    8888ALIGN JUMP_ALIGN
    8989BootMenuPrint_FloppyMenuitem:
     90    call    PrintDriveNumberAfterTranslationFromDL
    9091    push    bp
    9192    mov     bp, sp
     
    109110ALIGN JUMP_ALIGN
    110111BootMenuPrint_HardDiskMenuitem:
     112    call    PrintDriveNumberAfterTranslationFromDL
    111113    call    FindDPT_ForDriveNumber      ; DS:DI to point DPT
    112114    jnc     SHORT .HardDiskMenuitemForForeignDrive
     
    145147    mov     si, g_szforeignHD
    146148    jmp     SHORT BootMenuPrint_NullTerminatedStringFromCSSIandSetCF
     149
     150
     151;--------------------------------------------------------------------
     152; PrintDriveNumberAfterTranslationFromDL
     153;   Parameters:
     154;       DL:     Untranslated Floppy Drive number
     155;       DS:     RAMVARS segment
     156;   Returns:
     157;       Nothing
     158;   Corrupts registers:
     159;       AX, DI
     160;--------------------------------------------------------------------
     161ALIGN JUMP_ALIGN
     162PrintDriveNumberAfterTranslationFromDL:
     163    mov     ax, dx
     164    call    DriveXlate_ToOrBack
     165    xchg    dx, ax              ; Restore DX, WORD to print in AL
     166    xor     ah, ah
     167    push    bp
     168    mov     bp, sp
     169    mov     si, g_szDriveNum
     170    push    ax
     171    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
    147172
    148173
Note: See TracChangeset for help on using the changeset viewer.