Changeset 457 in xtideuniversalbios


Ignore:
Timestamp:
Sep 9, 2012, 7:19:00 PM (10 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator v2:

  • Operating mode selection is no longer displayed for AT builds.
  • Power Management is now displayed only when MODULE_FEATURE_SETS is available.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm

    r376 r457  
    8484
    8585;--------------------------------------------------------------------
     86; Buffers_IsXTbuildLoaded
     87;   Parameters:
     88;       Nothing
     89;   Returns:
     90;       ZF:     Set if XT or XT+ build is loaded
     91;               Cleared if some other (AT, 386) build is loaded
     92;   Corrupts registers:
     93;       DI, ES
     94;--------------------------------------------------------------------
     95ALIGN JUMP_ALIGN
     96Buffers_IsXTbuildLoaded:
     97%strlen BUILD_TYPE_OFFSET   TITLE_STRING_START
     98    call    Buffers_GetFileBufferToESDI
     99    cmp     WORD [es:di+ROMVARS.szTitle+BUILD_TYPE_OFFSET+1], 'XT'  ; +1 is for '('
     100    ret
     101%undef BUILD_TYPE_OFFSET
     102
     103
     104;--------------------------------------------------------------------
    86105; Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration
    87106;   Parameters:
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm

    r376 r457  
    2626%include "Romvars.inc"          ; XTIDE Universal BIOS variables
    2727
     28%include "Version.inc"
    2829%include "MenuCfg.inc"
    2930%include "MenuStructs.inc"
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm

    r380 r457  
    9696    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgFullMode
    9797    at  MENUITEM.szHelp,            dw  g_szHelpCfgFullMode
    98     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE
     98    at  MENUITEM.bFlags,            db  FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE
    9999    at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    100100    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wFlags
     
    142142    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgIdleTimeout
    143143    at  MENUITEM.szHelp,            dw  g_szHelpCfgIdleTimeout
    144     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE | FLG_MENUITEM_CHOICESTRINGS
     144    at  MENUITEM.bFlags,            db  FLG_MENUITEM_BYTEVALUE | FLG_MENUITEM_CHOICESTRINGS
    145145    at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    146146    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.bIdleTimeout
     
    187187    call    .DisableAllIdeControllerMenuitems
    188188    call    .EnableIdeControllerMenuitemsBasedOnConfiguration
     189    call    .EnableOrDisableOperatingModeSelection
    189190    call    .EnableOrDisableKiBtoStealFromRAM
     191    call    .EnableOrDisableIdleTimeout
    190192    call    LimitIdeControllersForLiteMode
    191193    mov     si, g_MenupageForConfigurationMenu
     
    229231
    230232;--------------------------------------------------------------------
     233; .EnableOrDisableOperatingModeSelection
     234;   Parameters:
     235;       SS:BP:  Menu handle
     236;   Returns:
     237;       Nothing
     238;   Corrupts registers:
     239;       BX, DI, ES
     240;--------------------------------------------------------------------
     241ALIGN JUMP_ALIGN
     242.EnableOrDisableOperatingModeSelection:
     243    mov     bx, g_MenuitemConfigurationFullOperatingMode
     244    call    Buffers_IsXTbuildLoaded
     245    je      SHORT .EnableMenuitemFromCSBX
     246    jmp     SHORT .DisableMenuitemFromCSBX
     247
     248
     249;--------------------------------------------------------------------
    231250; .EnableOrDisableKiBtoStealFromRAM
    232251;   Parameters:
     
    242261    mov     bx, g_MenuitemConfigurationKiBtoStealFromRAM
    243262    test    ax, FLG_ROMVARS_FULLMODE
     263    jz      SHORT .DisableMenuitemFromCSBX
     264    jmp     SHORT .EnableMenuitemFromCSBX
     265
     266
     267;--------------------------------------------------------------------
     268; .EnableOrDisableIdleTimeout
     269;   Parameters:
     270;       SS:BP:  Menu handle
     271;   Returns:
     272;       Nothing
     273;   Corrupts registers:
     274;       AX, BX
     275;--------------------------------------------------------------------
     276ALIGN JUMP_ALIGN
     277.EnableOrDisableIdleTimeout:
     278    call    Buffers_GetRomvarsFlagsToAX
     279    mov     bx, g_MenuitemConfigurationIdleTimeout
     280    test    ax, FLG_ROMVARS_MODULE_FEATURE_SETS
    244281    jz      SHORT .DisableMenuitemFromCSBX
    245282    ; Fall to .EnableMenuitemFromCSBX
Note: See TracChangeset for help on using the changeset viewer.