Ignore:
Timestamp:
Apr 5, 2012, 7:31:23 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Small changes. 1) Changes biosdrvs.com to output CR+LF instead of LF+CR, consistent with DOS/Windows, but I did not update the Assembly Library as this would break the Configurator; 2) Put a C/C++ section in Version.inc for the serial server; 3) Configurator defaults the EEPROM address after scanning for a EEPROM in memory (as it does for loading the BIOS from ROM); 4) Added a command to the Configurator main menu to save chages to the file from which it was loaded (if it was loaded form a file), which is symmetric with the Load command and more discoverable than exiting DOS and then being prompted (which is still there too, if changes are unsaved).

File:
1 edited

Legend:

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

    r336 r371  
    1010    at  MENUPAGE.fnEnter,           dw  MainMenu_EnterMenuOrModifyItemVisibility
    1111    at  MENUPAGE.fnBack,            dw  ExitToDosFromBackButton
    12     at  MENUPAGE.wMenuitems,        dw  8
     12    at  MENUPAGE.wMenuitems,        dw  9
    1313iend
    1414
     
    7272    at  MENUITEM.bType,             db  TYPE_MENUITEM_PAGENEXT
    7373iend
     74
     75g_MenuitemMainMenuSaveFile:     
     76istruc MENUITEM
     77    at  MENUITEM.fnActivate,        dw  BiosFile_SaveUnsavedChanges
     78    at  MENUITEM.szName,            dw  g_szItemMainSave
     79    at  MENUITEM.szQuickInfo,       dw  g_szNfoMainSave
     80    at  MENUITEM.szHelp,            dw  g_szNfoMainSave
     81    at  MENUITEM.bFlags,            db  NULL
     82    at  MENUITEM.bType,             db  TYPE_MENUITEM_ACTION
     83iend       
    7484
    7585g_MenuitemMainMenuExitToDos:
     
    113123    call    .EnableOrDisableConfigureXtideUniversalBios
    114124    call    .EnableOrDisableFlashEeprom
     125    call    .EnableOrDisableSave           
    115126    mov     si, g_MenupageForMainMenu
    116127    jmp     Menupage_ChangeToNewMenupageInDSSI
     
    184195    ret
    185196
    186 
    187 
     197;--------------------------------------------------------------------
     198; .EnableOrDisableSave
     199;   Parameters:
     200;       DS:     CFGVARS segment
     201;   Returns:
     202;       Nothing
     203;   Corrupts registers:
     204;       Nothing
     205;--------------------------------------------------------------------
     206ALIGN JUMP_ALIGN       
     207.EnableOrDisableSave:   
     208    test    WORD [g_cfgVars+CFGVARS.wFlags], FLG_CFGVARS_FILELOADED
     209    jz      SHORT .DisableSave
     210    or      BYTE [g_MenuitemMainMenuSaveFile+MENUITEM.bFlags], FLG_MENUITEM_VISIBLE
     211    ret
     212
     213ALIGN JUMP_ALIGN               
     214.DisableSave:
     215    and     BYTE [g_MenuitemMainMenuSaveFile+MENUITEM.bFlags], ~FLG_MENUITEM_VISIBLE
     216    ret
     217               
    188218;--------------------------------------------------------------------
    189219; MENUITEM activation functions (.fnActivate)
Note: See TracChangeset for help on using the changeset viewer.