Changeset 597 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2


Ignore:
Timestamp:
Jul 11, 2018, 9:44:43 AM (6 years ago)
Author:
aitotat
Message:

Windows 95 CMOS hack now works with Award BIOSes.
Some small optimizations to INT 19h and INT 19h reset handlers.
Added menuitem to configurator for clearing BDA drive count.

Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm

    r592 r597  
    2626    at  MENUPAGE.fnEnter,           dw  BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
    2727    at  MENUPAGE.fnBack,            dw  ConfigurationMenu_EnterMenuOrModifyItemVisibility
    28     at  MENUPAGE.wMenuitems,        dw  7
     28    at  MENUPAGE.wMenuitems,        dw  8
    2929iend
    3030
     
    134134    at  MENUITEM.itemValue + ITEM_VALUE.wMaxValue,                  dw  1092
    135135iend
     136
     137g_MenuitemBootMnuStngsClearBdaDriveCount:
     138istruc MENUITEM
     139    at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
     140    at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
     141    at  MENUITEM.szName,            dw  g_szItemClearBdaDriveCount
     142    at  MENUITEM.szQuickInfo,       dw  g_szNfoClearBdaDriveCount
     143    at  MENUITEM.szHelp,            dw  g_szHelpClearBdaDriveCount
     144    at  MENUITEM.bFlags,            db  FLG_MENUITEM_FLAGVALUE
     145    at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
     146    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wFlags
     147    at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szDlgClearBdaDriveCount
     148    at  MENUITEM.itemValue + ITEM_VALUE.szMultichoice,              dw  g_szMultichoiceBooleanFlag
     149    at  MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup,    dw  g_rgszValueToStringLookupForFlagBooleans
     150    at  MENUITEM.itemValue + ITEM_VALUE.wValueBitmask,              dw  FLG_ROMVARS_IGNORE_MOTHERBOARD_DRIVES
     151iend
     152
    136153
    137154g_rgwChoiceToValueLookupForDisplayModes:
     
    241258    call    .EnableOrDisableColorThemeSelection
    242259    call    .EnableOrDisableBootMenuSelectionTimeout
     260    call    .EnableOrDisableClearBdaDriveCount
    243261    mov     si, g_MenupageForBootMenuSettingsMenu
    244262    jmp     Menupage_ChangeToNewMenupageInDSSI
     
    310328    mov     bx, g_MenuitemBootMnuStngsSelectionTimeout
    311329    test    ax, FLG_ROMVARS_MODULE_BOOT_MENU
     330    jmp     SHORT .DisableMenuitemFromCSBXifZFset
     331
     332
     333;--------------------------------------------------------------------
     334; .EnableOrDisableClearBdaDriveCount
     335;   Parameters:
     336;       AX:     ROMVARS.wFlags
     337;       SS:BP:  Menu handle
     338;   Returns:
     339;       Nothing
     340;   Corrupts registers:
     341;       BX
     342;--------------------------------------------------------------------
     343ALIGN JUMP_ALIGN
     344.EnableOrDisableClearBdaDriveCount:
     345    mov     bx, g_MenuitemBootMnuStngsClearBdaDriveCount
     346    call    Buffers_IsXTbuildLoaded
    312347.DisableMenuitemFromCSBXifZFset:
    313348    jz      SHORT .DisableMenuitemFromCSBX
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

    r592 r597  
    426426g_szItemBootFloppyDrvs: db  "Number of Floppy Drives",NULL
    427427g_szItemSerialDetect:   db  "Scan for Serial Drives",NULL
     428g_szItemClearBdaDriveCount: db  "Remove other hard drives",NULL
    428429
    429430g_szDlgBootTimeout:     db  "Enter Boot Menu selection timeout in BIOS timer ticks (2...1092).",NULL
     
    433434g_szDlgBootFloppyDrvs:  db  "Select number of Floppy Drives in system.",NULL
    434435g_szDlgSerialDetect:    db  "Scan for serial drives?",NULL
     436g_szDlgClearBdaDriveCount:  db  "Remove existing INT 13h hard drives during drive detection?",NULL
    435437
    436438g_szNfoBootTimeout:     db  "Menu item selection timeout in BIOS timer ticks. 1 tick = 54.9 ms.",NULL
     
    441443g_szNfoSerialDetect:    db  "Scans all standard COM ports for serial drives."
    442444                        db  " This can also be invoked by holding down ALT at the end of normal drive detection.",NULL
     445g_szNfoClearBdaDriveCount:  db  "Can be used to remove duplicate hard drives.",NULL
    443446
    444447g_szHelpBootTimeout:    db  "Boot Menu selection timeout in BIOS timer ticks (1 second = 18.2 ticks)."
     
    460463                        db  " of normal drive detection. Note that if any serial drives are detected during the normal drive detection,"
    461464                        db  " no scan will take place (to avoid finding the same drive twice).",NULL
     465g_szHelpClearBdaDriveCount: db  "Set to NO for normal operation. Set to YES to get Windows 95 drivers to work when "
     466                            db  "MODULE_WIN95_CMOS_HACK is not included (dummy drive needs to be defined in system BIOS setup).",NULL
    462467
    463468g_szMultichoiceBootDispMode:    db  "Default",LF
Note: See TracChangeset for help on using the changeset viewer.