Ignore:
Timestamp:
Nov 19, 2010, 10:59:52 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Configuration Program v2:

  • Menu structure should now be complete.
File:
1 edited

Legend:

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

    r57 r59  
    22; Project name  :   XTIDE Universal BIOS Configurator v2
    33; Created date  :   24.10.2010
    4 ; Last update   :   3.11.2010
     4; Last update   :   18.11.2010
    55; Author        :   Tomi Tilli
    66; Description   :   "Configure XTIDE Universal BIOS" menu structs and functions.
     
    1313istruc MENUPAGE
    1414    at  MENUPAGE.fnEnter,           dw  ConfigurationMenu_EnterMenuOrModifyItemVisibility
     15    at  MENUPAGE.fnBack,            dw  MainMenu_EnterMenuOrModifyItemVisibility
    1516    at  MENUPAGE.wMenuitems,        dw  11
    1617iend
     
    7879g_MenuitemConfigurationBootMenuSettings:
    7980istruc MENUITEM
    80     at  MENUITEM.fnActivate,        dw  BootMenuSettings
     81    at  MENUITEM.fnActivate,        dw  BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
    8182    at  MENUITEM.szName,            dw  g_szItemCfgBootMenu
    8283    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgBootMenu
     
    8990istruc MENUITEM
    9091    at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI
    91     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromItemInDSSI
     92    at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    9293    at  MENUITEM.szName,            dw  g_szItemCfgBootLoader
    9394    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgBootLoader
    9495    at  MENUITEM.szHelp,            dw  g_szNfoCfgBootLoader
    95     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
     96    at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_BYTEVALUE
    9697    at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOISE
    9798    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.bBootLdrType
     
    105106istruc MENUITEM
    106107    at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI
    107     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromItemInDSSI
     108    at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    108109    at  MENUITEM.szName,            dw  g_szItemCfgFullMode
    109110    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgFullMode
     
    178179    call    .DisableAllIdeControllerMenuitems
    179180    call    .EnableIdeControllerMenuitemsBasedOnConfiguration
     181    call    .EnableOrDisableBootMenuSettings
    180182    call    .EnableOrDisableKiBtoStealFromRAM
    181183    call    .EnableOrDisableIdeControllerCount
     
    229231ALIGN JUMP_ALIGN
    230232.GetIdeControllerCountToCX:
    231     mov     bx, ROMVARS.wFlags
    232     call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     233    call    Buffers_GetRomvarsFlagsToAX
    233234    test    ax, FLG_ROMVARS_FULLMODE
    234235    jz      SHORT .AllowOnlyOneIdeControllerInLiteMode
     
    243244    ret
    244245
     246
     247;--------------------------------------------------------------------
     248; .EnableOrDisableBootMenuSettings
     249;   Parameters:
     250;       SS:BP:  Menu handle
     251;   Returns:
     252;       Nothing
     253;   Corrupts registers:
     254;       AX, BX, CX
     255;--------------------------------------------------------------------
     256ALIGN JUMP_ALIGN
     257.EnableOrDisableBootMenuSettings:
     258    mov     bx, ROMVARS.bBootLdrType
     259    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     260    mov     bx, g_MenuitemConfigurationBootMenuSettings
     261    cmp     ax, BYTE BOOTLOADER_TYPE_MENU
     262    jne     SHORT .DisableMenuitemFromCSBX
     263    jmp     SHORT .EnableMenuitemFromCSBX
     264
     265
    245266;--------------------------------------------------------------------
    246267; .EnableOrDisableKiBtoStealFromRAM
     
    254275ALIGN JUMP_ALIGN
    255276.EnableOrDisableKiBtoStealFromRAM:
    256     mov     bx, ROMVARS.wFlags
    257     call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     277    call    Buffers_GetRomvarsFlagsToAX
    258278    mov     bx, g_MenuitemConfigurationKiBtoStealFromRAM
    259279    test    ax, FLG_ROMVARS_FULLMODE
     
    272292ALIGN JUMP_ALIGN
    273293.EnableOrDisableIdeControllerCount:
    274     mov     bx, ROMVARS.wFlags
    275     call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     294    call    Buffers_GetRomvarsFlagsToAX
    276295    mov     bx, g_MenuitemConfigurationIdeControllers
    277296    test    ax, FLG_ROMVARS_FULLMODE
     
    339358    call    IdeControllerMenu_InitializeToIdevarsOffsetInBX
    340359    jmp     IdeControllerMenu_EnterMenuOrModifyItemVisibility
    341 
    342 
    343 ALIGN JUMP_ALIGN
    344 BootMenuSettings:
    345     ret
Note: See TracChangeset for help on using the changeset viewer.