Changeset 135 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src


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

Changes to XTIDE Universal BIOS:

  • Boot menu now displays drive number (untested)
  • Timeout counter implemented to boot menu (untested)
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
3 edited

Legend:

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

    r130 r135  
    6161    call    BootMenu_GetHeightToAHwithItemCountInAL
    6262    mov     [si+MENUINIT.bHeight], ah
     63    mov     al, TICKS_PER_SECOND
     64    mul     BYTE [cs:ROMVARS.bBootDelay]
     65    CALL_MENU_LIBRARY StartSelectionTimeoutWithTicksInAX
    6366    stc
    6467    ret
  • 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
  • trunk/XTIDE_Universal_BIOS/Src/Strings.asm

    r130 r135  
    2727
    2828; Boot Menu menuitem strings
     29g_szDriveNum:   db  "%x ",NULL
    2930g_szFDLetter:   db  "%s %c",NULL
    3031g_szFloppyDrv:  db  "Floppy Drive",NULL
Note: See TracChangeset for help on using the changeset viewer.